mirror of
https://github.com/vbatts/go-mtree.git
synced 2024-11-15 13:18:45 +00:00
Vincent Batts
211687bcc4
Initially only on linux platform, but could accommodate BSDs as well. The keyword is rather a prefix of the key. So xattr keyword will have a prefix of "xattr." followed by a suffix of its namespace and name. The value stored in the manifest is the SHA1 digest of the extended attribute's data. Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
23 lines
520 B
Go
23 lines
520 B
Go
// +build !linux
|
|
|
|
package mtree
|
|
|
|
import "os"
|
|
|
|
var (
|
|
unameKeywordFunc = func(path string, info os.FileInfo) (string, error) {
|
|
return "", nil
|
|
}
|
|
uidKeywordFunc = func(path string, info os.FileInfo) (string, error) {
|
|
return "", nil
|
|
}
|
|
gidKeywordFunc = func(path string, info os.FileInfo) (string, error) {
|
|
return "", nil
|
|
}
|
|
nlinkKeywordFunc = func(path string, info os.FileInfo) (string, error) {
|
|
return "", nil
|
|
}
|
|
xattrKeywordFunc = func(path string, info os.FileInfo) (string, error) {
|
|
return "", nil
|
|
}
|
|
)
|