Mounting devices

I have a file system driver for Windows 2000 that sets a handler for
IRP_MJ_FILE_SYSTEM_CONTROL messages but it never seems to be called. In
DeviceEntry I create a symbolic link to the device which appears in
explorer. However when I click on the icon I get the message g:\ is
inaccessible, incorrect function. At this point I would have expected it to
try to mount the device.

Graham Shaw


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

One possible reason is you didn’t call IoRegisterFileSystem in DriverEntry
for the named device object.

Alexei


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Graham,

If you have already created the symbolic link to your device object, there
is no mounting involved. Mounting only occurs because a MEDIA volume needs
to associate a FILE SYSTEM volume with it (the file system will then control
access to the media.)

More likely, you are failing the IRP_MJ_CREATE request, or you are
responding improperly to some other operation - but NOT
IRP_MJ_FILE_SYSTEM_CONTROL, since there would be little reason to call it
during the initial access of the root directory (later, perhaps, but not at
that point.)

Try getting filemon to work with your file system. It will give you a trace
of the IRPs flowing to your FSD and you can thus figure out which one is
failing.

Regards,

Tony

Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com

-----Original Message-----
From: xxxxx@suntail.com [mailto:xxxxx@suntail.com]
Sent: Monday, September 24, 2001 9:00 PM
To: File Systems Developers
Subject: [ntfsd] Mounting devices

I have a file system driver for Windows 2000 that sets a handler for
IRP_MJ_FILE_SYSTEM_CONTROL messages but it never seems to be called. In
DeviceEntry I create a symbolic link to the device which appears in
explorer. However when I click on the icon I get the message g:\ is
inaccessible, incorrect function. At this point I would have expected it to
try to mount the device.

Graham Shaw


You are currently subscribed to ntfsd as: xxxxx@osr.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com