localmount: white space cleanup

This commit is contained in:
William Hubbs 2015-10-08 13:20:14 -05:00
parent b86d170037
commit d5116cc697

View File

@ -74,22 +74,21 @@ stop()
local aufs_branch aufs_mount_point aufs_si_id aufs_br_id branches local aufs_branch aufs_mount_point aufs_si_id aufs_br_id branches
for aufs_si_dir in /sys/fs/aufs/si*; do for aufs_si_dir in /sys/fs/aufs/si*; do
if [ -d "${aufs_si_dir}" ]; then [ -d "${aufs_si_dir}" ] || continue
aufs_si_id="si=${aufs_si_dir#/sys/fs/aufs/si_}" aufs_si_id="si=${aufs_si_dir#/sys/fs/aufs/si_}"
aufs_mount_point="$(mountinfo -o ${aufs_si_id})" aufs_mount_point="$(mountinfo -o ${aufs_si_id})"
branches="$aufs_si_dir/br[0-9] $aufs_si_dir/br[0-9][0-9] $aufs_si_dir/br[0-9][0-9][0-9]" branches="$aufs_si_dir/br[0-9] $aufs_si_dir/br[0-9][0-9] $aufs_si_dir/br[0-9][0-9][0-9]"
for x in $branches; do for x in $branches; do
[ -e "${x}" ] || continue [ -e "${x}" ] || continue
aufs_branch=$(sed 's/=.*//g' $x) aufs_branch=$(sed 's/=.*//g' $x)
eindent eindent
if ! mount -o "remount,del:$aufs_branch" "$aufs_mount_point" > /dev/null 2>&1; then if ! mount -o "remount,del:$aufs_branch" "$aufs_mount_point" > /dev/null 2>&1; then
ewarn "Failed to remove branch $aufs_branch from aufs \ ewarn "Failed to remove branch $aufs_branch from aufs \
$aufs_mount_point" $aufs_mount_point"
fi fi
eoutdent eoutdent
sync sync
done done
fi
done done
fi fi