if (( $# )); then
all_vols=( "$@" )
else
- all_vols=(q a o i ar qr)
+ all_vols=(q a o i ar qd qr)
fi
##### end command line parsing ########
if [[ -e $f ]]; then
fstab <<EOF
$crypt_dev /q btrfs noatime,subvol=q,gid=1000$mopts 0 0
+$crypt_dev /qd btrfs noatime,subvol=qd,gid=1000$mopts 0 0
/q/p /p none bind$mopts 0 0
EOF
fi
### end getting root_dir
cd $root_dir
- if [[ -e $vol ]]; then
+ if [[ -e $vol && $vol != qd ]]; then
leaf=$vol.leaf.$(date +%Y-%m-%dT%H:%M:%S%z)
m mv $vol $leaf
m btrfs property set -ts $leaf ro true