func()

in gce-containers-startup/volumes/volumes.go [295:304]


func (env Env) processMemoryBackedEmptyDirVolume(volume *api.EmptyDirVolume, volumeName string) (VolumeHostPathAndMode, error) {
	tmpfsMountPoint, err := env.createNewMountPath("tmpfs", volumeName)
	if err != nil {
		return VolumeHostPathAndMode{}, err
	}
	if err := env.mountDevice(newMount("tmpfs", tmpfsMountPoint, "tmpfs", readOnly(false))); err != nil {
		return VolumeHostPathAndMode{}, err
	}
	return VolumeHostPathAndMode{hostPath: tmpfsMountPoint, readOnly: false}, nil
}