]> git.ipfire.org Git - thirdparty/util-linux.git/commit
losetup: don't ignore EBUSY in losetup when the loop device is given
authorStanislav Brabec <sbrabec@suse.cz>
Tue, 27 May 2014 18:38:17 +0000 (20:38 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 28 May 2014 07:18:40 +0000 (09:18 +0200)
commitd6ef7d6c69201190d9623885d418f9bdcf31642e
treeb8a3000fffef268eefcf1388f27ff73c13ebf7cc
parentf7e21185087c30c5f13bf92009238e316f8c1cf4
losetup: don't ignore EBUSY in losetup when the loop device is given

losetup ignores the EBUSY error.  In the loop fo A_CREATE action, it skips
the error handling when errno = EBUSY.  It's OK for the case where no loop
device is specified, but the error has to be handled when the device is given
explicitly.

Author:  Takashi Iwai <tiwai@suse.de>
Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
sys-utils/losetup.c