[issue10142] Support for SEEK_HOLE/SEEK_DATA

Andreas Klauer report at bugs.python.org
Tue Mar 20 22:59:43 CET 2012


Andreas Klauer <andreas.klauer at googlemail.com> added the comment:

> ZFS supports SEEK_HOLE/SEEK_DATA in "lseek()" syscall.
> The feature has patches available too for Linux, but never integrated in mainline kernel, AFAIK.
> it is difficult to write a testcase when I can only test under a system with ZFS

I don't know if this could help, but recently Linux did get some commits regarding SEEK_HOLE/SEEK_DATA ( e.g. http://git.kernel.org/linus/982d816581eeeacfe5b2b7c6d47d13a157616eff ). I haven't tested whether it works / which filesystems support it. Grepping the Linux sources for SEEK_HOLES gives me several hits, e.g. for btrfs.

----------
nosy: +Andreas.Klauer

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10142>
_______________________________________


More information about the Python-bugs-list mailing list