{"action":"created","issue":{"url":"https://api.github.com/repos/bazil/fuse/issues/89","labels_url":"https://api.github.com/repos/bazil/fuse/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/bazil/fuse/issues/89/comments","events_url":"https://api.github.com/repos/bazil/fuse/issues/89/events","html_url":"https://github.com/bazil/fuse/issues/89","id":85435506,"number":89,"title":"File system mysteriously unmounted soon after Init plus \"short kernel write\"","user":{"login":"jacobsa","id":202895,"avatar_url":"https://avatars.githubusercontent.com/u/202895?v=3","gravatar_id":"","url":"https://api.github.com/users/jacobsa","html_url":"https://github.com/jacobsa","followers_url":"https://api.github.com/users/jacobsa/followers","following_url":"https://api.github.com/users/jacobsa/following{/other_user}","gists_url":"https://api.github.com/users/jacobsa/gists{/gist_id}","starred_url":"https://api.github.com/users/jacobsa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacobsa/subscriptions","organizations_url":"https://api.github.com/users/jacobsa/orgs","repos_url":"https://api.github.com/users/jacobsa/repos","events_url":"https://api.github.com/users/jacobsa/events{/privacy}","received_events_url":"https://api.github.com/users/jacobsa/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bazil/fuse/labels/invalid","name":"invalid","color":"e6e6e6"},{"url":"https://api.github.com/repos/bazil/fuse/labels/type:bug","name":"type:bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-06-05T05:33:38Z","updated_at":"2015-06-08T22:42:51Z","closed_at":"2015-06-08T15:04:22Z","body":"I'm seeing a weird problem where file systems are unmounted very soon after responding to Init, even when the user doesn't request it. I can easily reproduce this in bazil.org/fuse tests. I see this only on one version of Linux (the newest one I have access to), not older ones.\r\n\r\nHere is what I am running:\r\n\r\n    % uname -a\r\n    Linux ubuntu 3.19.0-15-generic #15-Ubuntu SMP Thu Apr 16 23:32:37 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux\r\n\r\nThis is actually a Google Compute Engine VM that I created like this:\r\n\r\n    gcloud compute instances create ubuntu --scopes storage-full --image /ubuntu-os-cloud/ubuntu-1504-vivid-v20150422 --machine-type n1-standard-4 --project github-jacobsa-gcloud --zone asia-east1-a --boot-disk-size 500GB\r\n\r\nI can reproduce this at commit e4fcc9a2c7567d1c42861deebeb483315d222262 with the following patch, simply sleeping for a moment after mounting:\r\n\r\n```\r\ndiff --git a/options_test.go b/options_test.go\r\nindex c6d4af0..1c6c5a3 100644\r\n--- a/options_test.go\r\n+++ b/options_test.go\r\n@@ -5,6 +5,7 @@ import (\r\n        \"runtime\"\r\n        \"syscall\"\r\n        \"testing\"\r\n+       \"time\"\r\n \r\n        \"bazil.org/fuse\"\r\n        \"bazil.org/fuse/fs\"\r\n@@ -212,6 +213,8 @@ func TestMountOptionReadOnly(t *testing.T) {\r\n        }\r\n        defer mnt.Close()\r\n \r\n+       time.Sleep(time.Second)\r\n+\r\n        // This will be prevented by kernel-level access checking when\r\n        // ReadOnly is used.\r\n        f, err := os.Create(mnt.Dir + \"/child\")\r\n```\r\n\r\nThe test fails like this:\r\n\r\n```\r\n2015/06/05 05:32:08 FUSE: short kernel write: written=-1/40 error=\"no such file or directory\" stack=\r\ngoroutine 51 [running]:\r\nbazil.org/fuse.stack(0x0, 0x0)\r\n        /home/jacobsa/go/src/bazil.org/fuse/debug.go:9 +0x84\r\nbazil.org/fuse.(*Conn).respond(0xc208042840, 0xc2080874f0, 0x28)\r\n        /home/jacobsa/go/src/bazil.org/fuse/fuse.go:937 +0x169\r\nbazil.org/fuse.(*Header).respond(0xc208030dc0, 0xc2080874f0, 0x28)\r\n        /home/jacobsa/go/src/bazil.org/fuse/fuse.go:219 +0x3f\r\nbazil.org/fuse.(*InitRequest).Respond(0xc208030dc0, 0xc20800b310)\r\n        /home/jacobsa/go/src/bazil.org/fuse/fuse.go:999 +0xab\r\nbazil.org/fuse/fs.(*serveConn).serve(0xc2080463c0, 0x7f4e4109d130, 0xc208030dc0)\r\n        /home/jacobsa/go/src/bazil.org/fuse/fs/serve.go:797 +0x97b\r\nbazil.org/fuse/fs.func·001()\r\n        /home/jacobsa/go/src/bazil.org/fuse/fs/serve.go:367 +0x78\r\ncreated by bazil.org/fuse/fs.(*Server).Serve\r\n        /home/jacobsa/go/src/bazil.org/fuse/fs/serve.go:368 +0x805\r\n\r\n2015/06/05 05:32:10 unmount error: exit status 1: fusermount: entry for /tmp/fusetest085203965 not found in /etc/mtab\r\n2015/06/05 05:32:10 unmount error: exit status 1: fusermount: entry for /tmp/fusetest085203965 not found in /etc/mtab\r\n2015/06/05 05:32:10 unmount error: exit status 1: fusermount: entry for /tmp/fusetest085203965 not found in /etc/mtab\r\n[...]\r\n```\r\n\r\nAny idea what is going on here?"},"comment":{"url":"https://api.github.com/repos/bazil/fuse/issues/comments/110164628","html_url":"https://github.com/bazil/fuse/issues/89#issuecomment-110164628","issue_url":"https://api.github.com/repos/bazil/fuse/issues/89","id":110164628,"user":{"login":"jacobsa","id":202895,"avatar_url":"https://avatars.githubusercontent.com/u/202895?v=3","gravatar_id":"","url":"https://api.github.com/users/jacobsa","html_url":"https://github.com/jacobsa","followers_url":"https://api.github.com/users/jacobsa/followers","following_url":"https://api.github.com/users/jacobsa/following{/other_user}","gists_url":"https://api.github.com/users/jacobsa/gists{/gist_id}","starred_url":"https://api.github.com/users/jacobsa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacobsa/subscriptions","organizations_url":"https://api.github.com/users/jacobsa/orgs","repos_url":"https://api.github.com/users/jacobsa/repos","events_url":"https://api.github.com/users/jacobsa/events{/privacy}","received_events_url":"https://api.github.com/users/jacobsa/received_events","type":"User","site_admin":false},"created_at":"2015-06-08T22:42:51Z","updated_at":"2015-06-08T22:42:51Z","body":"Filed a systemd bug [here](https://bugs.freedesktop.org/show_bug.cgi?id=90907)."}}