This commit is contained in:
Marc Beninca 2025-07-27 13:38:22 +02:00
parent 1d2859e98b
commit 2854681c5e
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -1,7 +1,7 @@
# functions to handle btrfs volumes
#= bfdf
a__btrfs_filesystem_d_f() {
rwx_btrfs_filesystem_d_f() {
btrfs \
filesystem \
df \
@ -9,7 +9,7 @@ a__btrfs_filesystem_d_f() {
}
#= bfdu
a__btrfs_filesystem_d_u() {
rwx_btrfs_filesystem_d_u() {
btrfs \
filesystem \
du \
@ -18,7 +18,7 @@ a__btrfs_filesystem_d_u() {
}
#= bfu
a__btrfs_filesystem_usage() {
rwx_btrfs_filesystem_usage() {
btrfs \
filesystem \
usage \
@ -26,7 +26,7 @@ a__btrfs_filesystem_usage() {
}
#= bpg
a__btrfs_property_get() {
rwx_btrfs_property_get() {
btrfs \
property \
get \
@ -34,7 +34,7 @@ a__btrfs_property_get() {
}
#= bsc
a__btrfs_subvolume_create() {
rwx_btrfs_subvolume_create() {
btrfs \
subvolume \
create \
@ -42,7 +42,7 @@ a__btrfs_subvolume_create() {
}
#= bsd
a__btrfs_subvolume_delete() {
rwx_btrfs_subvolume_delete() {
btrfs \
subvolume \
delete \
@ -50,7 +50,7 @@ a__btrfs_subvolume_delete() {
}
#= bsl
a__btrfs_subvolume_list() {
rwx_btrfs_subvolume_list() {
if [ -n "${1}" ]; then
btrfs subvolume list "${1}" |
cut --delimiter " " --fields 9 |
@ -59,7 +59,7 @@ a__btrfs_subvolume_list() {
}
#= bss
a__btrfs_subvolume_snapshot() {
rwx_btrfs_subvolume_snapshot() {
btrfs \
subvolume \
snapshot \
@ -67,7 +67,7 @@ a__btrfs_subvolume_snapshot() {
}
#= bssr
a__btrfs_subvolume_snapshot_r() {
rwx_btrfs_subvolume_snapshot_r() {
btrfs \
subvolume \
snapshot -r \