Skip to main content

label_set

Function label_set 

Source
pub fn label_set(fd: BorrowedFd<'_>, label: &CStr) -> Result<()>
Expand description

Set the label of the btrfs filesystem referred to by fd.

The label must be shorter than 256 bytes (not counting the null terminator). Further validation (e.g. rejecting labels that contain /) is left to the kernel.