rwx/sh/cmd/btrfs.sh

65 lines
971 B
Bash
Raw Normal View History

2024-11-18 11:32:57 +00:00
bfdf() { sh_btrfs_filesystem_d_f "${@}"; }
sh_btrfs_filesystem_d_f() {
2024-11-16 15:48:48 +00:00
btrfs \
filesystem \
df \
"${@}"
}
2024-01-05 08:49:18 +00:00
2024-11-18 11:32:57 +00:00
bfdu() { sh_btrfs_filesystem_d_u "${@}"; }
sh_btrfs_filesystem_d_u() {
2024-11-16 15:48:48 +00:00
btrfs \
filesystem \
du \
--summarize \
"${@}"
}
2024-01-05 08:49:18 +00:00
2024-11-18 11:32:57 +00:00
bfu() { sh_btrfs_filesystem_usage "${@}"; }
sh_btrfs_filesystem_usage() {
2024-11-16 15:49:41 +00:00
btrfs \
filesystem \
usage \
"${@}"
}
2024-01-05 08:49:18 +00:00
2024-11-18 11:32:57 +00:00
bpg() { sh_btrfs_property_get "${@}"; }
sh_btrfs_property_get() {
2024-11-16 15:55:31 +00:00
btrfs \
property \
get \
"${@}"
}
2024-01-05 08:49:18 +00:00
2024-11-18 11:32:57 +00:00
bsc() { sh_btrfs_subvolume_create "${@}"; }
sh_btrfs_subvolume_create() {
2024-11-16 15:53:19 +00:00
btrfs \
subvolume \
create \
"${@}"
}
2024-01-05 08:49:18 +00:00
2024-11-18 11:32:57 +00:00
bsd() { sh_btrfs_subvolume_delete "${@}"; }
sh_btrfs_subvolume_delete() {
2024-11-16 15:53:19 +00:00
btrfs \
subvolume \
delete \
"${@}"
}
2024-01-20 22:40:49 +00:00
2024-11-18 11:32:57 +00:00
bss() { sh_btrfs_subvolume_snapshot "${@}"; }
sh_btrfs_subvolume_snapshot() {
2024-11-16 15:53:19 +00:00
btrfs \
subvolume \
snapshot \
"${@}"
}
2024-01-05 08:49:18 +00:00
2024-11-18 11:32:57 +00:00
bssr() { sh_btrfs_subvolume_snapshot_r "${@}"; }
sh_btrfs_subvolume_snapshot_r() {
2024-11-16 15:53:19 +00:00
btrfs \
subvolume \
snapshot -r \
"${@}"
}