Linux Kernel: Implement SEEK_HOLE/SEEK_DATA in Custom llseek Handlers
The kernel commit “fs: handle SEEK_HOLE/SEEK_DATA properly in all fs’s that define their own llseek” (06222e4) by Josef Bacik ensures that all filesystems with custom llseek implementations properly handle the SEEK_HOLE and SEEK_DATA whence values introduced in Linux 3.1. Why This Matters When a filesystem implements a custom llseek handler, it bypasses the generic implementation….
