]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
mkfs: Break block discard into chunks of 2 GB
authorPavel Reichl <preichl@redhat.com>
Fri, 13 Dec 2019 21:21:26 +0000 (16:21 -0500)
committerEric Sandeen <sandeen@redhat.com>
Fri, 13 Dec 2019 21:21:26 +0000 (16:21 -0500)
commit7e8a6edb4d1ba0079152eb477abbbc1dfb1ebb7e
tree131b7e4d3c96fea89bd2a6663ff9dd8c86618668
parent3f153e051abccce0c120ade5c08a675a50cecee9
mkfs: Break block discard into chunks of 2 GB

Some users are not happy about the BLKDISCARD taking too long and at the
same time not being informed about that - so they think that the command
actually hung.

This commit changes code so that progress reporting is possible and also
typing the ^C will cancel the ongoing BLKDISCARD.

Signed-off-by: Pavel Reichl <preichl@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
mkfs/xfs_mkfs.c