Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions drivers/linstorcowutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -543,13 +543,14 @@ def local_call():
return local_method(device_path, *args, **kwargs)
except util.CommandException as e:
if e.code in (errno.EROFS, errno.EMEDIUMTYPE):
raise ErofsLinstorCallException(e) # Break retry calls.
raise ErofsLinstorCallException(e)
if e.code == errno.ENODATA:
raise NoDataLinstorCallException(e)
if e.code == errno.ENOENT:
raise NoPathLinstorCallException(e)
raise e
# Retry only locally if it's not an EROFS exception.
raise e # Continue to retry calls.
# Retry only locally if it's not a LinstorCallException.
# ENODATA is retried on blktap2 directly, to handle transient DRBD errors.
return util.retry(local_call, 5, 2, exceptions=[util.CommandException])
except util.CommandException as e:
util.SMlog('failed to execute locally CowUtil (sys {})'.format(e.code))
Expand Down
Loading