fs/btrfs,overlay
This commit is contained in:
parent
dbc7b21465
commit
d420342387
2 changed files with 0 additions and 0 deletions
75
sh/btrfs.sh
75
sh/btrfs.sh
|
@ -1,75 +0,0 @@
|
|||
# functions to handle btrfs volumes
|
||||
|
||||
#= bfdf
|
||||
rwx_btrfs_filesystem_d_f() {
|
||||
btrfs \
|
||||
filesystem \
|
||||
df \
|
||||
"${@}"
|
||||
}
|
||||
|
||||
#= bfdu
|
||||
rwx_btrfs_filesystem_d_u() {
|
||||
btrfs \
|
||||
filesystem \
|
||||
du \
|
||||
--summarize \
|
||||
"${@}"
|
||||
}
|
||||
|
||||
#= bfu
|
||||
rwx_btrfs_filesystem_usage() {
|
||||
btrfs \
|
||||
filesystem \
|
||||
usage \
|
||||
"${@}"
|
||||
}
|
||||
|
||||
#= bpg
|
||||
rwx_btrfs_property_get() {
|
||||
btrfs \
|
||||
property \
|
||||
get \
|
||||
"${@}"
|
||||
}
|
||||
|
||||
#= bsc
|
||||
rwx_btrfs_subvolume_create() {
|
||||
btrfs \
|
||||
subvolume \
|
||||
create \
|
||||
"${@}"
|
||||
}
|
||||
|
||||
#= bsd
|
||||
rwx_btrfs_subvolume_delete() {
|
||||
btrfs \
|
||||
subvolume \
|
||||
delete \
|
||||
"${@}"
|
||||
}
|
||||
|
||||
#= bsl
|
||||
rwx_btrfs_subvolume_list() {
|
||||
if [ -n "${1}" ]; then
|
||||
btrfs subvolume list "${1}" |
|
||||
cut --delimiter " " --fields 9 |
|
||||
sort
|
||||
fi
|
||||
}
|
||||
|
||||
#= bss
|
||||
rwx_btrfs_subvolume_snapshot() {
|
||||
btrfs \
|
||||
subvolume \
|
||||
snapshot \
|
||||
"${@}"
|
||||
}
|
||||
|
||||
#= bssr
|
||||
rwx_btrfs_subvolume_snapshot_r() {
|
||||
btrfs \
|
||||
subvolume \
|
||||
snapshot -r \
|
||||
"${@}"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue