pub enum StreamCommand {
Show 26 variants
Subvol {
path: String,
uuid: Uuid,
ctransid: u64,
},
Snapshot {
path: String,
uuid: Uuid,
ctransid: u64,
clone_uuid: Uuid,
clone_ctransid: u64,
},
Mkfile {
path: String,
},
Mkdir {
path: String,
},
Mknod {
path: String,
mode: u64,
rdev: u64,
},
Mkfifo {
path: String,
},
Mksock {
path: String,
},
Symlink {
path: String,
target: String,
},
Rename {
from: String,
to: String,
},
Link {
path: String,
target: String,
},
Unlink {
path: String,
},
Rmdir {
path: String,
},
Write {
path: String,
offset: u64,
data: Vec<u8>,
},
Clone {
path: String,
offset: u64,
len: u64,
clone_uuid: Uuid,
clone_ctransid: u64,
clone_path: String,
clone_offset: u64,
},
SetXattr {
path: String,
name: String,
data: Vec<u8>,
},
RemoveXattr {
path: String,
name: String,
},
Truncate {
path: String,
size: u64,
},
Chmod {
path: String,
mode: u64,
},
Chown {
path: String,
uid: u64,
gid: u64,
},
Utimes {
path: String,
atime: Timespec,
mtime: Timespec,
ctime: Timespec,
},
UpdateExtent {
path: String,
offset: u64,
len: u64,
},
EncodedWrite {
path: String,
offset: u64,
unencoded_file_len: u64,
unencoded_len: u64,
unencoded_offset: u64,
compression: u32,
encryption: u32,
data: Vec<u8>,
},
Fallocate {
path: String,
mode: u32,
offset: u64,
len: u64,
},
Fileattr {
path: String,
attr: u64,
},
EnableVerity {
path: String,
algorithm: u8,
block_size: u32,
salt: Vec<u8>,
sig: Vec<u8>,
},
End,
}Expand description
A parsed command from the send stream.
Variants§
Subvol
Snapshot
Mkfile
Mkdir
Mknod
Mkfifo
Mksock
Symlink
Rename
Link
Unlink
Rmdir
Write
Clone
Fields
SetXattr
RemoveXattr
Truncate
Chmod
Chown
Utimes
UpdateExtent
EncodedWrite
v2: write pre-compressed data that can be passed through to the
filesystem without decompression via BTRFS_IOC_ENCODED_WRITE.
Fields
Fallocate
v2: preallocate space or punch a hole.
Fields
Fileattr
v2: set inode file attributes (chattr flags).
EnableVerity
v3: enable fs-verity on a file.
End
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StreamCommand
impl RefUnwindSafe for StreamCommand
impl Send for StreamCommand
impl Sync for StreamCommand
impl Unpin for StreamCommand
impl UnsafeUnpin for StreamCommand
impl UnwindSafe for StreamCommand
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