Trouble with Explorer and Volume names

Hi all,

I have posted on this before about a year ago, but I have been ignoring the
problem and now I need to fix it. We have an IFS (not a filter) that has a
minor problem.

When a storage (disk) device appears, our IFS, along with the other IFSs in
the system are all given an opportunity to mount that device. If we
immediately mount the device the first time we are given the chance to do
so, all is well. However, under some circumstances, our IFS is not prepared
to mount the storage device yet (network security server needs to be ready,
etc.) Thus, the mount request will return STATUS_UNRECOGNIZED_VOLUME.

Later, when the IFS is ready, a new mount request comes in and we mount the
storage device like normal.

Here is the problem. If we mount the storage device the first time we are
given an opportunity to do so, all is well. If not, the Windows Explorer in
XP never shows the correct volume name or FS type. It always shows a volume
name of “Local Disk” and an FS Type of “Raw”. Even though we are able to use
the disk, the explorer won’t show it correctly. Even killing and restarting
the explorer does not fix this.

If I look at the volume in a command window, the volume name is shown
correctly.

Is anyone aware of something that I need to call or do to get the explorer
to recognize this volume properly?

Thanks,

Don

Try calling explicit dismount for all volumes with RAW FS on it after your
FSD will be ready.

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

----- Original Message -----
From: “Don”
Newsgroups: ntfsd
To: “Windows File Systems Devs Interest List”
Sent: Thursday, February 17, 2005 7:42 PM
Subject: [ntfsd] Trouble with Explorer and Volume names

> Hi all,
>
> I have posted on this before about a year ago, but I have been ignoring the
> problem and now I need to fix it. We have an IFS (not a filter) that has a
> minor problem.
>
> When a storage (disk) device appears, our IFS, along with the other IFSs in
> the system are all given an opportunity to mount that device. If we
> immediately mount the device the first time we are given the chance to do
> so, all is well. However, under some circumstances, our IFS is not prepared
> to mount the storage device yet (network security server needs to be ready,
> etc.) Thus, the mount request will return STATUS_UNRECOGNIZED_VOLUME.
>
> Later, when the IFS is ready, a new mount request comes in and we mount the
> storage device like normal.
>
> Here is the problem. If we mount the storage device the first time we are
> given an opportunity to do so, all is well. If not, the Windows Explorer in
> XP never shows the correct volume name or FS type. It always shows a volume
> name of “Local Disk” and an FS Type of “Raw”. Even though we are able to use
> the disk, the explorer won’t show it correctly. Even killing and restarting
> the explorer does not fix this.
>
> If I look at the volume in a command window, the volume name is shown
> correctly.
>
> Is anyone aware of something that I need to call or do to get the explorer
> to recognize this volume properly?
>
> Thanks,
>
> Don
>
>
>
> —
> 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

Is there a way to do this in Kernel mode, or would I have to write a user
mode service to do this?

I guess I would need to somehow find out the file system (raw) current
mounted on the storage device and then send it a dismount IOCTL. How would I
find this?

Thanks,

Don

