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

Fixed flags to use 9p syntax for uid and gid
pull/1657/head
Aaron Prindle 2017-06-26 10:16:40 -07:00 committed by GitHub
commit 32316acd49
1 changed files with 1 additions and 1 deletions

View File

@ -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) {