# io::ErrorKind for ENOSPC (no space left)

**URL:** <https://internals.rust-lang.org/t/io-errorkind-for-enospc-no-space-left/14366>\
**Category:** libs\
**Created:** [March 28, 2021, 8:15pm UTC](https://internals.rust-lang.org/t/io-errorkind-for-enospc-no-space-left/14366 "2021-03-28T20:15:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Johannesd3](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/johannesd3/32/7549_2.png) [@Johannesd3](https://internals.rust-lang.org/u/Johannesd3)\
**Post date:** [March 28, 2021, 8:15pm UTC](https://internals.rust-lang.org/t/io-errorkind-for-enospc-no-space-left/14366/1 "2021-03-28T20:15:36Z")

</div>

I recently realized there is no variant of `io::ErrorKind` equivalent to ENOSPC (no space left on device). Is there a reason why it doesn't exist, or would it be a candidate to be added some day? After all, it's a common kind of error which can occur on every OS, I assume.

---

<div class="post-metadata">

**Author:** ![josh](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/josh/32/5934_2.png) [@josh](https://internals.rust-lang.org/u/josh)\
**Post date:** [March 28, 2021, 8:23pm UTC](https://internals.rust-lang.org/t/io-errorkind-for-enospc-no-space-left/14366/2 "2021-03-28T20:23:27Z")

</div>

There's a [PR in progress](https://github.com/rust-lang/rust/pull/79965/) to add this and other errors to `ErrorKind`.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/system/32/14092_2.png) [@system](https://internals.rust-lang.org/u/system)\
**Post date:** [June 26, 2021, 8:24pm UTC](https://internals.rust-lang.org/t/io-errorkind-for-enospc-no-space-left/14366/3 "2021-06-26T20:24:26Z")

</div>

Closed on June 26, 2021, 8:24pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