“Maxim S. Shatskih” wrote in message
news:xxxxx@ntfsd…
> Try calling explicit dismount for all volumes with RAW FS on it after
> your
> FSD will be ready.
>
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
> ----- Original Message -----
> From: “Don”
> Newsgroups: ntfsd
> To: “Windows File Systems Devs Interest List”
> Sent: Thursday, February 17, 2005 7:42 PM
> Subject: [ntfsd] Trouble with Explorer and Volume names
>
>
>> Hi all,
>>
>> I have posted on this before about a year ago, but I have been ignoring
>> the
>> problem and now I need to fix it. We have an IFS (not a filter) that has
>> a
>> minor problem.
>>
>> When a storage (disk) device appears, our IFS, along with the other IFSs
>> in
>> the system are all given an opportunity to mount that device. If we
>> immediately mount the device the first time we are given the chance to do
>> so, all is well. However, under some circumstances, our IFS is not
>> prepared
>> to mount the storage device yet (network security server needs to be
>> ready,
>> etc.) Thus, the mount request will return STATUS_UNRECOGNIZED_VOLUME.
>>
>> Later, when the IFS is ready, a new mount request comes in and we mount
>> the
>> storage device like normal.
>>
>> Here is the problem. If we mount the storage device the first time we are
>> given an opportunity to do so, all is well. If not, the Windows Explorer
>> in
>> XP never shows the correct volume name or FS type. It always shows a
>> volume
>> name of “Local Disk” and an FS Type of “Raw”. Even though we are able to
>> use
>> the disk, the explorer won’t show it correctly. Even killing and
>> restarting
>> the explorer does not fix this.
>>
>> If I look at the volume in a command window, the volume name is shown
>> correctly.
>>
>> Is anyone aware of something that I need to call or do to get the
>> explorer
>> to recognize this volume properly?
>>
>> Thanks,
>>
>> Don
>>
>>
>>
>> —
>> 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
>
>

Hello Don,

Are you using Volume Event notifications in your mount function?
Something like FsRtlNotifyVolumeEvent(FileObjectToNotify,
FSRTL_VOLUME_MOUNT);
If not then you should add them.

Best regards,
Oleksiy

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Don
Sent: Thursday, February 17, 2005 8:21 PM
To: Windows File Systems Devs Interest List
Subject: Re:[ntfsd] Trouble with Explorer and Volume names

Is there a way to do this in Kernel mode, or would I have to
write a user mode service to do this?

I guess I would need to somehow find out the file system
(raw) current mounted on the storage device and then send it
a dismount IOCTL. How would I find this?

Thanks,

Don

“Maxim S. Shatskih” wrote in message
> news:xxxxx@ntfsd…
> > Try calling explicit dismount for all volumes with RAW FS on it
> > after your FSD will be ready.
> >
> > Maxim Shatskih, Windows DDK MVP
> > StorageCraft Corporation
> > xxxxx@storagecraft.com
> > http://www.storagecraft.com
> >
> > ----- Original Message -----
> > From: “Don”
> > Newsgroups: ntfsd
> > To: “Windows File Systems Devs Interest List”
> > Sent: Thursday, February 17, 2005 7:42 PM
> > Subject: [ntfsd] Trouble with Explorer and Volume names
> >
> >
> >> Hi all,
> >>
> >> I have posted on this before about a year ago, but I have been
> >> ignoring the problem and now I need to fix it. We have an
> IFS (not a
> >> filter) that has a minor problem.
> >>
> >> When a storage (disk) device appears, our IFS, along with
> the other
> >> IFSs in the system are all given an opportunity to mount
> that device.
> >> If we immediately mount the device the first time we are given the
> >> chance to do so, all is well. However, under some
> circumstances, our
> >> IFS is not prepared to mount the storage device yet
> (network security
> >> server needs to be ready,
> >> etc.) Thus, the mount request will return
> STATUS_UNRECOGNIZED_VOLUME.
> >>
> >> Later, when the IFS is ready, a new mount request comes in and we
> >> mount the storage device like normal.
> >>
> >> Here is the problem. If we mount the storage device the
> first time we
> >> are given an opportunity to do so, all is well. If not,
> the Windows
> >> Explorer in XP never shows the correct volume name or FS type. It
> >> always shows a volume name of “Local Disk” and an FS Type
> of “Raw”.
> >> Even though we are able to use the disk, the explorer
> won’t show it
> >> correctly. Even killing and restarting the explorer does not fix
> >> this.
> >>
> >> If I look at the volume in a command window, the volume
> name is shown
> >> correctly.
> >>
> >> Is anyone aware of something that I need to call or do to get the
> >> explorer to recognize this volume properly?
> >>
> >> Thanks,
> >>
> >> Don
> >>
> >>
> >>
> >> —
> >> 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@nero.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>

