btrfs property

Get, set, or list properties for a BTRFS filesystem object (files, directories, subvolumes, filesystems, or devices). More information: https://btrfs.readthedocs.io/en/latest/btrfs-property.html.

sudo btrfs property list {{path/to/btrfs_object}}

sudo btrfs property get {{path/to/btrfs_object}}

sudo btrfs property get {{path/to/btrfs_filesystem}} label

sudo btrfs property get -t {{subvol|filesystem|inode|device}} {{path/to/btrfs_filesystem}}

sudo btrfs property set {{path/to/btrfs_inode}} compression {{zstd|zlib|lzo|none}}