]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_mkfs: Do not discard if '-N' is provided
authorLukas Czerner <lczerner@redhat.com>
Tue, 12 Feb 2013 15:44:30 +0000 (16:44 +0100)
committerBen Myers <bpm@sgi.com>
Thu, 14 Feb 2013 22:06:12 +0000 (16:06 -0600)
commitde0918e62deb343f3101fe5eb8ea9579405f0792
tree52b72cb760a6c6ebed21c36651b6769e86f7bf86
parent50a3aa8977821ad072f3aa5b63645827f9b8ca1d
xfs_mkfs: Do not discard if '-N' is provided

When '-N' is specified we really should not write anything to the
device, neither we should attempt to discard the device.

This commit fixes xfs_mkfs to not attempt to discard the device in the
case user specified '-N' flag.

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Reviewed-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
mkfs/xfs_mkfs.c