pub fn subvolume_create(
parent_fd: BorrowedFd<'_>,
name: &CStr,
qgroups: &[u64],
) -> Result<()>Expand description
Create a new subvolume named name inside the directory referred to by
parent_fd.
name must be a plain leaf name (no slashes). The caller is responsible
for opening the correct parent directory. If qgroups is non-empty, the
new subvolume is added to those qgroups. Requires CAP_SYS_ADMIN.
Errors: ENAMETOOLONG if name does not fit in the 4040-byte kernel
buffer. EEXIST if a subvolume or directory with that name already exists.
EPERM without CAP_SYS_ADMIN.