Oleksiy,

Thanks for your suggestion. I was missing that code, but even after adding
it I am still experiencing the same problem.

Does anyone else have any ideas?

Thanks,

Don

“Oleksiy Shatylo” wrote in message news:xxxxx@ntfsd…
> Hello Don,
>
> Are you using Volume Event notifications in your mount function?
> Something like FsRtlNotifyVolumeEvent(FileObjectToNotify,
> FSRTL_VOLUME_MOUNT);
> If not then you should add them.
>
> Best regards,
> Oleksiy
>> -----Original Message-----
>> From: xxxxx@lists.osr.com
>> [mailto:xxxxx@lists.osr.com] On Behalf Of Don
>> Sent: Thursday, February 17, 2005 8:21 PM
>> To: Windows File Systems Devs Interest List
>> Subject: Re:[ntfsd] Trouble with Explorer and Volume names
>>
>> Is there a way to do this in Kernel mode, or would I have to
>> write a user mode service to do this?
>>
>> I guess I would need to somehow find out the file system
>> (raw) current mounted on the storage device and then send it
>> a dismount IOCTL. How would I find this?
>>
>> Thanks,
>>
>> Don
>>
>> “Maxim S. Shatskih” wrote in message
>> news:xxxxx@ntfsd…
>> > Try calling explicit dismount for all volumes with RAW FS on it
>> > after your FSD will be ready.
>> >
>> > Maxim Shatskih, Windows DDK MVP
>> > StorageCraft Corporation
>> > xxxxx@storagecraft.com
>> > http://www.storagecraft.com
>> >
>> > ----- Original Message -----
>> > From: “Don”
>> > Newsgroups: ntfsd
>> > To: “Windows File Systems Devs Interest List”
>> > Sent: Thursday, February 17, 2005 7:42 PM
>> > Subject: [ntfsd] Trouble with Explorer and Volume names
>> >
>> >
>> >> Hi all,
>> >>
>> >> I have posted on this before about a year ago, but I have been
>> >> ignoring the problem and now I need to fix it. We have an
>> IFS (not a
>> >> filter) that has a minor problem.
>> >>
>> >> When a storage (disk) device appears, our IFS, along with
>> the other
>> >> IFSs in the system are all given an opportunity to mount
>> that device.
>> >> If we immediately mount the device the first time we are given the
>> >> chance to do so, all is well. However, under some
>> circumstances, our
>> >> IFS is not prepared to mount the storage device yet
>> (network security
>> >> server needs to be ready,
>> >> etc.) Thus, the mount request will return
>> STATUS_UNRECOGNIZED_VOLUME.
>> >>
>> >> Later, when the IFS is ready, a new mount request comes in and we
>> >> mount the storage device like normal.
>> >>
>> >> Here is the problem. If we mount the storage device the
>> first time we
>> >> are given an opportunity to do so, all is well. If not,
>> the Windows
>> >> Explorer in XP never shows the correct volume name or FS type. It
>> >> always shows a volume name of “Local Disk” and an FS Type
>> of “Raw”.
>> >> Even though we are able to use the disk, the explorer
>> won’t show it
>> >> correctly. Even killing and restarting the explorer does not fix
>> >> this.
>> >>
>> >> If I look at the volume in a command window, the volume
>> name is shown
>> >> correctly.
>> >>
>> >> Is anyone aware of something that I need to call or do to get the
>> >> explorer to recognize this volume properly?
>> >>
>> >> Thanks,
>> >>
>> >> Don
>> >>
>> >>
>> >>
>> >> —
>> >> 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@nero.com
>> To unsubscribe send a blank email to xxxxx@lists.osr.com
>>
>>
>
>

A little more information on this.

The explorer does properly show the volume size and available space after
the volume is mounted. It also properly adds the tabs for security and
quota, which are not there when the file system is not mounted. Thus the
explorer is clearly seeing a difference when the file system is mounted vs
when it is raw. But it still shows RAW as the file system and “Local Disk”
as the volume name. Even restarting the explorer does not help.

