Enable ClientInodes so hard links work
Fixes xfstests generic/002
This commit is contained in:
parent
89fef80d32
commit
089629442d
8
main.go
8
main.go
@ -192,16 +192,16 @@ func dirEmpty(dir string) bool {
|
|||||||
func pathfsFrontend(key []byte, cipherdir string, mountpoint string, debug bool) {
|
func pathfsFrontend(key []byte, cipherdir string, mountpoint string, debug bool) {
|
||||||
|
|
||||||
finalFs := pathfs_frontend.NewFS(key, cipherdir, USE_OPENSSL)
|
finalFs := pathfs_frontend.NewFS(key, cipherdir, USE_OPENSSL)
|
||||||
|
pathFsOpts := &pathfs.PathNodeFsOptions{ClientInodes: true}
|
||||||
opts := &nodefs.Options{
|
pathFs := pathfs.NewPathNodeFs(finalFs, pathFsOpts)
|
||||||
|
fuseOpts := &nodefs.Options{
|
||||||
// These options are to be compatible with libfuse defaults,
|
// These options are to be compatible with libfuse defaults,
|
||||||
// making benchmarking easier.
|
// making benchmarking easier.
|
||||||
NegativeTimeout: time.Second,
|
NegativeTimeout: time.Second,
|
||||||
AttrTimeout: time.Second,
|
AttrTimeout: time.Second,
|
||||||
EntryTimeout: time.Second,
|
EntryTimeout: time.Second,
|
||||||
}
|
}
|
||||||
pathFs := pathfs.NewPathNodeFs(finalFs, nil)
|
conn := nodefs.NewFileSystemConnector(pathFs.Root(), fuseOpts)
|
||||||
conn := nodefs.NewFileSystemConnector(pathFs.Root(), opts)
|
|
||||||
var mOpts fuse.MountOptions
|
var mOpts fuse.MountOptions
|
||||||
mOpts.AllowOther = false
|
mOpts.AllowOther = false
|
||||||
// Set values shown in "df -T" and friends
|
// Set values shown in "df -T" and friends
|
||||||
|
Loading…
Reference in New Issue
Block a user