Append suffix 'i' only if needed
Signed-off-by: Ted Yu <yuzhihong@gmail.com>
This commit is contained in:
@@ -836,6 +836,12 @@ func TestGetPageSize(t *testing.T) {
|
||||
Path: "/mnt/hugepages-2Mi",
|
||||
Opts: []string{"rw", "relatime", "pagesize=2M"},
|
||||
},
|
||||
{
|
||||
Device: "/dev/hugepages",
|
||||
Type: "hugetlbfs",
|
||||
Path: "/mnt/hugepages-2Mi",
|
||||
Opts: []string{"rw", "relatime", "pagesize=2Mi"},
|
||||
},
|
||||
{
|
||||
Device: "sysfs",
|
||||
Type: "sysfs",
|
||||
|
||||
Reference in New Issue
Block a user