added mount_subvolume
parent
b9f98d36f4
commit
2d61144804
|
@ -91,4 +91,10 @@ sudo /bin/find $1 -maxdepth $2 -type d -exec sh -c '
|
|||
# for d do
|
||||
# btrfs subvolume show "$d" >/dev/null 2>&1 && printf "%s\n" "$d"
|
||||
# done
|
||||
# ' find-sh {} + \) \)
|
||||
# ' find-sh {} + \) \)
|
||||
|
||||
mount_subvolume () {
|
||||
mkdir -p $3
|
||||
echo msudo mount $1 -o subvol=$2 $3
|
||||
sudo mount $1 -o subvol=$2 $3
|
||||
}
|
Loading…
Reference in New Issue