John Lam 1997 — 2026

Sparse files on Windows 2000+

Jason Kaczor points out in a comment that Microsoft did add sparse file support in Windows 2000. Apparently the authors in the paper that I referenced didn’t use the FSCTL_SET_SPARSE flag in a call to DeviceIoControl() prior to running their benchmarks.

I’m amazed that someone from the NTFS team didn’t set those guys straight before they published their results. I would have assumed that the NTFS team and the Windows performance team guys reviewed their paper.

1 archived reader comment

runtime (2003-02-14)

Why should the programmer need to manually set a FSCTL_SET_SPARSE flag to enable sparse files? Isn’t the data format on disk supposed to be an implementation detail that is hidden from users by a nice abstraction called a “file”? Typical Microsoft design..