mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 18:31:15 +00:00
update after review
Signed-off-by: Lou <luogj@cn.ibm.com>
This commit is contained in:
parent
3651c2ef51
commit
241ff06ccc
@ -294,7 +294,7 @@ func (mounter *SafeFormatAndMount) checkAndRepairXfsFilesystem(source string) er
|
||||
klog.Warningf("Filesystem corruption was detected for %s, running xfs_repair to repair", source)
|
||||
out, err := mounter.Exec.Command("xfs_repair", args...).CombinedOutput()
|
||||
if err != nil {
|
||||
return fmt.Errorf("'xfs_repair' found errors on device %s but could not correct them: %s\n", source, out)
|
||||
return NewMountError(HasFilesystemErrors, "'xfs_repair' found errors on device %s but could not correct them: %s\n", source, out)
|
||||
} else {
|
||||
klog.Infof("Device %s has errors which were corrected by xfs_repair.", source)
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user