update losetup fsck
@@ -392,7 +392,7 @@ func (ns *nodeServer) LosetupExpandVolume(req *csi.NodeExpandVolumeRequest) erro
return fmt.Errorf("NodeExpandVolume: resize device file error, %v", err)
}
- chkCmd := fmt.Sprintf("%s fsck.ext4 %s", NsenterCmd, imgFile)
+ chkCmd := fmt.Sprintf("%s fsck -a %s", NsenterCmd, imgFile)
_, err = utils.Run(chkCmd)
if err != nil {
return fmt.Errorf("Check losetup image error %s", err.Error())
