diff --git a/sh/alias/btrfs.sh b/sh/alias/btrfs.sh index 0e4ba62..b70f8aa 100644 --- a/sh/alias/btrfs.sh +++ b/sh/alias/btrfs.sh @@ -1,4 +1,6 @@ -bfdf() { a__btrfs_filesystem_d_f "${@}"; } +# functions to handle btrfs volumes + +#= bfdf a__btrfs_filesystem_d_f() { btrfs \ filesystem \ @@ -6,7 +8,7 @@ a__btrfs_filesystem_d_f() { "${@}" } -bfdu() { a__btrfs_filesystem_d_u "${@}"; } +#= bfdu a__btrfs_filesystem_d_u() { btrfs \ filesystem \ @@ -15,7 +17,7 @@ a__btrfs_filesystem_d_u() { "${@}" } -bfu() { a__btrfs_filesystem_usage "${@}"; } +#= bfu a__btrfs_filesystem_usage() { btrfs \ filesystem \ @@ -23,7 +25,7 @@ a__btrfs_filesystem_usage() { "${@}" } -bpg() { a__btrfs_property_get "${@}"; } +#= bpg a__btrfs_property_get() { btrfs \ property \ @@ -31,7 +33,7 @@ a__btrfs_property_get() { "${@}" } -bsc() { a__btrfs_subvolume_create "${@}"; } +#= bsc a__btrfs_subvolume_create() { btrfs \ subvolume \ @@ -39,7 +41,7 @@ a__btrfs_subvolume_create() { "${@}" } -bsd() { a__btrfs_subvolume_delete "${@}"; } +#= bsd a__btrfs_subvolume_delete() { btrfs \ subvolume \ @@ -47,7 +49,7 @@ a__btrfs_subvolume_delete() { "${@}" } -bsl() { a__btrfs_subvolume_list "${@}"; } +#= bsl a__btrfs_subvolume_list() { if [ -n "${1}" ]; then btrfs subvolume list "${1}" | @@ -56,7 +58,7 @@ a__btrfs_subvolume_list() { fi } -bss() { a__btrfs_subvolume_snapshot "${@}"; } +#= bss a__btrfs_subvolume_snapshot() { btrfs \ subvolume \ @@ -64,7 +66,7 @@ a__btrfs_subvolume_snapshot() { "${@}" } -bssr() { a__btrfs_subvolume_snapshot_r "${@}"; } +#= bssr a__btrfs_subvolume_snapshot_r() { btrfs \ subvolume \