MCPcopy
hub / github.com/google/gvisor / InodeWithXattrs

Interface InodeWithXattrs

pkg/sentry/fsimpl/kernfs/kernfs.go:912–924  ·  view source on GitHub ↗

InodeWithXattrs should be implemented by kernfs Inodes that support xattrs.

Source from the content-addressed store, hash-verified

910
911// InodeWithXattrs should be implemented by kernfs Inodes that support xattrs.
912type InodeWithXattrs interface {
913 // GetXattr returns the value associated with the given extended attribute.
914 GetXattr(ctx context.Context, opts vfs.GetXattrOptions) (string, error)
915
916 // SetXattr changes the value associated with the given extended attribute.
917 SetXattr(ctx context.Context, opts vfs.SetXattrOptions) error
918
919 // ListXattr returns the names of the extended attributes.
920 ListXattr(ctx context.Context, size uint64) ([]string, error)
921
922 // RemoveXattr removes the given extended attribute.
923 RemoveXattr(ctx context.Context, name string) error
924}

Callers 24

FgetxattrFunction · 0.65
GetXattrAtMethod · 0.65
GetXattrMethod · 0.65
getXattrMethod · 0.65
getXattrMethod · 0.65
getXattrImplMethod · 0.65
FsetxattrFunction · 0.65
SetXattrAtMethod · 0.65
SetXattrMethod · 0.65
setXattrMethod · 0.65
setXattrMethod · 0.65
setXattrImplMethod · 0.65

Implementers 12

inodepkg/sentry/fsimpl/fuse/inode.go
fileDescriptionpkg/sentry/fsimpl/fuse/file.go
fileDescriptionpkg/sentry/fsimpl/tmpfs/tmpfs.go
fileDescriptionpkg/sentry/fsimpl/gofer/gofer.go
fileDescriptionpkg/sentry/fsimpl/erofs/erofs.go
fileDescriptionpkg/sentry/fsimpl/overlay/overlay.go
FileDescriptionpkg/sentry/vfs/file_description.go
opathFDpkg/sentry/vfs/opath.go
FileDescriptionDefaultImplpkg/sentry/vfs/file_description_impl_u
SimpleExtendedAttributespkg/sentry/vfs/memxattr/xattr.go
ClientFDpkg/lisafs/client_file.go
controlFDLisarunsc/fsgofer/lisafs.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…