windows - Determining volume cluster size without using GetDiskFreeSpace -


i'd programmatically determine cluster (a.k.a. allocation unit) size of volume (a.k.a. file system) mounted on windows system. various reasons, i'd find solution not use getdiskfreespace().

are there fsctl_xxx or ioctl_xxx requests can used purpose?

you can use deviceiocontrol ioctl_storage_query_property. on input, set propertyid in storage_property_query structure storageaccessalignmentproperty.

that storage_access_alignment_descriptor, contains members both bytesperlogicalsector , bytesperphysicalsector. linked reference page includes demo code retrieve , display logical/physical sector sizes device.


Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

c++ - Accessing inactive union member and undefined behavior? -

php - Get uncommon values from two or more arrays -