Device object sector size

Hi,

can someone enlighten me which driver is responsible for setting the
SectorSize member of the DEVICE_OBJECT structure? I know it’s copied
over to attached devices in IoAttachDeviceToDeviceStack, but who
initializes it first?

Thanks,
Filip

Is it ever used? Search the storage stack source in the DDK.

->AlignmentRequirement is used, and is the requirement by the storage
controller.

Filesystems ask the underlying volume for the disk geometry, so they do not
need this field too.

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

----- Original Message -----
From: “Filip Navara”
To: “Windows System Software Devs Interest List”
Sent: Thursday, August 19, 2004 4:11 AM
Subject: [ntdev] Device object sector size

> Hi,
>
> can someone enlighten me which driver is responsible for setting the
> SectorSize member of the DEVICE_OBJECT structure? I know it’s copied
> over to attached devices in IoAttachDeviceToDeviceStack, but who
> initializes it first?
>
> Thanks,
> Filip
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com

Maxim S. Shatskih wrote:

Is it ever used? Search the storage stack source in the DDK.

Actually it’s used by the 3rd-party EXT2FS driver written by Manoj Paul
Joseph (http://winext2fsd.sourceforge.net/). I already searched the NT4,
W2K and W2K3 DDK and none of the example drivers accesses it anywhere.

Regards,
Filip