Hi!
I am doing my first FSD and I have a doubt regarding the IOCTL_DISK_GET_PARTITION_INFO request. I would appreciate any help in this regard.
I assumed that the IOCTL_DISK_GET_PARTITION_INFO request returned the partition info inculding the partition type.
But I find that in my (IRP_MJ_FILE_SYSTEM_CONTROL) IRP_MN_MOUNT_VOLUME handler, when I do a IOCTL_DISK_GET_PARTITION_INFO request, nothing (valid) was returned except for the FAT32 partitions. (I have two ext2 partitions.)
I tried compiling and running the sample FastFAT driver and got the same results. In fact, in the FastFAT driver, the IOCTL_DISK_GET_PARTITION_INFO request is made and what ever is returned is simply forgotten. There was also this comment in the source code-
// Ping the volume with a partition query to make Jeff happy.
Now my questions.
-
Doesn’t the IOCTL_DISK_GET_PARTITION_INFO request handle all partition types? Are the native partitions that are recoganised?
-
Will it work once the volume has been mounted???
I am running my driver on Windows NT 4 SP6.
Any info in this regard will be appreciated.
Manoj
Do You Yahoo!?
Get personalised at My Yahoo!.
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
Partition types from the partition table are not used by NT, at least by the filesystems.
FAT or NTFS will work even if the partition type is wrong.
NT just tries to mount any filesystem to any available partition. Some will succeed.
Max
----- Original Message -----
From: Manoj Paul Joseph
To: File Systems Developers
Sent: Saturday, January 19, 2002 8:15 PM
Subject: [ntfsd] IOCTL_DISK_GET_PARTITION_INFO
Hi!
I am doing my first FSD and I have a doubt regarding the IOCTL_DISK_GET_PARTITION_INFO request. I would appreciate any help in this regard.
I assumed that the IOCTL_DISK_GET_PARTITION_INFO request returned the partition info inculding the partition type.
But I find that in my (IRP_MJ_FILE_SYSTEM_CONTROL) IRP_MN_MOUNT_VOLUME handler, when I do a IOCTL_DISK_GET_PARTITION_INFO request, nothing (valid) was returned except for the FAT32 partitions. (I have two ext2 partitions.)
I tried compiling and running the sample FastFAT driver and got the same results. In fact, in the FastFAT driver, the IOCTL_DISK_GET_PARTITION_INFO request is made and what ever is returned is simply forgotten. There was also this comment in the source code-
// Ping the volume with a partition query to make Jeff happy.
Now my questions.
-
Doesn’t the IOCTL_DISK_GET_PARTITION_INFO request handle all partition types? Are the native partitions that are recoganised?
-
Will it work once the volume has been mounted???
I am running my driver on Windows NT 4 SP6.
Any info in this regard will be appreciated.
Manoj
Do You Yahoo!?
Get personalised at My Yahoo!. — 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