1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-05 16:06:00 +02:00

btrfs-filesystem: correct and improve (#5169)

This commit is contained in:
Starbeamrainbowlabs 2021-01-25 01:42:06 +00:00 committed by GitHub
parent 50cff8c9e6
commit 5b414146f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,15 +9,15 @@
- Show usage by individual devices:
`btrfs filesystem show {{path/to/btrfs_mount}}`
`sudo btrfs filesystem show {{path/to/btrfs_mount}}`
- Defragment a single file on a btrfs filesystem:
- Defragment a single file on a btrfs filesystem (avoid while a deduplication agent is running):
`sudo btrfs filesystem defragment {{path/to/file}}`
`sudo btrfs filesystem defragment -v {{path/to/file}}`
- Defragment a directory recursively (does not cross subvolume boundaries):
`sudo btrfs filesystem defragment -r {{path/to/directory}}`
`sudo btrfs filesystem defragment -v -r {{path/to/directory}}`
- Force syncing unwritten data blocks to disk(s):
@ -25,4 +25,4 @@
- Summarize disk usage for the files in a directory recursively:
`sudo btrfs filesystem du {{path/to/directory}}`
`sudo btrfs filesystem du --summarize {{path/to/directory}}`