move the device after the options when using mkfs.ext4

Signed-off-by: zouyee <zouyee1989@gmail.com>
This commit is contained in:
zouyee 2025-02-08 16:07:51 +08:00 committed by k8s-infra-cherrypick-robot
parent 6b5e19bdc5
commit f95a426b83

View File

@ -235,9 +235,9 @@ func testCreateThinDevice(t *testing.T, pool *PoolDevice) {
func testMakeFileSystem(t *testing.T, pool *PoolDevice) { func testMakeFileSystem(t *testing.T, pool *PoolDevice) {
devicePath := dmsetup.GetFullDevicePath(thinDevice1) devicePath := dmsetup.GetFullDevicePath(thinDevice1)
args := []string{ args := []string{
devicePath,
"-E", "-E",
"nodiscard,lazy_itable_init=0,lazy_journal_init=0", "nodiscard,lazy_itable_init=0,lazy_journal_init=0",
devicePath,
} }
output, err := exec.Command("mkfs.ext4", args...).CombinedOutput() output, err := exec.Command("mkfs.ext4", args...).CombinedOutput()