attrcmp

package
v0.0.0-...-c5655c4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2017 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Overview

Package attrcmp provides a file attr diff method.

Index

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

func GetStrXattr(path string, name string) (string, error)

GetStrXattr returns the extended attribute's value as a string

func GetUintXattr

func GetUintXattr(path string, name string) (uint, error)

GetUintXattr returns the extended attribute's value as an unsigned integer

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL