Crate ghee

Source

Modules§

cmd
paths
walk

Structs§

APP_NAME
DEFAULT_KEY
The key assigned to bare (uninitialized) directories when they’re treated as tables
PKG_NAME
TableInfo
XATTR_COMMIT_MESSAGE
Xattr representing the message of a snapshot
XATTR_GHEE_LOWER
Xattr representing lower bound of user.ghee range
XATTR_GHEE_UPPER
Xattr representing upper bound of user.ghee range
XATTR_HEAD
Xattr representing the most recent BTRFS snapshot
XATTR_TABLE_INFO
Where we store everything we know about a table
XDG_DIRS

Enums§

GetKeyErr
GheeErr
IndexListPushErr
SetKeyErr
XattrValueErr

Functions§

best_index
Get the index which places the predicate xattrs earliest in its primary key order The idea is that this will maximally speed up traversal of records, but this may depend on the cardinality / distribution of the subkey values
containing_table_info
If path itself is not initialized as a Ghee table, its ancestor directories will be searched to see if it is part of an initialized table, in which case the containing table’s indices are returned.
declare_closure_indices
Mark dir1, dir2, the indices of dir1, and the indices of dir2 all as indices of each other.
declare_indices
Marks dir1 and dir2 as indices of each other.
is_hidden
Whether a path should be skipped when iterating over records
list_xattrs
record_count
The number of records recursively found in a directory
set_table_info
table_info
Get information about the table at path dir if one exists. If no table info is found, or dir is actually a file, Ok(None) is returned.
write_xattr_values
Write file extended attribute values to disk. Creates an empty file at the path if none exists.
xattr_value
Get the specified xattr value for the given path; like xattr::get but parsed into our format.
xattr_values
Get all xattr values for the given path; like xattr::list and xattr::get but parsed into our format.
xattr_values_from_path
For a path under a base_path, interpret the sub-paths beneath base_path as values of the given key; partial key matches are OK, e.g. just age on a key of (age, name).