// RecordedGetxattr returns information about the Getxattr request. // If no request was seen, returns a zero value. func (r *Getxattrs) RecordedGetxattr() fuse.GetxattrRequest { val := r.rec.Recorded() if val == nil { return fuse.GetxattrRequest{} } return *(val.(*fuse.GetxattrRequest)) } // Listxattrs records a Listxattr request and its fields. type Listxattrs struct { rec RequestRecorder } var _ = fs.NodeListxattrer(&Listxattrs{}) // Listxattr records the request and returns an error. Most callers should // wrap this call in a function that returns a more useful result. func (r *Listxattrs) Listxattr(req *fuse.ListxattrRequest, resp *fuse.ListxattrResponse, intr fs.Intr) fuse.Error { tmp := *req r.rec.RecordRequest(&tmp) return fuse.ENODATA } // RecordedListxattr returns information about the Listxattr request. // If no request was seen, returns a zero value. func (r *Listxattrs) RecordedListxattr() fuse.ListxattrRequest { val := r.rec.Recorded() if val == nil { return fuse.ListxattrRequest{}
newPath := path.Join(newParent.path, req.NewName) if err := e.fsys.Store.Move(e.path, newPath, true); err != nil { log.Warningf("fuse: entry: mv: %v", err) return err } return nil } // // Compile time checks to see which interfaces we implement: // Please update this list when modifying code here. var _ = fs.Node(&Entry{}) var _ = fs.NodeFsyncer(&Entry{}) var _ = fs.NodeGetxattrer(&Entry{}) var _ = fs.NodeListxattrer(&Entry{}) var _ = fs.NodeOpener(&Entry{}) var _ = fs.NodeSetattrer(&Entry{}) // var _ = fs.NodeRenamer(&Entry{}) //var _ = fs.NodeReadlinker(&Entry{}) //var _ = fs.NodeRemover(&Entry{}) //var _ = fs.NodeRemovexattrer(&Entry{}) // var _ = fs.NodeRequestLookuper(&Entry{}) // var _ = fs.NodeAccesser(&Entry{}) // var _ = fs.NodeForgetter(&Entry{}) //var _ = fs.NodeGetattrer(&Entry{}) //var _ = fs.NodeLinker(&Entry{})