summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fs/host/inode.go
diff options
context:
space:
mode:
authorTamir Duberstein <tamird@google.com>2021-02-09 10:36:31 -0800
committergVisor bot <gvisor-bot@google.com>2021-02-09 10:42:38 -0800
commit2b978d8743c5cf08d0e99512dd23580574a3ec23 (patch)
treea08e1bf80f9374ea3e20eb4a2c508e14520f1046 /pkg/sentry/fs/host/inode.go
parentfe4f4789601ddf61260271f7e1d33ba0f2756fcd (diff)
Collapse code that always returns error
PiperOrigin-RevId: 356536548
Diffstat (limited to 'pkg/sentry/fs/host/inode.go')
-rw-r--r--pkg/sentry/fs/host/inode.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/pkg/sentry/fs/host/inode.go b/pkg/sentry/fs/host/inode.go
index 2c14aa6d9..df4b265fa 100644
--- a/pkg/sentry/fs/host/inode.go
+++ b/pkg/sentry/fs/host/inode.go
@@ -411,10 +411,3 @@ func (i *inodeOperations) DropLink() {}
// NotifyStatusChange implements fs.InodeOperations.NotifyStatusChange.
func (i *inodeOperations) NotifyStatusChange(ctx context.Context) {}
-
-// readdirAll returns all of the directory entries in i.
-func (i *inodeOperations) readdirAll(d *dirInfo) (map[string]fs.DentAttr, error) {
- // We only support non-directory file descriptors that have been
- // imported, so just claim that this isn't a directory, even if it is.
- return nil, syscall.ENOTDIR
-}