He may not be creating HarddiskN directory objects or PhysicalDriveN:
symbolic
links. If he creates disk and partition device objects, and drive-letter
links to them,
and is willing to be absent from the disk list in WinDisk, the rest isn’t
necessary.
Dave Cox
Hewlett-Packard Co.
HPSO/SSMO (Santa Barbara)
https://ecardfile.com/id/Dave+Cox
-----Original Message-----
From: Mike Pittelkow [mailto:xxxxx@xiotech.com]
Sent: Monday, April 24, 2000 12:48 PM
To: File Systems Developers
Subject: [ntfsd] RE: When filesystems are dismounted?
Unfortunately, it breaks disks that aren’t yours when you do this. WinDisk
(it’s pretty brain damaged) stops scanning for devices when it finds a gap
in the namespace. If your driver loads before another storage driver, after
your driver unloads and deletes it’s disk objects, the disks that belong to
that other driver will no longer be accessible to windisk. They’ll still
work, but you can do anything complicated with them (ft sets can’t be
managed , volumes can’t be extended, drive letters can’t be assigned, etc)
unless you use a complete third party volume manager, because windisk can’t
see them. Seems kind of unfriendly to break devices that aren’t yours.
That’s my piont.
Drivers are actually very small. There is no reason you can’t make a driver
that is always loaded, but only when a ramdisk exists does it respond to
irps. Your memory penalty is fairly small in a running system (should be
<75k or so). You can then use your driver specific tool to tell the driver
to create and delete ramdisks, you just reuse disused or create new
physicaldiskx objects as necessary. In this way you won’t break other disks
belonging to other drivers.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Jamey Kirby
Sent: Monday, April 24, 2000 11:16 AM
To: File Systems Developers
Subject: [ntfsd] RE: When filesystems are dismounted?
This assumes that your disk is interested in being accessed via
WinDisk. If
you use your own partition mechanism; something more robust than the MS
method, you can remove your disk. In fact, a RAMDISK is the perfect disk
driver that can unload. I have done it myself in numerous disk drivers.
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com]On Behalf Of Mike Pittelkow
> Sent: Monday, April 24, 2000 6:42 AM
> To: File Systems Developers
> Subject: [ntfsd] RE: When filesystems are dismounted?
>
>
> It’s even worse than that. If you delete your physicaldiskx, nt4
> disk admin
> will choke on any physicaldiskx+1. When disk admin runs it
stops scanning
> for devices (remember, no plug-n-play) when it finds a
> physicaldiskx missing
> in sequence. Because of this little problem, you really can’t
allow disk
> drivers to be unloaded. W2K is different because of the
> plug-n-play stuff.
>
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com]On Behalf Of Dennis
> > Sent: Sunday, April 23, 2000 9:22 AM
> > To: File Systems Developers
> > Subject: [ntfsd] When filesystems are dismounted?
> >
> >
> > Hi!
> >
> > I’m writting disk driver for NT4 based on RamDisk sample . At
> > ShutdownDispatch I want delete all device objects
> > I create that represent logical drives. I know that if I delete
> > device while filesystem is still mounted on it
> > will lead to bad things. How can I be sure that filesystems are
> > dismounted from my devices?
> > If they are not dismounted on ShutdownDispatch, how can I
> > dismount them, or I need to delay
> > deletion of device objects?
> >
> > Regards, Dennis
> >
> >
> >
> > __________________________________________________
> >
> > Do You Yahoo!?
> >
> > Talk to your friends online with Yahoo! Messenger.
> >
> > http://im.yahoo.com
> >
> >
> > —
> > You are currently subscribed to ntfsd as: xxxxx@xiotech.com
> > To unsubscribe send a blank email to $subst(‘Email.Unsub’)
> >
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to $subst(‘Email.Unsub’)
>
You are currently subscribed to ntfsd as: xxxxx@xiotech.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)
You are currently subscribed to ntfsd as: david_cox2@hp.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)