pub enum RepoMode {
Bare,
BareUser,
BareUserOnly,
BareSplitXattrs,
Archive,
BareUserShared,
}Expand description
The on-disk storage mode of a repository.
Variants§
Bare
Real files with real uid/gid/mode/xattrs on the inode.
BareUser
Metadata carried in the user.ostreemeta xattr; unprivileged-writable.
BareUserOnly
No xattr metadata; uid/gid discarded, canonical mode on the inode.
BareSplitXattrs
Like bare-user, but xattrs live in separate .file-xattrs objects.
Archive
Content zlib-RAW-compressed as .filez; HTTP-servable.
Port extension (development-only): bare-user storage with the logical
mode never applied to the inode, for group-shared repositories.
Implementations§
Source§impl RepoMode
impl RepoMode
Sourcepub fn from_mode_str(s: &str) -> Option<RepoMode>
pub fn from_mode_str(s: &str) -> Option<RepoMode>
Parse a [core] mode= string. archive is an accepted alias for
archive-z2.
Sourcepub fn as_mode_str(self) -> &'static str
pub fn as_mode_str(self) -> &'static str
The canonical [core] mode= string. Archive always serializes back as
archive-z2.
Sourcepub fn is_archive(self) -> bool
pub fn is_archive(self) -> bool
Whether File content objects are stored compressed. The z
loose-path suffix applies only to a File content object in this mode;
the auxiliary non-meta objects carry no suffix.