]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
libfrog: refactor online geometry queries
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 9 Sep 2019 19:36:57 +0000 (15:36 -0400)
committerEric Sandeen <sandeen@redhat.com>
Mon, 9 Sep 2019 19:36:57 +0000 (15:36 -0400)
commit9612817d82b78604559f2e760f84060f766733c2
tree9f9b697ad623f5ab11d7b8c5108e6b1468174abd
parentc7498b6911d03f2bd7f74e9f9862d8d5fbd5b5da
libfrog: refactor online geometry queries

Refactor all the open-coded XFS_IOC_FSGEOMETRY queries into a single
helper that we can use to standardize behaviors across mixed xfslibs
versions.  This is the prelude to introducing a new FSGEOMETRY version
in 5.2 and needing to fix the (relatively few) client programs.

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>
[sandeen: remove 5.2.1 compat hack now that we have the wrapper]
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
18 files changed:
Makefile
fsr/xfs_fsr.c
growfs/xfs_growfs.c
include/fsgeom.h
io/bmap.c
io/fsmap.c
io/open.c
io/stat.c
libfrog/fsgeom.c
libxfs/xfs_fs.h
quota/free.c
repair/xfs_repair.c
rtcp/Makefile
rtcp/xfs_rtcp.c
scrub/common.h
scrub/phase1.c
spaceman/file.c
spaceman/info.c