]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
libfrog: introduce xfs_fd to wrap an fd to a file on an xfs filesystem
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 9 Sep 2019 19:37:04 +0000 (15:37 -0400)
committerEric Sandeen <sandeen@redhat.com>
Mon, 9 Sep 2019 19:37:04 +0000 (15:37 -0400)
commit3f9efb2e0014cc2d4cbe1534401f22aeb7a60411
treec1e04cd37e6c0e5b3098ef4cb4db848dec36c4e8
parent9612817d82b78604559f2e760f84060f766733c2
libfrog: introduce xfs_fd to wrap an fd to a file on an xfs filesystem

Introduce a new "xfs_fd" context structure where we can store a file
descriptor and all the runtime fs context (geometry, which ioctls work,
etc.) that goes with it.  We're going to create wrappers for the
bulkstat and inumbers ioctls in subsequent patches; and when we
introduce the v5 bulkstat/inumbers ioctls we'll need all that context to
downgrade gracefully on old kernels.  Start the transition by adopting
xfs_fd natively in scrub.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Allison Collins <allison.henderson@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
16 files changed:
include/fsgeom.h
libfrog/fsgeom.c
scrub/fscounters.c
scrub/inodes.c
scrub/phase1.c
scrub/phase2.c
scrub/phase3.c
scrub/phase4.c
scrub/phase5.c
scrub/phase6.c
scrub/phase7.c
scrub/repair.c
scrub/scrub.c
scrub/spacemap.c
scrub/vfs.c
scrub/xfs_scrub.h