pub struct ReflinkBackend;Trait Implementations§
Source§impl CloneBackend for ReflinkBackend
impl CloneBackend for ReflinkBackend
fn check_supported(&self, path: &Path) -> Result<()>
Source§fn clone_dir(&self, src: &Path, dst: &Path) -> Result<()>
fn clone_dir(&self, src: &Path, dst: &Path) -> Result<()>
Makes
dst a clone of src; dst must not exist.Source§fn create_dir(&self, path: &Path) -> Result<()>
fn create_dir(&self, path: &Path) -> Result<()>
Makes an empty directory a build writes into and later clones are made from.
Source§fn remove_dir(&self, path: &Path) -> Result<()>
fn remove_dir(&self, path: &Path) -> Result<()>
Removes a clone or generation directory and everything in it; a missing path is
Ok(()).Source§fn rename_dir(&self, from: &Path, to: &Path) -> Result<()>
fn rename_dir(&self, from: &Path, to: &Path) -> Result<()>
Renames a clone or generation directory within the same parent tree.
Source§fn private_size(&self, path: &Path) -> Option<u64>
fn private_size(&self, path: &Path) -> Option<u64>
Bytes under
path not shared with any clone, or None when it cannot be told.Source§fn copy_dir(&self, src: &Path, dst: &Path) -> Result<()>
fn copy_dir(&self, src: &Path, dst: &Path) -> Result<()>
Makes
dst (which must not exist) a template generation copied from src, a generation
or a clone. Unlike clone_dir, the result must not depend on src staying around.Source§fn take_kept(&self) -> Vec<PathBuf>
fn take_kept(&self) -> Vec<PathBuf>
Folders
remove_dir left in place (and returned Ok) because clones still depend on
them, since the last call; only ZFS keeps any. gc reports them and tries again later.Source§fn external_mountpoint(&self, _dataset: &str) -> Result<PathBuf>
fn external_mountpoint(&self, _dataset: &str) -> Result<PathBuf>
ZFS only: where
dataset, a dataset Mitosis does not own (a running source), is mounted.Auto Trait Implementations§
impl Freeze for ReflinkBackend
impl RefUnwindSafe for ReflinkBackend
impl Send for ReflinkBackend
impl Sync for ReflinkBackend
impl Unpin for ReflinkBackend
impl UnsafeUnpin for ReflinkBackend
impl UnwindSafe for ReflinkBackend
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more