🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #2319

Pointer seeked on File Systems/Device drivers

#2319
From: William Y. Lai
Date: Tue, 06 Oct 1992 05:14
37 lines
2183 bytes
I have a unique task at hand, and I am not sure where to start looking.
Hopefully some netters can give me a pointer or two:

I am tasked to look into supporting a unique storage device under OS/2.  
The device replaces the regular disk controller, so the first thing needed
is a OS/2 device driver.  That can be done, I'm sure, with a little
work.

However, the other, and a much stranger, requirement is that the device
needs to know which file a particular sector belongs to, at the time the
sector is being written.  For every sector on the disk, this file name
information is tagged along in a transparent manner.

This device currently runs under DOS, and we have accomplished the 
requirement by tracking INT21 calls, which have file handle/file name
information.  For example, after an INT21 Open function is called, we
intercepts the INT21 and associate the file name with the assigned file
handle.  When an INT21 write occurs for that file handle, we
know that those writes "belongs" to that file.  The INT13 generated as a
result of the execution of the INT21 is then pegged to that file.

So my question is, how can I track the file system's reading/writing
processing in OS/2, from the file level to the sector level?  Can this be
done with writing a new IFS?  Device Driver?

I would appreciate any pointers, suggested readings/information source,
etc.  This is my first experience with OS/2, so I need any help I can
get!  Thanks.

Regards,


-- 
email: lai@seas.gwu.edu | "I want to do everything.  I want to have everything.
Dept. of Electrical Eng.|  I have a wonderful, wonderful life.  But there's so
George Washington Univ. |  much more out there.  Do I have it all?  Yes.  Do I
Washington, D.C.        |  want more?  Yeah, sure."     -Demi Moore        
Technical Details
Message-ID: <1992Oct6.051458.22121@seas.gwu.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!seas.gwu.edu!lai

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!seas.gwu.edu!lai
From: lai@seas.gwu.edu (William Y. Lai)
Subject: Pointer seeked on File Systems/Device drivers
Message-ID: <1992Oct6.051458.22121@seas.gwu.edu>
Originator: lai@seas.gwu.edu
Sender: news@seas.gwu.edu
Organization: George Washington University
Date: Tue, 6 Oct 1992 05:14:58 GMT
Lines: 37