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