# if latest is already mounted, make sure binds are mounted and move on
e check-subvol-stale $d
- if [[ -e /nocow/btrfs-stale/${d##*/} ]] ; then
+ # populated by check-subvol-stale if stale
+ if ! fresh_snap=$(</nocow/btrfs-stale/$vol); then
mnt $d
for b in ${binds[@]}; do
mnt $b
continue
fi
- # populated by check-subvol-stale
- fresh_snap=$(</nocow/btrfs-stale/$vol)
- if [[ ! $fresh_snap ]]; then
- echo "$0: error. empty fresh_snap var"
- ret=1
- continue
- fi
-
umount_ret=true
unmounted=()
for dir in $(echo $d ${binds[*]}\ |tac -s\ ); do