Move pages under tldr, lint run.sh, update docs

This commit is contained in:
2024-02-21 13:58:43 +02:00
parent 3d653cc7e6
commit 2c475fa62d
4806 changed files with 36 additions and 35 deletions

29
tldr/linux/btrfs-device Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# btrfs device
> Manage devices in a btrfs filesystem.
> More information: <https://btrfs.readthedocs.io/en/latest/btrfs-device.html>.
- Add one or more devices to a btrfs filesystem:
`sudo btrfs device add {{path/to/block_device1}} [{{path/to/block_device2}}] {{path/to/btrfs_filesystem}}`
- Remove a device from a btrfs filesystem:
`sudo btrfs device remove {{path/to/device|device_id}} [{{...}}]`
- Display error statistics:
`sudo btrfs device stats {{path/to/btrfs_filesystem}}`
- Scan all disks and inform the kernel of all detected btrfs filesystems:
`sudo btrfs device scan --all-devices`
- Display detailed per-disk allocation statistics:
`sudo btrfs device usage {{path/to/btrfs_filesystem}}`