]> sourceware.org Git - lvm2.git/commit
blkdeactivate: fix endless loop if device(s) given and unable to umount/deactivate
authorPeter Rajnoha <prajnoha@redhat.com>
Tue, 22 Oct 2013 14:10:20 +0000 (16:10 +0200)
committerPeter Rajnoha <prajnoha@redhat.com>
Tue, 22 Oct 2013 14:24:39 +0000 (16:24 +0200)
commitb109bfc1ef7e20a72170a83dc9244c8b21ea658c
treea9b7ad8bfc3b4a2033f2a5988e262e6809023447
parentc3f44a0c66abf8916bebafe2de9da30132cea9e2
blkdeactivate: fix endless loop if device(s) given and unable to umount/deactivate

The blkdeactivate script iterates over the list of devices if they're
given as an argument and it tries to umount/deactivate them one by one.

This iteration failed to proceed if any of the umount/deactivation
was unsuccessful - there was a missing "shift" call to move to the
next argument (device) for processing. As a result of this, the same
device was tried again and again, causing an endless loop, never
proceeding to the next device given.
WHATS_NEW
scripts/blkdeactivate.sh.in
This page took 0.034148 seconds and 5 git commands to generate.