btrfs-property
Get, set, or list properties for a BTRFS filesystem object (files, directories, subvolumes, filesystems, or devices). tldr-pages
On Linux
Linux
List available properties (and descriptions) for the given btrfs object
sudo btrfs [p [l path/to/btrfs_objectIdentifyGet all properties for the given btrfs object
sudo btrfs [p [g path/to/btrfs_objectIdentifyGet the label property for the given btrfs filesystem or device
sudo btrfs [p [g path/to/btrfs_filesystem labelIdentifyGet all object type-specific properties for the given btrfs filesystem or device
sudo btrfs [p [g -t subvol path/to/btrfs_filesystemIdentifySet the compression property for a given btrfs inode (either a file or directory)
sudo btrfs [p [s path/to/btrfs_inode compression zstdIdentifySet the ro (read-only) property for a given btrfs subvolume
sudo btrfs [p [s path/to/btrfs_subvolume ro trueIdentify