add cache parameter for 9p mount

Signed-off-by: Wang Xu <gnawux@gmail.com>
This commit is contained in:
Wang Xu
2015-07-06 10:41:57 +08:00
parent 5c16805384
commit 34af303041
+1 -1
View File
@@ -518,7 +518,7 @@ static int hyper_setup_shared(struct hyper_pod *pod)
return -1;
}
if (mount(pod->tag, "/tmp/hyper/shared", "9p", MS_MGC_VAL, "trans=virtio") < 0) {
if (mount(pod->tag, "/tmp/hyper/shared", "9p", MS_MGC_VAL, "trans=virtio,cache=loose") < 0) {
perror("fail to mount 9p shared dir");
return -1;
}