Don

“Don” wrote in message news:xxxxx@ntfsd…
> Hi all,
>
> I have posted on this before about a year ago, but I have been ignoring
> the problem and now I need to fix it. We have an IFS (not a filter) that
> has a minor problem.
>
> When a storage (disk) device appears, our IFS, along with the other IFSs
> in the system are all given an opportunity to mount that device. If we
> immediately mount the device the first time we are given the chance to do
> so, all is well. However, under some circumstances, our IFS is not
> prepared to mount the storage device yet (network security server needs to
> be ready, etc.) Thus, the mount request will return
> STATUS_UNRECOGNIZED_VOLUME.
>
> Later, when the IFS is ready, a new mount request comes in and we mount
> the storage device like normal.
>
> Here is the problem. If we mount the storage device the first time we are
> given an opportunity to do so, all is well. If not, the Windows Explorer
> in XP never shows the correct volume name or FS type. It always shows a
> volume name of “Local Disk” and an FS Type of “Raw”. Even though we are
> able to use the disk, the explorer won’t show it correctly. Even killing
> and restarting the explorer does not fix this.
>
> If I look at the volume in a command window, the volume name is shown
> correctly.
>
> Is anyone aware of something that I need to call or do to get the explorer
> to recognize this volume properly?
>
> Thanks,
>
> Don
>
>
>

Hi Don,

  1. Try to monitor with IrpTracker/FileMon/FileSpy which requests OS sends
    after your FSD mounted volume.
    Check if you properly handled these requests.
  2. Did you check your FSD with IFS test from HCT?
  3. As last resort try to set DO_VERIFY_VOLUME on your target device to
    provoke verification sequence.

Best regards,
Oleksiy

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Don
Sent: Monday, February 28, 2005 7:11 PM
To: Windows File Systems Devs Interest List
Subject: Re:[ntfsd] Trouble with Explorer and Volume names

A little more information on this.

The explorer does properly show the volume size and available
space after the volume is mounted. It also properly adds the
tabs for security and quota, which are not there when the
file system is not mounted. Thus the explorer is clearly
seeing a difference when the file system is mounted vs when
it is raw. But it still shows RAW as the file system and “Local Disk”
as the volume name. Even restarting the explorer does not help.

Don

“Don” wrote in message news:xxxxx@ntfsd…
> > Hi all,
> >
> > I have posted on this before about a year ago, but I have
> been ignoring
> > the problem and now I need to fix it. We have an IFS (not a
> filter) that
> > has a minor problem.
> >
> > When a storage (disk) device appears, our IFS, along with
> the other IFSs
> > in the system are all given an opportunity to mount that
> device. If we
> > immediately mount the device the first time we are given
> the chance to do
> > so, all is well. However, under some circumstances, our IFS is not
> > prepared to mount the storage device yet (network security
> server needs to
> > be ready, etc.) Thus, the mount request will return
> > STATUS_UNRECOGNIZED_VOLUME.
> >
> > Later, when the IFS is ready, a new mount request comes in
> and we mount
> > the storage device like normal.
> >
> > Here is the problem. If we mount the storage device the
> first time we are
> > given an opportunity to do so, all is well. If not, the
> Windows Explorer
> > in XP never shows the correct volume name or FS type. It
> always shows a
> > volume name of “Local Disk” and an FS Type of “Raw”. Even
> though we are
> > able to use the disk, the explorer won’t show it correctly.
> Even killing
> > and restarting the explorer does not fix this.
> >
> > If I look at the volume in a command window, the volume
> name is shown
> > correctly.
> >
> > Is anyone aware of something that I need to call or do to
> get the explorer
> > to recognize this volume properly?
> >
> > Thanks,
> >
> > Don
> >
> >
> >
>
>
>
> —
> Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@nero.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>