Proper way to specify `SupportedMountOptions`

14 views
Skip to first unread message

Qiyuan Liang

unread,
Apr 23, 2024, 11:18:24 AM4/23/24
to gVisor Users [Public]
Hello,

What is the proper way to specify `SupportedMountOptions` with a mount? Tried to specify it with something like this:
{
  destination: mount.destination,
  source: mount.source,
  options: ["ro", "rbind""dcache=0"],
  type: "bind",
}

and this:
{
  destination: mount.destination,
  source: mount.source,
  options: ["ro", "rbind"],
  dcache: 0,
  type: "bind",
}

But both are not working as expected. It would be great if you could provide an example. Thank you!

Best regards,
Qiyuan

Ayush Ranjan

unread,
Apr 23, 2024, 11:12:57 PM4/23/24
to gVisor Users [Public]
I will respond on https://github.com/google/gvisor/issues/10316. It is an issue in gVisor.
The first way is the right way to do it (append it to options= array).

Reply all
Reply to author
Forward
0 new messages