summaryrefslogtreecommitdiffhomepage
path: root/pkg/p9/file.go
diff options
context:
space:
mode:
authorAdin Scannell <ascannell@google.com>2018-09-07 16:52:02 -0700
committerShentubot <shentubot@google.com>2018-09-07 16:53:12 -0700
commit6cfb5cd56d4660cc0de6cd991a7ed4601824a7e6 (patch)
tree9c197fdc7083acebc1b89eeed3bfd458bd8ab6d2 /pkg/p9/file.go
parent8ce3fbf9f87677ac34c577be9fb9b395ede8e714 (diff)
Add additional sanity checks for walk.
PiperOrigin-RevId: 212058684 Change-Id: I319709b9ffcfccb3231bac98df345d2a20eca24b
Diffstat (limited to 'pkg/p9/file.go')
-rw-r--r--pkg/p9/file.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/pkg/p9/file.go b/pkg/p9/file.go
index ae726f0b9..9723fa24d 100644
--- a/pkg/p9/file.go
+++ b/pkg/p9/file.go
@@ -20,10 +20,13 @@ import (
"gvisor.googlesource.com/gvisor/pkg/fd"
)
-// Attacher is provided by the user.
+// Attacher is provided by the server.
type Attacher interface {
// Attach returns a new File.
- Attach(attachName string) (File, error)
+ //
+ // The client-side attach will be translate to a series of walks from
+ // the file returned by this Attach call.
+ Attach() (File, error)
}
// File is a set of operations corresponding to a single node.