Displaying 2 results from an estimated 2 matches for "check_shar".
Did you mean:
check_char
2010 Jul 08
0
Bug#588406: xen-utils-common: /etc/xen/scripts/block not driving helper scripts; XEN_SCRIPT_DIR not properly set
...ot;/dev/loop${next_devnum}"
}
find_free_loopback_dev() {
local loopdev
loopdev=$(losetup -a | sed -e 's+^/dev/loop++' -e 's/:.*//' | find_free_loopback_helper)
if [ -n "$loopdev" ] && [ -b "$loopdev" ]; then
echo "$loopdev"
fi
}
check_sharing()
{
local dev="$1"
local mode="$2"
local devmm=$(device_major_minor "$dev")
local file
if [ "$mode" = 'w' ]
then
toskip="^$"
else
toskip="^[^ ]* [^ ]* [^ ]* ro[, ]"
fi
for file in $(cat /proc/mounts | g...
2011 Apr 10
0
Bug#622096: xen-utils-common: error in script "block" by checking loop device sharing prevents DomU from start
...; - then the given statement resolves multiple loop devices, so
even if the device "13" would be already used, the checking of the sharing reports multiple
loop devices (loop device corresponding with all such inodes like 1356984, 13, 1369336)
what leads in the next processing in function check_sharing to the wrong evaluation and
report the device 13 can be used again.
The solution of this problem is (at least in my case it helped, but I think this
could be a general solution of the output of "losetup -a" is always the same)
to modify the statement above like follows:
shared_list=$...