X-Git-Url: https://iankelling.org/git/?p=distro-setup;a=blobdiff_plain;f=mount-latest-subvol;h=ea1d1f89195cc26420e68aa462671d1288eef5c4;hp=9bb324b918a20cd0a9357b7d125086f8506c2dfe;hb=8a6b446c7e336596af614c853e1c6177e55a7983;hpb=e256742f75e1127266e4ce1e2a871a81a72bc84a diff --git a/mount-latest-subvol b/mount-latest-subvol index 9bb324b..ea1d1f8 100644 --- a/mount-latest-subvol +++ b/mount-latest-subvol @@ -299,6 +299,7 @@ for vol in q a o i; do fi done + # if we unmounted some but not all, restore them and move on if ! $umount_ret; then for dir in ${unmounted[@]}; do mnt $dir @@ -306,6 +307,7 @@ for vol in q a o i; do continue fi + #### begin dealing with leaf vols #### # todo: decipher /mnt/root, like we do in check-subvol-stale cd /mnt/root if [[ -e $vol ]]; then @@ -358,6 +360,8 @@ for vol in q a o i; do done ## end expire leaf vols ## fi + #### end dealing with leaf vols #### + # Note, we make a few assumptions in this script, like # $d was not a different subvol id than $vol, and # things otherwise didn't get mounted very strangely. @@ -367,6 +371,7 @@ for vol in q a o i; do done stale_dir=/nocow/btrfs-stale rm -f $stale_dir/$d + done ### disabled