On 02/15/2010 10:29 PM, David Allan wrote: > * If the volume is a sparse file and the fiemap ioctl is available, > use fiemap to locate the volume's extents. What about for a sparse file doing just ftruncate (fd, 0); ftruncate (fd, st.st_size); ? It's already sparse, it doesn't hurt to make it _more_ sparse. Paolo