mount-utils: fix warning message of fs mismatch

This commit is contained in:
胡玮文
2024-10-24 16:48:51 +08:00
parent e526a27118
commit ed43fc467d

View File

@@ -631,7 +631,7 @@ func (mounter *SafeFormatAndMount) formatAndMountSensitive(source string, target
if fstype != existingFormat { if fstype != existingFormat {
// Verify that the disk is formatted with filesystem type we are expecting // Verify that the disk is formatted with filesystem type we are expecting
mountErrorValue = FilesystemMismatch mountErrorValue = FilesystemMismatch
klog.Warningf("Configured to mount disk %s as %s but current format is %s, things might break", source, existingFormat, fstype) klog.Warningf("Configured to mount disk %s as %s but current format is %s, things might break", source, fstype, existingFormat)
} }
if !readOnly { if !readOnly {