Question on filtering partition size

I am working on a Windows 2000 volume filter driver (it is situated below
the file system and above the disk driver). I would like to filter the
returned length of a partition (i.e., I would like to make the partition
appear to be smaller than it really is). Partition length is returned
from the IOCTL_DISK_GET_PARTITION_INFO Irp. My completion routine for
this Irp fixes up the length field and everything seems to work well.

My concern is that I may cause a disk management utility to break. I have
tried the standard disk utilities such as Win 2k’s Disk Management, and
chkdsk. I have also tried basic and dynamic disks. Everything seems to
work fine.

Does anyone know of anything I may be breaking by filtering partition size
in the IOCTL?

Thanks
John

The size of the partition is also save in the boot sector (sector number 0).
So you cheat the IOCTL IOCTL_DISK_GET_PARTITION_INFO
but when the filesystem component verify its size it read it from the boot
sector.

Another point (for NTFS for example) is that the filesystem has a bitmap
that
represent the whole clusters that this partition has. This is written in
MFT(6)
and this has a confict with what you return in the above IOCTL.

OS.

----- Original Message -----
From:
To: “File Systems Developers”
Sent: Thursday, June 20, 2002 6:32 PM
Subject: [ntfsd] Question on filtering partition size

> I am working on a Windows 2000 volume filter driver (it is situated below
> the file system and above the disk driver). I would like to filter the
> returned length of a partition (i.e., I would like to make the partition
> appear to be smaller than it really is). Partition length is returned
> from the IOCTL_DISK_GET_PARTITION_INFO Irp. My completion routine for
> this Irp fixes up the length field and everything seems to work well.
>
> My concern is that I may cause a disk management utility to break. I have
> tried the standard disk utilities such as Win 2k’s Disk Management, and
> chkdsk. I have also tried basic and dynamic disks. Everything seems to
> work fine.
>
> Does anyone know of anything I may be breaking by filtering partition size
> in the IOCTL?
>
> Thanks
> John
>
> —
> You are currently subscribed to ntfsd as: xxxxx@hotmail.com
> To unsubscribe send a blank email to %%email.unsub%%
>

Try filtering the SCSI device.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of osml
Sent: Thursday, June 20, 2002 10:44 AM
To: File Systems Developers
Subject: [ntfsd] Re: Question on filtering partition size

The size of the partition is also save in the boot sector (sector number
0).
So you cheat the IOCTL IOCTL_DISK_GET_PARTITION_INFO
but when the filesystem component verify its size it read it from the
boot
sector.

Another point (for NTFS for example) is that the filesystem has a bitmap
that
represent the whole clusters that this partition has. This is written in
MFT(6)
and this has a confict with what you return in the above IOCTL.

OS.

----- Original Message -----
From:
To: “File Systems Developers”
Sent: Thursday, June 20, 2002 6:32 PM
Subject: [ntfsd] Question on filtering partition size

> I am working on a Windows 2000 volume filter driver (it is situated
below
> the file system and above the disk driver). I would like to filter
the
> returned length of a partition (i.e., I would like to make the
partition
> appear to be smaller than it really is). Partition length is returned
> from the IOCTL_DISK_GET_PARTITION_INFO Irp. My completion routine for
> this Irp fixes up the length field and everything seems to work well.
>
> My concern is that I may cause a disk management utility to break. I
have
> tried the standard disk utilities such as Win 2k’s Disk Management,
and
> chkdsk. I have also tried basic and dynamic disks. Everything seems
to
> work fine.
>
> Does anyone know of anything I may be breaking by filtering partition
size
> in the IOCTL?
>
> Thanks
> John
>
> —
> You are currently subscribed to ntfsd as: xxxxx@hotmail.com
> To unsubscribe send a blank email to %%email.unsub%%
>


You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
To unsubscribe send a blank email to %%email.unsub%%