summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fs/inode.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/sentry/fs/inode.go')
-rw-r--r--pkg/sentry/fs/inode.go29
1 files changed, 4 insertions, 25 deletions
diff --git a/pkg/sentry/fs/inode.go b/pkg/sentry/fs/inode.go
index fa3beb111..d32f52d55 100644
--- a/pkg/sentry/fs/inode.go
+++ b/pkg/sentry/fs/inode.go
@@ -356,11 +356,10 @@ func (i *Inode) AddLink() {
if i.overlay != nil {
// FIXME: Remove this from InodeOperations altogether.
//
- // This interface (including DropLink and NotifyStatusChange)
- // is only used by ramfs to update metadata of children. These
- // filesystems should _never_ have overlay Inodes cached as
- // children. So explicitly disallow this scenario and avoid plumbing
- // Dirents through to do copy up.
+ // This interface is only used by ramfs to update metadata of
+ // children. These filesystems should _never_ have overlay
+ // Inodes cached as children. So explicitly disallow this
+ // scenario and avoid plumbing Dirents through to do copy up.
panic("overlay Inodes cached in ramfs directories are not supported")
}
i.InodeOperations.AddLink()
@@ -375,15 +374,6 @@ func (i *Inode) DropLink() {
i.InodeOperations.DropLink()
}
-// NotifyStatusChange calls i.InodeOperations.NotifyStatusChange.
-func (i *Inode) NotifyStatusChange(ctx context.Context) {
- if i.overlay != nil {
- // Same as AddLink.
- panic("overlay Inodes cached in ramfs directories are not supported")
- }
- i.InodeOperations.NotifyStatusChange(ctx)
-}
-
// IsVirtual calls i.InodeOperations.IsVirtual.
func (i *Inode) IsVirtual() bool {
if i.overlay != nil {
@@ -401,17 +391,6 @@ func (i *Inode) StatFS(ctx context.Context) (Info, error) {
return i.InodeOperations.StatFS(ctx)
}
-// HandleOps extracts HandleOperations from i.
-func (i *Inode) HandleOps() HandleOperations {
- if i.overlay != nil {
- return overlayHandleOps(i.overlay)
- }
- if h, ok := i.InodeOperations.(HandleOperations); ok {
- return h
- }
- return nil
-}
-
// CheckOwnership checks whether `ctx` owns this Inode or may act as its owner.
// Compare Linux's fs/inode.c:inode_owner_or_capable().
func (i *Inode) CheckOwnership(ctx context.Context) bool {