diff --git a/sh/alias/btrfs.sh b/sh/alias/btrfs.sh index 061d373..4ec3ff6 100644 --- a/sh/alias/btrfs.sh +++ b/sh/alias/btrfs.sh @@ -1,11 +1,13 @@ -bfdf() { +bfdf() { sh_btrfs_filesystem_d_f "${@}"; } +sh_btrfs_filesystem_d_f() { btrfs \ filesystem \ df \ "${@}" } -bfdu() { +bfdu() { sh_btrfs_filesystem_d_u "${@}"; } +sh_btrfs_filesystem_d_u() { btrfs \ filesystem \ du \ @@ -13,42 +15,48 @@ bfdu() { "${@}" } -bfu() { +bfu() { sh_btrfs_filesystem_usage "${@}"; } +sh_btrfs_filesystem_usage() { btrfs \ filesystem \ usage \ "${@}" } -bpg() { +bpg() { sh_btrfs_property_get "${@}"; } +sh_btrfs_property_get() { btrfs \ property \ get \ "${@}" } -bsc() { +bsc() { sh_btrfs_subvolume_create "${@}"; } +sh_btrfs_subvolume_create() { btrfs \ subvolume \ create \ "${@}" } -bsd() { +bsd() { sh_btrfs_subvolume_delete "${@}"; } +sh_btrfs_subvolume_delete() { btrfs \ subvolume \ delete \ "${@}" } -bss() { +bss() { sh_btrfs_subvolume_snapshot "${@}"; } +sh_btrfs_subvolume_snapshot() { btrfs \ subvolume \ snapshot \ "${@}" } -bssr() { +bssr() { sh_btrfs_subvolume_snapshot_r "${@}"; } +sh_btrfs_subvolume_snapshot_r() { btrfs \ subvolume \ snapshot -r \