func readOnly()

in gce-containers-startup/volumes/volumes.go [82:96]


func readOnly(ro bool) mountOption {
	return func(mnt *mount) {
		var opt string
		if ro {
			opt = "ro"
		} else {
			opt = "rw"
		}
		if mnt.options == "" {
			mnt.options = opt
			return
		}
		mnt.options += ("," + opt)
	}
}