Rollup merge of #121691 - janstarke:handle-missing-creation-time-as-unsupported, r=cuviper

handle unavailable creation time as `io::ErrorKind::Unsupported`
This commit is contained in:
Guillaume Gomez 2024-02-28 16:04:53 +01:00 committed by GitHub
commit 2492f93222
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -576,7 +576,7 @@ impl FileAttr {
Ok(SystemTime::new(ext.stx_btime.tv_sec, ext.stx_btime.tv_nsec as i64))
} else {
Err(io::const_io_error!(
io::ErrorKind::Uncategorized,
io::ErrorKind::Unsupported,
"creation time is not available for the filesystem",
))
};