Documentation ¶
Overview ¶
Package attrcmp provides a file attr diff method.
Index ¶
- func DiffAttrs(f1 string, f2 string, target string, records chan<- record.Record, ...) error
- func DiffAttrsInXattrs(f1 string, f2 string, target string, records chan<- record.Record, ...) error
- func DiffXattrs(f1 string, f2 string, target string, records chan<- record.Record, ...) error
- func DiffXattrsInXattrs(f1 string, f2 string, target string, records chan<- record.Record, ...) error
- func GetStrXattr(path string, name string) (string, error)
- func GetUintXattr(path string, name string) (uint, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiffAttrs ¶
func DiffAttrs(f1 string, f2 string, target string, records chan<- record.Record, hf dlhash.Factory) error
DiffAttrs diffs attrs (mode, atime, ctime) and if they are not the same, generates a setattr record that produces the target mode, atime, ctime. target argument is the relative path from the mount point of snapshot2.
func DiffAttrsInXattrs ¶
func DiffAttrsInXattrs(f1 string, f2 string, target string, records chan<- record.Record, hf dlhash.Factory) error
DiffAttrsInXattrs finds differences between file attributes that are stored as extended attributes.
func DiffXattrs ¶
func DiffXattrs(f1 string, f2 string, target string, records chan<- record.Record, hf dlhash.Factory) error
DiffXattrs diffs xattrs and if they are not the same, generates a series of setxattr() records that will produce the target xattrs. the syscalls are sent to records channel Caller is expected to close the records channel.
func DiffXattrsInXattrs ¶
func DiffXattrsInXattrs(f1 string, f2 string, target string, records chan<- record.Record, hf dlhash.Factory) error
DiffXattrsInXattrs finds differences between extended file attributes that are stored as extended attributes with prefixed names for safety reasons.
func GetStrXattr ¶
GetStrXattr returns the extended attribute's value as a string
Types ¶
This section is empty.