Skip to content

Commit 084dfdd

Browse files
authored
Add pdisk error handler for NoDevice(ENODEV) (#21191) (#21296)
2 parents 3041d8f + bdb01bb commit 084dfdd

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

ydb/library/pdisk_io/aio.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ enum class EIoResult : i64 {
103103
// for broken disk's error-log: "READ_ERROR: The read data could not be recovered from the media"
104104
NoData = 15, // aka ENODATA: GetEvents
105105
RemoteIOError = 16, // aka EREMOTEIO: GetEvents
106-
NoSpaceLeft = 17 // aka ENOSPC: GetEvents
106+
NoSpaceLeft = 17, // aka ENOSPC: GetEvents
107+
NoDevice = 18, // aka ENODEV: GetEvents
107108
};
108109

109110
struct TAsyncIoOperationResult {

ydb/library/pdisk_io/aio_linux.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ class TAsyncIoContextLibaio : public IAsyncIoContext {
223223
case EILSEQ: return EIoResult::InvalidSequence;
224224
case ENODATA: return EIoResult::NoData;
225225
case EREMOTEIO: return EIoResult::RemoteIOError;
226+
case ENODEV: return EIoResult::NoDevice;
226227
default: Y_FAIL_S(PDiskInfo << " unexpected error in " << info << ", error# " << -ret
227228
<< " strerror# " << strerror(-ret));
228229
}

0 commit comments

Comments
 (0)