]> git.ipfire.org Git - thirdparty/util-linux.git/commit
mkswap: improve diagnostics message if the device is mounted
authorPetr Uzel <petr.uzel@suse.cz>
Sun, 13 May 2012 11:44:32 +0000 (13:44 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 15 May 2012 09:19:53 +0000 (11:19 +0200)
commitdceb1f220c9210a5dfa6565157b223c54f677be2
tree0a4788e23ed7d965b2b2037a45bc1752aa0e3b0d
parent95e1d8f3bad279c00cc87a388e383de3f3f3a3ca
mkswap: improve diagnostics message if the device is mounted

Currently, attempt to create swap on mounted partition results
with "/dev/sdXy: Device or resource busy" message being printed.
Change this to explicitly telling the user that the device is mounted.

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
disk-utils/mkswap.c