diff --git a/mount.go b/mount.go index 7b237143c..f0c3efe3f 100644 --- a/mount.go +++ b/mount.go @@ -27,7 +27,7 @@ import ( const ( type9pFs = "9p" - typeVirtioFS = "virtio_fs" + typeVirtioFS = "virtiofs" typeRootfs = "rootfs" typeTmpFs = "tmpfs" procMountStats = "/proc/self/mountstats" diff --git a/mount_test.go b/mount_test.go index 050a9ec44..823472ac6 100644 --- a/mount_test.go +++ b/mount_test.go @@ -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 {