Hi folks, This is the third try to support to dump a sparse file in debugfs. In this patch series ext2fs_file_llseek_data/hole() functions are defined to let the caller seek to the next data/hole directly. Meanwhile in dump_file() it is changed to handle sparse file. v3 <- v2: - use extent interfaces to handle extent-based file in seek_data/hole function - call ext2fs_file_llseek() to retrieve current offset in dump_file() v2 <- v1: - split original patch into two parts. - make code clearly according to Ted's suggestions Regards, - Zheng Zheng Liu (2): libext2fs: introduce lseek SEEK_DATA/HOLE debugfs: dump a sparse file debugfs/dump.c | 48 +++++++++-- lib/ext2fs/ext2_err.et.in | 6 ++ lib/ext2fs/ext2fs.h | 3 + lib/ext2fs/fileio.c | 208 +++++++++++++++++++++++++++++++++++++++++++++- 4 files changed, 254 insertions(+), 11 deletions(-) -- 1.7.12.rc2.18.g61b472e -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html