Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Set msize for 9p mounting #25

Open
wants to merge 1 commit into
base: 0.7.0-clearcontainers
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -464,8 +464,12 @@ static int hyper_setup_shared(struct hyper_pod *pod)
return -1;
}

// Adding 524288 (512K) value to msize, provides
// an enhancement in I/O storage operations.
// This value was tested using different block sizes
// and I/O operations.
if (mount(pod->share_tag, SHARED_DIR, "9p",
MS_MGC_VAL| MS_NODEV, "trans=virtio") < 0) {
MS_MGC_VAL| MS_NODEV, "trans=virtio,msize=524288") < 0) {

perror("fail to mount shared dir");
return -1;
Expand Down