]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit - spaceman/trim.c
xfs_spaceman: Free space mapping command
authorDave Chinner <dchinner@redhat.com>
Wed, 21 Jun 2017 22:14:30 +0000 (17:14 -0500)
committerEric Sandeen <sandeen@redhat.com>
Wed, 21 Jun 2017 22:14:30 +0000 (17:14 -0500)
commitcccf6abc25085dbfa0c9d14cd42fcb679c450242
tree234c2a12c867b5b72ff28e365d0fdfd8bbd10f1f
parentc98132d1c854b9a032d28103f93a05880387418a
xfs_spaceman: Free space mapping command

Add freespace mapping tool modelled on the xfs_db freesp command.
The advantage of this command over xfs_db is that it can be done
online and is coherent with concurrent modifications to the
filesystem.

This requires the kernel to support the XFS_IOC_GETFSMAP ioctl to map
free space indexes.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
[darrick: port from FIEMAPFS to GETFSMAP]
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
spaceman/Makefile
spaceman/file.c
spaceman/freesp.c [new file with mode: 0644]
spaceman/init.c
spaceman/prealloc.c
spaceman/space.h
spaceman/trim.c