提交 32316acd 编写于 作者: A Aaron Prindle 提交者: GitHub

Merge pull request #1643 from aaron-prindle/fix-mount-uid-gid

Fixed flags to use 9p syntax for uid and gid
......@@ -233,7 +233,7 @@ func GetMountCleanupCommand(path string) string {
var mountTemplate = `
sudo mkdir -p {{.Path}} || true;
sudo mount -t 9p -o trans=tcp -o port={{.Port}} -o uid={{.UID}} -o gid={{.GID}} {{.IP}} {{.Path}};
sudo mount -t 9p -o trans=tcp -o port={{.Port}} -o dfltuid={{.UID}} -o dfltgid={{.GID}} {{.IP}} {{.Path}};
sudo chmod 775 {{.Path}};`
func GetMountCommand(ip net.IP, path, port string, uid, gid int) (string, error) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册