Attaching to a removable device

Hello

What happens if an FSFD attaches say to a CDROM drive, then that CDROM gets
ejected?

Should the FSFD detach from the device and re-attach to it when it has be
inserted again?


Elias

You may make an idea if you run Filemon
on a removable device, then eject the media
and try to access it.

L.

No, you will need to track the media change. Usually, at FSF level, this is
new FS volume device object and the new mount. You must also handle the
re-insertion of the original media.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “lallous”
Newsgroups: ntfsd
To: “Windows File Systems Devs Interest List”
Sent: Monday, September 27, 2004 12:29 PM
Subject: [ntfsd] Attaching to a removable device

> Hello
>
> What happens if an FSFD attaches say to a CDROM drive, then that CDROM gets
> ejected?
>
> Should the FSFD detach from the device and re-attach to it when it has be
> inserted again?
>
> –
> Elias
>
>
>
> —
> Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com

A FSFD should do nothing special on its own in these situations.

You should correctly detach from a volume when your FastIoDetachDevice
routine is called and attach to a volume when you see that a new volume
is being mounted.

It is the file system’s job to dismount and mount volumes as appropriate
based on media changes and if files are open on the given volume.

Neal Christiansen
Microsoft File System Filter Group Lead
This posting is provided “AS IS” with no warranties, and confers no
rights

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S. Shatskih
Sent: Monday, September 27, 2004 6:29 AM
To: Windows File Systems Devs Interest List
Subject: Re: [ntfsd] Attaching to a removable device

No, you will need to track the media change. Usually, at FSF level,
this is
new FS volume device object and the new mount. You must also handle the
re-insertion of the original media.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “lallous”
Newsgroups: ntfsd
To: “Windows File Systems Devs Interest List”
Sent: Monday, September 27, 2004 12:29 PM
Subject: [ntfsd] Attaching to a removable device

> Hello
>
> What happens if an FSFD attaches say to a CDROM drive, then that CDROM
gets
> ejected?
>
> Should the FSFD detach from the device and re-attach to it when it has
be
> inserted again?
>
> –
> Elias
>
>
>
> —
> Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com