Note that the ftruncate man page says ftruncate can fail (when called to extend a file) on filesystems like VFAT. I don't know if vfat even supports sparse files, but you need to make sure the file actually ends up at the right length, unless you want to just return an error when someone uses cp --sparse to a lame filesystem.
-- #define X(x,y) x##y Peter Cordes ; e-mail: X([EMAIL PROTECTED] , des.ca) "The gods confound the man who first found out how to distinguish the hours! Confound him, too, who in this place set up a sundial, to cut and hack my day so wretchedly into small pieces!" -- Plautus, 200 BC -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]