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.
Errors: EINVAL if the label is 256 bytes or longer (checked before the
ioctl). EPERM without CAP_SYS_ADMIN.