FastIODetachDevice and USB hard disk unplug problem

Hi

I have a USB hard drive which has 4 partitions.
When I use the win 2k unplug hardware utility to remove the USB, I hav
noticed that in the file system filter attached device FastIODetachDevice I
only get called twise - I have created filter driver that attaches to the
four partitions, and the problem is that FastIODetachDevice only gets
called for two partitions, so I have the other two running.
Does anyone know why I only get called twice in the FastIODetachDevice? I
assume I should be called 4 times one time for each device/partition.

Regards,
Ronen


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

What is the FS on the partitions?

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@hotmail.com
Sent: Sunday, January 20, 2002 1:00 PM
To: File Systems Developers
Subject: [ntfsd] FastIODetachDevice and USB hard disk unplug problem

Hi

I have a USB hard drive which has 4 partitions.
When I use the win 2k unplug hardware utility to remove the USB, I hav
noticed that in the file system filter attached device
FastIODetachDevice I
only get called twise - I have created filter driver that attaches to
the
four partitions, and the problem is that FastIODetachDevice only gets
called for two partitions, so I have the other two running. Does anyone
know why I only get called twice in the FastIODetachDevice? I
assume I should be called 4 times one time for each device/partition.

Regards,
Ronen


You are currently subscribed to ntfsd as: xxxxx@storagecraft.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

Hi Ronen,

Sometimes, the underlying File system decides to use caching.
So when the media is removed, the file system device object just resets it’s
VPB pointer but keeps the device heirarchy attached to it AS-IS without
deleting itself.

CDFS does uses this technique extensively.

To be sure, Check your device objects that wheren’t detached and walk their
heirarchy. See if the’re still attached the the File system object.

Regards,
Yoni Baron.

-----Original Message-----
From: xxxxx@hotmail.com [mailto:xxxxx@hotmail.com]
Sent: Sunday, January 20, 2002 3:00 AM
To: File Systems Developers
Subject: [ntfsd] FastIODetachDevice and USB hard disk unplug problem

Hi

I have a USB hard drive which has 4 partitions.
When I use the win 2k unplug hardware utility to remove the USB, I hav
noticed that in the file system filter attached device FastIODetachDevice I
only get called twise - I have created filter driver that attaches to the
four partitions, and the problem is that FastIODetachDevice only gets
called for two partitions, so I have the other two running.
Does anyone know why I only get called twice in the FastIODetachDevice? I
assume I should be called 4 times one time for each device/partition.

Regards,
Ronen


You are currently subscribed to ntfsd as: xxxxx@camelot.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

Both NTFS and FAT32

From: “Jamey Kirby”
>Reply-To: “File Systems Developers”
>To: “File Systems Developers”
>Subject: [ntfsd] RE: FastIODetachDevice and USB hard disk unplug problem
>Date: Sun, 20 Jan 2002 10:34:53 -0800
>
>What is the FS on the partitions?
>
>-----Original Message-----
>From: xxxxx@lists.osr.com
>[mailto:xxxxx@lists.osr.com] On Behalf Of
>xxxxx@hotmail.com
>Sent: Sunday, January 20, 2002 1:00 PM
>To: File Systems Developers
>Subject: [ntfsd] FastIODetachDevice and USB hard disk unplug problem
>
>
>Hi
>
>I have a USB hard drive which has 4 partitions.
>When I use the win 2k unplug hardware utility to remove the USB, I hav
>noticed that in the file system filter attached device
>FastIODetachDevice I
>only get called twise - I have created filter driver that attaches to
>the
>four partitions, and the problem is that FastIODetachDevice only gets
>called for two partitions, so I have the other two running. Does anyone
>know why I only get called twice in the FastIODetachDevice? I
>assume I should be called 4 times one time for each device/partition.
>
>Regards,
>Ronen
>
>—
>You are currently subscribed to ntfsd as: xxxxx@storagecraft.com To
>unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
>
>—
>You are currently subscribed to ntfsd as: xxxxx@hotmail.com
>To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx


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

How long did you wait? Or is your conclusion based upon observation within
a few minutes of the dismount?

What you should next try is accessing some OTHER file on some OTHER file
system so you can get the VM system to purge out the contents of memory.
That will cause any dangling references to go away and then the file
system(s) can delete the device object.

Also, you might wish to watch (using filemon) to determine if the unplug
hardware utility is sending dismounts to NTFS, because if it does not, NTFS
won’t handle the drive removal gracefully. NTFS handles dismount just fine,
but not media or device removal.

Regards,

Tony

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

-----Original Message-----
From: xxxxx@hotmail.com [mailto:xxxxx@hotmail.com]
Sent: Saturday, January 19, 2002 8:00 PM
To: File Systems Developers
Subject: [ntfsd] FastIODetachDevice and USB hard disk unplug problem

Hi

I have a USB hard drive which has 4 partitions.
When I use the win 2k unplug hardware utility to remove the USB, I hav
noticed that in the file system filter attached device FastIODetachDevice I
only get called twise - I have created filter driver that attaches to the
four partitions, and the problem is that FastIODetachDevice only gets
called for two partitions, so I have the other two running.
Does anyone know why I only get called twice in the FastIODetachDevice? I
assume I should be called 4 times one time for each device/partition.

Regards,
Ronen


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