Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

Commit 46ffda7

Browse files
committed
add cache parameter for 9p mount
Signed-off-by: Wang Xu <[email protected]>
1 parent 5c16805 commit 46ffda7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ static int hyper_setup_shared(struct hyper_pod *pod)
518518
return -1;
519519
}
520520

521-
if (mount(pod->tag, "/tmp/hyper/shared", "9p", MS_MGC_VAL, "trans=virtio") < 0) {
521+
if (mount(pod->tag, "/tmp/hyper/shared", "9p", MS_MGC_VAL, "trans=virtio,cache=loose") < 0) {
522522
perror("fail to mount 9p shared dir");
523523
return -1;
524524
}

0 commit comments

Comments
 (0)