mv
This commit is contained in:
parent
ee10bfe04c
commit
f96bcd9a9f
1 changed files with 0 additions and 0 deletions
73
sh/alias/btrfs.sh
Normal file
73
sh/alias/btrfs.sh
Normal file
|
@ -0,0 +1,73 @@
|
|||
bfdf() { sh_btrfs_filesystem_d_f "${@}"; }
|
||||
sh_btrfs_filesystem_d_f() {
|
||||
btrfs \
|
||||
filesystem \
|
||||
df \
|
||||
"${@}"
|
||||
}
|
||||
|
||||
bfdu() { sh_btrfs_filesystem_d_u "${@}"; }
|
||||
sh_btrfs_filesystem_d_u() {
|
||||
btrfs \
|
||||
filesystem \
|
||||
du \
|
||||
--summarize \
|
||||
"${@}"
|
||||
}
|
||||
|
||||
bfu() { sh_btrfs_filesystem_usage "${@}"; }
|
||||
sh_btrfs_filesystem_usage() {
|
||||
btrfs \
|
||||
filesystem \
|
||||
usage \
|
||||
"${@}"
|
||||
}
|
||||
|
||||
bpg() { sh_btrfs_property_get "${@}"; }
|
||||
sh_btrfs_property_get() {
|
||||
btrfs \
|
||||
property \
|
||||
get \
|
||||
"${@}"
|
||||
}
|
||||
|
||||
bsc() { sh_btrfs_subvolume_create "${@}"; }
|
||||
sh_btrfs_subvolume_create() {
|
||||
btrfs \
|
||||
subvolume \
|
||||
create \
|
||||
"${@}"
|
||||
}
|
||||
|
||||
bsd() { sh_btrfs_subvolume_delete "${@}"; }
|
||||
sh_btrfs_subvolume_delete() {
|
||||
btrfs \
|
||||
subvolume \
|
||||
delete \
|
||||
"${@}"
|
||||
}
|
||||
|
||||
bsl() { sh_btrfs_subvolume_list "${@}"; }
|
||||
sh_btrfs_subvolume_list() {
|
||||
if [ -n "${1}" ]; then
|
||||
btrfs subvolume list "${1}" |
|
||||
cut --delimiter " " --fields 9 |
|
||||
sort
|
||||
fi
|
||||
}
|
||||
|
||||
bss() { sh_btrfs_subvolume_snapshot "${@}"; }
|
||||
sh_btrfs_subvolume_snapshot() {
|
||||
btrfs \
|
||||
subvolume \
|
||||
snapshot \
|
||||
"${@}"
|
||||
}
|
||||
|
||||
bssr() { sh_btrfs_subvolume_snapshot_r "${@}"; }
|
||||
sh_btrfs_subvolume_snapshot_r() {
|
||||
btrfs \
|
||||
subvolume \
|
||||
snapshot -r \
|
||||
"${@}"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue