Skip to content

Commit 26ab8a3

Browse files
committed
Add pdisk error handler for NoSpaceLeft(ENOSPC) (#18157)
1 parent cb5f429 commit 26ab8a3

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
@@ -102,7 +102,8 @@ enum class EIoResult : i64 {
102102
InvalidSequence = 14, // aka EILSEQ: GetEvents
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
105-
RemoteIOError = 16 // aka EREMOTEIO: GetEvents
105+
RemoteIOError = 16, // aka EREMOTEIO: GetEvents
106+
NoSpaceLeft = 17 // aka ENOSPC: GetEvents
106107
};
107108

108109
struct TAsyncIoOperationResult {

ydb/library/pdisk_io/aio_linux.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,7 @@ class TAsyncIoContextLiburing : public IAsyncIoContext {
549549
case ENOSYS: return EIoResult::FunctionNotImplemented;
550550
case EILSEQ: return EIoResult::InvalidSequence;
551551
case ENODATA: return EIoResult::NoData;
552+
case ENOSPC: return EIoResult::NoSpaceLeft;
552553
default: Y_FAIL_S(PDiskInfo << " unexpected error in " << info << ", error# " << -ret
553554
<< " strerror# " << strerror(-ret));
554555
}

0 commit comments

Comments
 (0)