{"record":{"id":"e280944d2aa87b9b","repo":"rustfs/rustfs","slug":"0x4f","errorCode":"0x4F","errorMessage":"short write","messagePattern":"short write","errorType":"exception","errorClass":"StorageError::ShortWrite","httpStatus":null,"severity":"error","filePath":"crates/ecstore/src/error/mod.rs","lineNumber":84,"sourceCode":"///   - **Generic** – I/O, locks, and catch-all errors\n#[derive(Debug, thiserror::Error)]\npub enum StorageError {\n    // ── Disk / Volume ────────────────────────────────────────────────\n    #[error(\"Faulty disk\")]\n    FaultyDisk,\n    #[error(\"Faulty remote disk\")]\n    FaultyRemoteDisk,\n    #[error(\"Disk full\")]\n    DiskFull,\n    #[error(\"Disk not found\")]\n    DiskNotFound,\n    #[error(\"Disk access denied\")]\n    DiskAccessDenied,\n    #[error(\"Drive is root\")]\n    DriveIsRoot,\n    #[error(\"Unformatted disk\")]\n    UnformattedDisk,\n    #[error(\"Corrupted format\")]\n    CorruptedFormat,\n    #[error(\"Corrupted backend\")]\n    CorruptedBackend,\n    #[error(\"Too many open files\")]\n    TooManyOpenFiles,\n    #[error(\"maximum versions exceeded, please delete few versions to proceed\")]\n    MaxVersionsExceeded,\n    #[error(\"inconsistent drive found\")]\n    InconsistentDisk,\n    #[error(\"drive does not support O_DIRECT\")]\n    UnsupportedDisk,\n    #[error(\"disk not a dir\")]\n    DiskNotDir,\n    #[error(\"drive still did not complete the request\")]\n    DiskOngoingReq,\n    #[error(\"path not found\")]\n    PathNotFound,\n    #[error(\"bit-rot hash algorithm is invalid\")]","sourceCodeStart":66,"sourceCodeEnd":102,"githubUrl":"https://github.com/rustfs/rustfs/blob/5dca076efed96e7b842de07c4c2111035ae7c7a2/crates/ecstore/src/error/mod.rs#L66-L102","documentation":"StorageError variant meaning a disk write completed only partially (write returned a short count) so the file is not durably complete. RustFS fails the operation instead of accepting partial durability; the caller retries the write or the whole object/part operation. It mirrors DiskError::ShortWrite at the storage-error level.","triggerScenarios":"Thrown at crates/ecstore/src/error/mod.rs:84 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry the write and verify byte counts","Check disk health and free space","Treat the drive as suspect if partial writes recur"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5dca076efed96e7b842de07c4c2111035ae7c7a2","analyzedAt":"2026-08-20T21:57:04.799Z","contentChangedAt":"2026-08-20T21:57:04.799Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}