summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fsimpl/ext/disklayout/dirent.go
diff options
context:
space:
mode:
authorAyush Ranjan <ayushranjan@google.com>2020-09-30 12:37:17 -0700
committergVisor bot <gvisor-bot@google.com>2020-09-30 12:39:25 -0700
commit3e450a991b844a6b45fc57e59bfb0030ba0d0f4c (patch)
tree1f49f4d58a3fc190b5b8d0291588470cf3d76b6e /pkg/sentry/fsimpl/ext/disklayout/dirent.go
parentb49a17fc3d33068a1235d97efd8cc8bc9f0f3ccf (diff)
[go-marshal] Port ext codebase to use go marshal.
PiperOrigin-RevId: 334656292
Diffstat (limited to 'pkg/sentry/fsimpl/ext/disklayout/dirent.go')
-rw-r--r--pkg/sentry/fsimpl/ext/disklayout/dirent.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/sentry/fsimpl/ext/disklayout/dirent.go b/pkg/sentry/fsimpl/ext/disklayout/dirent.go
index 417b6cf65..568c8cb4c 100644
--- a/pkg/sentry/fsimpl/ext/disklayout/dirent.go
+++ b/pkg/sentry/fsimpl/ext/disklayout/dirent.go
@@ -15,6 +15,7 @@
package disklayout
import (
+ "gvisor.dev/gvisor/pkg/marshal"
"gvisor.dev/gvisor/pkg/sentry/fs"
)
@@ -51,6 +52,8 @@ var (
//
// See https://www.kernel.org/doc/html/latest/filesystems/ext4/dynamic.html#linear-classic-directories.
type Dirent interface {
+ marshal.Marshallable
+
// Inode returns the absolute inode number of the underlying inode.
// Inode number 0 signifies an unused dirent.
Inode() uint32