]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_io: v8 add the lseek() SEEK_DATA/SEEK_HOLE support
authorMark Tinguely <tinguely@sgi.com>
Fri, 23 Aug 2013 17:48:23 +0000 (17:48 +0000)
committerRich Johnston <rjohnston@sgi.com>
Wed, 28 Aug 2013 15:02:30 +0000 (10:02 -0500)
commitb169249b1257d2a127484896a4a4ab2faf17f747
treef19dd47eb3f4061509050d98868c8c08cf4b5279
parent982e5c7e57eaedd81984e3da6cb8ffae726dc704
xfs_io: v8 add the lseek() SEEK_DATA/SEEK_HOLE support

Add the lseek SEEK_DATA/SEEK_HOLE support into xfs_io.
The result from the lseek() call will be printed to the output.
For example:

xfs_io> seek -hs 609k
Whence Start Result
HOLE 623616 630784

Signed-off-by: Mark Tinguely <tinguely@sgi.com>
Reviewed-by: Rich Johnston <rjohnston@sgi.com>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
io/Makefile
io/init.c
io/io.h
io/seek.c [new file with mode: 0644]
man/man8/xfs_io.8