This commit is contained in:
Marc Beninca 2024-11-18 14:35:14 +01:00
parent f96bcd9a9f
commit aceca1fc69
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -1,13 +1,13 @@
bfdf() { sh_btrfs_filesystem_d_f "${@}"; } bfdf() { sh_a__btrfs_filesystem_d_f "${@}"; }
sh_btrfs_filesystem_d_f() { sh_a__btrfs_filesystem_d_f() {
btrfs \ btrfs \
filesystem \ filesystem \
df \ df \
"${@}" "${@}"
} }
bfdu() { sh_btrfs_filesystem_d_u "${@}"; } bfdu() { sh_a__btrfs_filesystem_d_u "${@}"; }
sh_btrfs_filesystem_d_u() { sh_a__btrfs_filesystem_d_u() {
btrfs \ btrfs \
filesystem \ filesystem \
du \ du \
@ -15,40 +15,40 @@ sh_btrfs_filesystem_d_u() {
"${@}" "${@}"
} }
bfu() { sh_btrfs_filesystem_usage "${@}"; } bfu() { sh_a__btrfs_filesystem_usage "${@}"; }
sh_btrfs_filesystem_usage() { sh_a__btrfs_filesystem_usage() {
btrfs \ btrfs \
filesystem \ filesystem \
usage \ usage \
"${@}" "${@}"
} }
bpg() { sh_btrfs_property_get "${@}"; } bpg() { sh_a__btrfs_property_get "${@}"; }
sh_btrfs_property_get() { sh_a__btrfs_property_get() {
btrfs \ btrfs \
property \ property \
get \ get \
"${@}" "${@}"
} }
bsc() { sh_btrfs_subvolume_create "${@}"; } bsc() { sh_a__btrfs_subvolume_create "${@}"; }
sh_btrfs_subvolume_create() { sh_a__btrfs_subvolume_create() {
btrfs \ btrfs \
subvolume \ subvolume \
create \ create \
"${@}" "${@}"
} }
bsd() { sh_btrfs_subvolume_delete "${@}"; } bsd() { sh_a__btrfs_subvolume_delete "${@}"; }
sh_btrfs_subvolume_delete() { sh_a__btrfs_subvolume_delete() {
btrfs \ btrfs \
subvolume \ subvolume \
delete \ delete \
"${@}" "${@}"
} }
bsl() { sh_btrfs_subvolume_list "${@}"; } bsl() { sh_a__btrfs_subvolume_list "${@}"; }
sh_btrfs_subvolume_list() { sh_a__btrfs_subvolume_list() {
if [ -n "${1}" ]; then if [ -n "${1}" ]; then
btrfs subvolume list "${1}" | btrfs subvolume list "${1}" |
cut --delimiter " " --fields 9 | cut --delimiter " " --fields 9 |
@ -56,16 +56,16 @@ sh_btrfs_subvolume_list() {
fi fi
} }
bss() { sh_btrfs_subvolume_snapshot "${@}"; } bss() { sh_a__btrfs_subvolume_snapshot "${@}"; }
sh_btrfs_subvolume_snapshot() { sh_a__btrfs_subvolume_snapshot() {
btrfs \ btrfs \
subvolume \ subvolume \
snapshot \ snapshot \
"${@}" "${@}"
} }
bssr() { sh_btrfs_subvolume_snapshot_r "${@}"; } bssr() { sh_a__btrfs_subvolume_snapshot_r "${@}"; }
sh_btrfs_subvolume_snapshot_r() { sh_a__btrfs_subvolume_snapshot_r() {
btrfs \ btrfs \
subvolume \ subvolume \
snapshot -r \ snapshot -r \