Forcing FS to rescan volume

Hello,

I am working on a driver which gets installed between dmio and FS drivers.
My driver receives data blocks from network through TDI and writes it to
the volume using dmio. As this happen below FS, the FS doesn’t reflect the
new data. However, running chkdsk reports the exact current state as it
bypasses FS and works at block level.

I tried unmount / mount operation, which reflects the current state of the
system. But the unmount operation will fail if there are any open files on
that volume.

Is there any way to force FS to rescan the volumes periodically? How can I
do that through my driver??

Thanks,

  • Hrishikesh.

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

> Hello,

I am working on a driver which gets installed between dmio and FS drivers.
My driver receives data blocks from network through TDI and writes it to
the volume using dmio. As this happen below FS, the FS doesn’t reflect the
new data.

This is extremely wrong design. For instance, you will not be able to
maintain coherency between the cached file data and what you have write.

Max


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

>> Hello,

>
> I am working on a driver which gets installed between dmio and FS
drivers.
> My driver receives data blocks from network through TDI and writes it to
> the volume using dmio. As this happen below FS, the FS doesn’t reflect
the
> new data.

This is extremely wrong design. For instance, you will not be able to
maintain coherency between the cached file data and what you have write.

Thanks Max,

I missed one point. The writes are not allowed on these volumes. They are
available as read-only for applications. So no cache-coherency problems.
But the user has to remount the volume every time to see the latest
information.

Is there a way to tell FS to force FS to rescan volume?

  • Hrishikesh.

Do You Yahoo!?

Get your free @yahoo.com address at http://mail.yahoo.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

> I missed one point. The writes are not allowed on these volumes. They are

available as read-only for applications. So no cache-coherency problems.

No, there ARE cache coherency problems. Your cache keeps stale data which is
old, while the disk has the new data.

But the user has to remount the volume every time to see the latest
information.

Is there a way to tell FS to force FS to rescan volume?

Better write to disk using the FS and not from-under-it.

Max


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