summaryrefslogtreecommitdiffhomepage
path: root/pkg/syserror
diff options
context:
space:
mode:
authorJinmou Li <jinmli@google.com>2020-06-27 02:14:56 +0000
committerJinmou Li <jinmli@google.com>2020-07-29 22:52:12 +0000
commit2e19a8b951e9402b28b4e601e65c51e69c815db1 (patch)
treef5a0a258949053d2dbf270f9086a1c57fe1c24eb /pkg/syserror
parenta05ea20ef1107cc0a4ace94d6dffd7c7e590b264 (diff)
Add FUSE_INIT
This change allows the sentry to send FUSE_INIT request and process the reply. It adds the corresponding structs, employs the fuse device to send and read the message, and stores the results of negotiation in corresponding places (inside connection struct). It adds a CallAsync() function to the FUSE connection interface: - like Call(), but it's for requests that do not expect immediate response (init, release, interrupt etc.) - will block if the connection hasn't initialized, which is the same for Call()
Diffstat (limited to 'pkg/syserror')
-rw-r--r--pkg/syserror/syserror.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/syserror/syserror.go b/pkg/syserror/syserror.go
index c73072c42..798e07b01 100644
--- a/pkg/syserror/syserror.go
+++ b/pkg/syserror/syserror.go
@@ -61,6 +61,7 @@ var (
ENOMEM = error(syscall.ENOMEM)
ENOSPC = error(syscall.ENOSPC)
ENOSYS = error(syscall.ENOSYS)
+ ENOTCONN = error(syscall.ENOTCONN)
ENOTDIR = error(syscall.ENOTDIR)
ENOTEMPTY = error(syscall.ENOTEMPTY)
ENOTSOCK = error(syscall.ENOTSOCK)