Skip to content

Commit 970ba2f

Browse files
Log and continue on XFS probe errors during startup (#763)
Currently, when any device on the host fails while probing XFS, we error out which may lead to pod crashloops. We can ignore such device probe errors and can log and continue.
1 parent 5c14dd1 commit 970ba2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/device/sync.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func probeDeviceMap() (map[string][]device, error) {
5757
fsuuid, label, totalCapacity, freeCapacity, err := xfs.Probe(utils.AddDevPrefix(dev.Name))
5858
if err != nil {
5959
if !errors.Is(err, xfs.ErrFSNotFound) {
60-
return nil, err
60+
klog.ErrorS(err, "unable to probe XFS filesystem", "Device", dev.Name)
6161
}
6262
continue
6363
}

0 commit comments

Comments
 (0)