From 0cce49e919e115a89010c0fba22fe4895f72be93 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 18 Nov 2024 12:32:57 +0100 Subject: [PATCH] btrfs --- sh/alias/btrfs.sh | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) 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 \