/// Returns whether a subvolume is read-only.
Returns whether a subvolume is read-only.
Returns whether a subvolume is read - only .
pub fn subvolume_read_only<P: AsRef<Path>>(path: P) -> Result<bool, Error> {
    let cpath = CString::new(path.as_ref().as_os_str().as_bytes()).unwrap();
    let mut ret: bool = false;
    let errcode = unsafe { ffi::btrfs_util_get_subvolume_read_only(cpath.as_ptr(), &mut ret) };
    if errcode == ffi::btrfs_util_error_BTRFS_UTIL_OK {
        Ok(ret)
    } else {
        Err(errcode.into())
    }
}
pub fn subvolume_read_only < P : AsRef < Path > > ( path : P ) -> Result < bool , Error > { let cpath = CString :: new ( path . as_ref ( ) . as_os_str ( ) . as_bytes ( ) ) . unwrap ( ) ; let mut ret : bool = false ; let errcode = unsafe { ffi :: btrfs_util_get_subvolume_read_only ( cpath . as_ptr ( ) , & mut ret ) } ; if errcode == ffi :: btrfs_util_error_BTRFS_UTIL_OK { Ok ( ret ) } else { Err ( errcode . into ( ) ) } }
Returns whether a subvolume is read-only.
Returns whether a subvolume is read - only .
path
P