Mounting a file system on additional Disk

Hi there,

When I do a DefineDosDevice to introduce my virtual disk to the NT
system , I use the string :
“\Device\diskDriver\;L:\V0” where diskDriver is the name of my
‘disk’ driver (diskDriver.sys) , L: is the DosDevice
name and V0 is the volumeName .
when I do CreateFile(“L:”, … ) first time , I do get a
IRP_MJ_FILE_SYSTEM_CONTROL / IRP_MN_MOUNT_VOLUME
and there I create a volum DeviceObject , deal with Vpb etc .
But when I try to mount another disk of my kind by a DefineDosDevice
with the string L"\Device\diskDrive\;M:\V1"
and does CreateFile(“M:”,… ) then the I/O manager delivers to my FSD
the same previous DeviceObject of L: instead
of issuing a new IRP_MN_MOUNT_VOLUME for the new disk !

Any idea how to overcome the problem ?

thanks
Dubi

“\Device\diskDriver\;L:\V0”

is not correct for DefineDEosDevice

Try:

“\device\diskdriver\L:”

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of dubi@il.ibm.com
Sent: Wednesday, March 15, 2000 12:19 AM
To: File Systems Developers
Subject: [ntfsd] Mounting a file system on additional Disk

Hi there,

When I do a DefineDosDevice to introduce my virtual disk to the NT
system , I use the string :
“\Device\diskDriver\;L:\V0” where diskDriver is the name of my
‘disk’ driver (diskDriver.sys) , L: is the DosDevice
name and V0 is the volumeName .
when I do CreateFile(“L:”, … ) first time , I do get a
IRP_MJ_FILE_SYSTEM_CONTROL / IRP_MN_MOUNT_VOLUME
and there I create a volum DeviceObject , deal with Vpb etc .
But when I try to mount another disk of my kind by a DefineDosDevice
with the string L"\Device\diskDrive\;M:\V1"
and does CreateFile(“M:”,… ) then the I/O manager delivers to my FSD
the same previous DeviceObject of L: instead
of issuing a new IRP_MN_MOUNT_VOLUME for the new disk !

Any idea how to overcome the problem ?

thanks
Dubi


You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)