How to distinguish a hard disk partition being NTFS volume, FAT or FAT32 in a filter driver?

Hi,

It seems that the owning driver name is different for each volume type. Is
it enough to check the driver name to distinguish different volume types?

Thanks,

Shangwu

>It seems that the owning driver name is different for each volume type. Is

it enough to check the driver name to distinguish different volume types?

Shangwu,

I had a similar problem and I read the BOOT Record (first block on the
partition) and using the documentation about that structure
depending on filesystem type, I just figured out which one it is.

Rick…

The best solution is to query the volume for
FILE_FS_ATTRIBUTE_INFORMATION, but this sometimes isn’t practical (e.g.
when you don’t have the pathname you need to open a handle to the
volume). Checking the driver name of the base filesystem device object
works assuming that you are aware that Microsoft reserves the right to
change the names of its drivers in future versions of Windows. :slight_smile:

  • Nicholas Ryan

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Shangwu Qi
Sent: Friday, March 21, 2003 11:59 AM
To: File Systems Developers
Subject: [ntfsd] How to distinguish a hard disk partition
being NTFS volume, FAT or FAT32 in a filter driver?

Hi,

It seems that the owning driver name is different for each
volume type. Is it enough to check the driver name to
distinguish different volume types?

Thanks,

Shangwu


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