MCPcopy
hub / github.com/perkeep/perkeep / remove

Method remove

pkg/fs/xattr.go:96–112  ·  view source on GitHub ↗
(ctx context.Context, req *fuse.RemovexattrRequest)

Source from the content-addressed store, hash-verified

94}
95
96func (x *xattr) remove(ctx context.Context, req *fuse.RemovexattrRequest) error {
97 Logger.Printf("%s.Removexattr(%q)", x.typeName, req.Name)
98
99 claim := schema.NewDelAttributeClaim(x.permanode, xattrPrefix+req.Name, "")
100 _, err := x.fs.client.UploadAndSignBlob(ctx, claim)
101
102 if err != nil {
103 Logger.Printf("Error removing xattr: %v", err)
104 return handleEIOorEINTR(err)
105 }
106
107 x.mu.Lock()
108 delete(*x.xattrs, req.Name)
109 x.mu.Unlock()
110
111 return nil
112}
113
114func (x *xattr) get(req *fuse.GetxattrRequest, res *fuse.GetxattrResponse) error {
115 x.mu.Lock()

Callers 15

RemovexattrMethod · 0.80
RemovexattrMethod · 0.80
jquery.jsFile · 0.80
defaultPrefilterFunction · 0.80
jquery-ui.min.jsFile · 0.80
nFunction · 0.80
iFunction · 0.80
jQCloud.jsFile · 0.80
jquery.min.jsFile · 0.80
sidebar.jsFile · 0.80
slides.jsFile · 0.80
updateSlideClassFunction · 0.80

Calls 7

NewDelAttributeClaimFunction · 0.92
handleEIOorEINTRFunction · 0.85
deleteFunction · 0.85
PrintfMethod · 0.80
UploadAndSignBlobMethod · 0.80
LockMethod · 0.80
UnlockMethod · 0.80

Tested by

no test coverage detected