Skip to main content

subvolume_flags_set

Function subvolume_flags_set 

Source
pub fn subvolume_flags_set(
    fd: BorrowedFd<'_>,
    flags: SubvolumeFlags,
) -> Result<()>
Expand description

Set the flags of the subvolume that fd belongs to.

Requires CAP_SYS_ADMIN to make a subvolume read-only; any user may clear the read-only flag from a subvolume they own.