This commit is contained in:
Marc Beninca 2024-11-18 12:41:54 +01:00
parent b380b2c0b0
commit 6ab26f5187
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
2 changed files with 9 additions and 8 deletions

View file

@ -1,8 +0,0 @@
bsl() { sh_btrfs_subvolume_list "${@}"; }
sh_btrfs_subvolume_list() {
if [ -n "${1}" ]; then
btrfs subvolume list "${1}" |
cut --delimiter " " --fields 9 |
sort
fi
}

View file

@ -47,6 +47,15 @@ sh_btrfs_subvolume_delete() {
"${@}"
}
bsl() { sh_btrfs_subvolume_list "${@}"; }
sh_btrfs_subvolume_list() {
if [ -n "${1}" ]; then
btrfs subvolume list "${1}" |
cut --delimiter " " --fields 9 |
sort
fi
}
bss() { sh_btrfs_subvolume_snapshot "${@}"; }
sh_btrfs_subvolume_snapshot() {
btrfs \