X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=check-subvol-stale;fp=check-subvol-stale;h=f012c4f97459f38d0e24ff75df3f13c7fca68dfb;hb=ce4cacd36c5b5babeea85d0f93771017e6169180;hp=a3d0149e24fa574ccec2d62a5e427db81935851e;hpb=b28eebdf9143aa17733f233b30b96f462008f3b6;p=distro-setup diff --git a/check-subvol-stale b/check-subvol-stale index a3d0149..f012c4f 100644 --- a/check-subvol-stale +++ b/check-subvol-stale @@ -27,8 +27,9 @@ usage: $0 SUBVOL_MOUNTPOINT... | -p SUBVOL_PATH... In git this is not not executable because it's meant to be installed using ./install-my-scripts -If latest subvols \$@ are not mounted, print a message, and print -the unstale subvol name into /nocow/btrfs-stale/\$subvol +Print the unstale subvol name into /nocow/btrfs-stale/\$subvol + +If latest subvols \$@ are not mounted, print a message to terminal. Fresh is opposite of stale. To be fresh, either SUBVOL_MOUNTPOINT is a snapshot of the latest, or the latest snapshot is snapshot of @@ -83,6 +84,7 @@ d() { } # duplicated in mount-latest-sub +# Reassign $1 var from /dev/dm- to corresponding /dev/mapper/ mapper-dev() { local mapdev local -n devref=$1