Mike, I was hoping that some one has a complete example for a bool
has_file_one_or_more_holes(const char *path) function.

Olga

2012/3/26 Mike Gerdts <mger...@gmail.com>:
> 2012/3/26 ольга крыжановская <olga.kryzhanov...@gmail.com>:
>> How can I test if a file on ZFS has holes, i.e. is a sparse file,
>> using the C api?
>
> See SEEK_HOLE in lseek(2).
>
> --
> Mike Gerdts
> http://mgerdts.blogspot.com/



-- 
      ,   _                                    _   ,
     { \/`o;====-    Olga Kryzhanovska   -====;o`\/ }
.----'-/`-/     olga.kryzhanov...@gmail.com   \-`\-'----.
 `'-..-| /       http://twitter.com/fleyta     \ |-..-'`
      /\/\     Solaris/BSD//C/C++ programmer   /\/\
      `--`                                      `--`
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to