Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
Merge pull request #738 from fidencio/wip/virtiofs
Browse files Browse the repository at this point in the history
mount: Use "virtiofs" instead of "virtio_fs"
  • Loading branch information
amshinde authored Apr 14, 2020
2 parents 73afd1a + 6cbeed5 commit 5bf8d4c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mount.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (

const (
type9pFs = "9p"
typeVirtioFS = "virtio_fs"
typeVirtioFS = "virtiofs"
typeRootfs = "rootfs"
typeTmpFs = "tmpfs"
procMountStats = "/proc/self/mountstats"
Expand Down
6 changes: 3 additions & 3 deletions mount_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -486,14 +486,14 @@ func TestMount(t *testing.T) {
{"", "/foo", "9p", 0, "", true},
{"proc", "", "9p", 0, "", true},
{"proc", "/proc", "", 0, "", true},
{"proc", "", "virtio_fs", 0, "", true},
{"proc", subdir, "virtio_fs", 0, "", true},
{"proc", "", "virtiofs", 0, "", true},
{"proc", subdir, "virtiofs", 0, "", true},
{"proc", subdir, "foo", 0, "", true},
{symLinkName, symLinkDest, "moo", 0, "", true},
{existsFile, existingNonCreatableFile, "bind", 0, "", true},
{"tmpfs", validSubdir, "tmpfs", 0, "", true},
{"proc", validSubdir, "9p", 0, "", true},
{"proc", validSubdir, "virtio_fs", 0, "", true},
{"proc", validSubdir, "virtiofs", 0, "", true},
}

for i, d := range data {
Expand Down

0 comments on commit 5bf8d4c

Please sign in to comment.