Skip to content

Commit 5e42010

Browse files
Rename FilesystemQuotaExceeded to QuotaExceeded
1 parent 68f71a5 commit 5e42010

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

Diff for: library/std/src/io/error.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ pub enum ErrorKind {
286286
NotSeekable,
287287
/// Filesystem quota was exceeded.
288288
#[stable(feature = "io_error_more", since = "CURRENT_RUSTC_VERSION")]
289-
FilesystemQuotaExceeded,
289+
QuotaExceeded,
290290
/// File larger than allowed or supported.
291291
///
292292
/// This might arise from a hard limit of the underlying filesystem or file access API, or from
@@ -403,7 +403,7 @@ impl ErrorKind {
403403
ExecutableFileBusy => "executable file busy",
404404
FileTooLarge => "file too large",
405405
FilesystemLoop => "filesystem loop or indirection limit (e.g. symlink loop)",
406-
FilesystemQuotaExceeded => "filesystem quota exceeded",
406+
QuotaExceeded => "quota exceeded",
407407
HostUnreachable => "host unreachable",
408408
Interrupted => "operation interrupted",
409409
InvalidData => "invalid data",

Diff for: library/std/src/io/error/repr_bitpacked.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ fn kind_from_prim(ek: u32) -> Option<ErrorKind> {
326326
WriteZero,
327327
StorageFull,
328328
NotSeekable,
329-
FilesystemQuotaExceeded,
329+
QuotaExceeded,
330330
FileTooLarge,
331331
ResourceBusy,
332332
ExecutableFileBusy,

Diff for: library/std/src/sys/unix/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ pub fn decode_error_kind(errno: i32) -> ErrorKind {
236236
libc::ECONNREFUSED => ConnectionRefused,
237237
libc::ECONNRESET => ConnectionReset,
238238
libc::EDEADLK => Deadlock,
239-
libc::EDQUOT => FilesystemQuotaExceeded,
239+
libc::EDQUOT => QuotaExceeded,
240240
libc::EEXIST => AlreadyExists,
241241
libc::EFBIG => FileTooLarge,
242242
libc::EHOSTUNREACH => HostUnreachable,

Diff for: library/std/src/sys/windows/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ pub fn decode_error_kind(errno: i32) -> ErrorKind {
9999
c::ERROR_WRITE_PROTECT => return ReadOnlyFilesystem,
100100
c::ERROR_DISK_FULL | c::ERROR_HANDLE_DISK_FULL => return StorageFull,
101101
c::ERROR_SEEK_ON_DEVICE => return NotSeekable,
102-
c::ERROR_DISK_QUOTA_EXCEEDED => return FilesystemQuotaExceeded,
102+
c::ERROR_DISK_QUOTA_EXCEEDED => return QuotaExceeded,
103103
c::ERROR_FILE_TOO_LARGE => return FileTooLarge,
104104
c::ERROR_BUSY => return ResourceBusy,
105105
c::ERROR_POSSIBLE_DEADLOCK => return Deadlock,

Diff for: src/tools/miri/src/helpers.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const UNIX_IO_ERROR_TABLE: &[(&str, std::io::ErrorKind)] = {
3838
("ECONNREFUSED", ConnectionRefused),
3939
("ECONNRESET", ConnectionReset),
4040
("EDEADLK", Deadlock),
41-
("EDQUOT", FilesystemQuotaExceeded),
41+
("EDQUOT", QuotaExceeded),
4242
("EEXIST", AlreadyExists),
4343
("EFBIG", FileTooLarge),
4444
("EHOSTUNREACH", HostUnreachable),

0 commit comments

Comments
 (0)