package
0.0.10
Repository: https://github.com/tinyzimmer/btrsync.git
Documentation: pkg.go.dev

# Functions

BuildRBTree builds a red-black tree from the subvolume root tree.
Clone clones a range of bytes from a source file to a destination file.
CreateSnapshot creates a snapshot of the given subvolume with the given options.
CreateSubvolume creates a subvolume at the given path.
DeleteSnapshot deletes the given snapshot.
DeleteSubvolume deletes the subvolume at the given path.
EnableVerity enables fs-verity on a path.
EncodedWrite writes encoded data to a file via ioctl.
FindDeviceForMount returns the device for the given mount.
FindMountForDevice returns the mount for the given device.
FindRootMount returns the root btrfs mount for the given path.
GetDeviceInfo returns information about the device at the given path or device.
GetDeviceStats returns statistics about the device at the given path or device.
GetFilesystemInfo returns metadata about the filesystem at the given path.
IsBtrfs returns true if the given path is a btrfs mount.
IsSubvolume returns true if the given path is a subvolume.
IsSubvolumeReadOnly returns true if the subvolume at the given path is read-only.
ListBtrfsMounts returns a list of all btrfs mounts on the system.
SearchWithPath searches for a subvolume starting from the given path.
SearchWithReceivedUUID searches for a subvolume with the given received UUID.
SearchWithRootID searches for a subvolume starting from the given root ID.
SearchWithRootMount searches for a subvolume starting from the given root mount point.
SearchWithSnapshots searches for snapshots of the given subvolume and populates the results with them.
SearchWithUUID searches for a subvolume with the given UUID.
Send will send the snapshot at source with the given options.
SendCompressedData.
SendToFile will send a send stream to the given os.File.
SendToPath will send a send stream to the given path as a file.
SendToPipe creates and returns an option and pipe to read the stream from.
SendWithCloneSources will use the given snapshots as clone sources for an incremental send.
SendWithLogger will log the send operation to the given logger.
SendWithoutData will send a send stream without any data.
SendWithParentRoot will send an incremental send from the given parent root.
SetReceivedSubvolume sets the received UUID and ctransid for a subvolume.
SetSubvolumeReadOnly sets the read-only status of the subvolume at the given path to readonly.
SubvolumeSearch searches for a subvolume using the given options.
SyncFilesystem runs an I/O sync on the filesystem at the given path.
UUIDTreeLookupID looks up the subvolume ID for the given UUID.
WalkBtrfsTree walks the Btrfs tree at the given path with the given search arguments.
WithReadOnlySnapshot sets the snapshot to be read-only.
WithSnapshotName sets the name of the snapshot to be created.
WithSnapshotPath sets an absolute path for the snapshot to be created.

# Constants

No description provided by the author
No description provided by the author
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl commands.
BTRFS ioctl constants.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Fsverity ioctl commands.
Fsverity ioctl commands.
Fsverity ioctl commands.
No description provided by the author
No description provided by the author
No description provided by the author
Generic ioctl constants.
Generic ioctl constants.
Generic ioctl constants.
Generic ioctl constants.
Generic ioctl constants.
Generic ioctl constants.
Generic ioctl constants.
Generic ioctl constants.
Generic ioctl constants.
Generic ioctl constants.
Generic ioctl constants.
Generic ioctl constants.
Generic ioctl constants.
Generic ioctl constants.
Generic ioctl constants.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
ErrRootMountNotFound is returned when a root mount cannot be found for a given path.
No description provided by the author
ErrStopWalk is an error that can be returned by the TreeIterFunc to stop the tree walk.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
BtrfsMount represents a mounted Btrfs filesystem.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
EncodedWriteOp is an operation to write encoded data to a file.
No description provided by the author
RBNode represents a node in the Btrfs tree.
RBRoot represents the root of the Btrfs tree.
RootInfo represents the information about a Btrfs root.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
IoctlCmd is a type cast of uintptr to make it more clear that it is an ioctl.
No description provided by the author
No description provided by the author
RBTreeIterFunc is the function signature for the RBTreeIterFunc.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TreeIterFunc is a function that is called for each item found in the tree.