Commit 9c1a7bb0 authored by Jakob Unterwurzacher's avatar Jakob Unterwurzacher Committed by Han-Wen Nienhuys

loopback: Add missing SetXAttr function

Now passes xfstests generic/053

Fixes issue #56
parent d31db957
......@@ -46,3 +46,8 @@ func (fs *loopbackFileSystem) GetXAttr(name string, attr string, context *fuse.C
return data, fuse.ToStatus(err)
}
func (fs *loopbackFileSystem) SetXAttr(name string, attr string, data []byte, flags int, context *fuse.Context) fuse.Status {
err := syscall.Setxattr(fs.GetPath(name), attr, data, flags)
return fuse.ToStatus(err)
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment