cche...,
For Windows, try multiples (n = 1, 2, ...) of the disk cluster size: n
* SectorsPerCluster * BytesPerSector.
GetDiskFreeSpace function
http://msdn.microsoft.com/en-us/library/aa364935.aspx
The cluster is the allocation unit. The sector is the smallest
addressable unit. The sector size on old disks is usually 512, on some
newer disks it is 4096. The NTFS formatted disk cluster size usually
defaults to 4096.
As always, benchmark your performance hypothesis. In the past, my C
and Go benchmarks reading CD and DVD sized chunks of data have favored
4096 as the buffer size.
Peter
On Jul 23, 6:43 am,
cche...@gmail.com wrote:
> Does thaht work under Windows?