Commit 6f555712 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Add SetXAttr to WrappingPathFilesystem.

Make sure this doesn't fail again.
parent fc01a377
package fuse package fuse
// Compilation test for DummyFuse and DummyPathFuse // Make sure library supplied Filesystems support the
// required interface.
import ( import (
"testing" "testing"
) )
func TestDummy(t *testing.T) { func TestRawFs(t *testing.T) {
fs := new(DefaultRawFuseFileSystem) var iface RawFileSystem
NewMountState(fs)
pathFs := new(DefaultPathFilesystem) iface = new(DefaultRawFuseFileSystem)
iface = new(WrappingRawFilesystem)
iface = new(TimingRawFilesystem)
NewPathFileSystemConnector(pathFs) _ = iface
}
func TestPathFs(t *testing.T) {
var iface PathFilesystem
iface = new(DefaultPathFilesystem)
iface = new(WrappingPathFilesystem)
iface = new(TimingPathFilesystem)
_ = iface
} }
func TestDummyFile(t *testing.T) { func TestDummyFile(t *testing.T) {
......
...@@ -86,6 +86,10 @@ func (me *WrappingPathFilesystem) GetXAttr(name string, attr string) ([]byte, St ...@@ -86,6 +86,10 @@ func (me *WrappingPathFilesystem) GetXAttr(name string, attr string) ([]byte, St
return me.Original.GetXAttr(name, attr) return me.Original.GetXAttr(name, attr)
} }
func (me *WrappingPathFilesystem) SetXAttr(name string, attr string, data []byte, flags int) Status {
return me.Original.SetXAttr(name, attr, data, flags)
}
func (me *WrappingPathFilesystem) ListXAttr(name string) ([]string, Status) { func (me *WrappingPathFilesystem) ListXAttr(name string) ([]string, Status) {
return me.Original.ListXAttr(name) return me.Original.ListXAttr(name)
} }
......
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