]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
fiemap: Factor out common code used for printing holes
authorNikolay Borisov <nborisov@suse.com>
Thu, 24 Aug 2017 21:43:42 +0000 (16:43 -0500)
committerEric Sandeen <sandeen@redhat.com>
Thu, 24 Aug 2017 21:43:42 +0000 (16:43 -0500)
commitabd0c76667e705604b2a82f4a17cbeba4478ca98
tree12bfaddd8cf83a591a0c6d55ad1f9046de9e490e
parent997bfca5d3a9f5889e262357fbd3f26e76ce002f
fiemap: Factor out common code used for printing holes

The code responsible for printing holes is scattered across 3 places:
plain print function, verbose print function and in the block handling EOF hole.
Introduce a new function factoring out the common code and replace the 3 sites
where the code is used with it. This reduces duplication and makes it apparent
when we are printing holes. No functional changes.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
io/fiemap.c