[discussion] ErrorKind::InvalidFilename
from io_error_more
#130192
Labels
C-discussion
Category: Discussion or questions that doesn't represent real issues.
disposition-merge
This issue / PR is in PFCP or FCP with a disposition to merge it.
proposed-final-comment-period
Proposed to merge/close by relevant subteam, see T-<team> label. Will enter FCP once signed off.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
@rustbot label C-discussion
Main tracking issue: #86442
Background
The
io_error_more
feature introduced 21 new variants intoErrorKind
. They were FCP'd back in December 2022, but there appeared to be quite a lot of disagreement about 4 of the added variants, so the stabilization (#106375) got stalled for over twenty months. Thankfully, the 17 uncontroversial variants got stabilized in #128316, so now we just need to iron out a satisfactory design for the remaining 4 variants, and then they can be stabilized too.In order to not block any of the remaining variants on each other and to not intertwine the discussions, I've created 4 separate issues, which summarize the concerns & suggestions voiced up until this point and can serve as a place for further discussion.
FilesystemLoop
: [discussion]ErrorKind::FilesystemLoop
fromio_error_more
#130188FilesystemQuotaExceeded
: [discussion]ErrorKind::FilesystemQuotaExceeded
fromio_error_more
#130190CrossesDevices
: [discussion]ErrorKind::CrossesDevices
fromio_error_more
#130191InvalidFilename
: you are hereInvalidFilename
Currently corresponds to
ENAMETOOLONG
on Unix,ERROR_FILENAME_EXCED_RANGE
&ERROR_INVALID_NAME
on Windows. (#86442 (comment))Current docs description:
Docs
I'm not sure "This error can also cause if it exceeded the filename length limit." is well-formed coherent English, but I'm not a native speaker.
Name capitalization
Originally posted by Kornel in #79965 (comment)
Separate "the name is too long" case
Originally posted by cktkw in #86442 (comment)
There is a long reply from Aritz Beobide-Cardinal in #106375 (comment) arguing against the separation.
Map more raw os errors to this
ErrorKind
Originally posted by cktkw in #86442 (comment)
The text was updated successfully, but these errors were encountered: