fix: use u64 for parsing Linux partition blocks (#3873)

This commit is contained in:
sxyazi 2026-04-11 09:25:17 +08:00
parent 9abbc12212
commit 80a54c3dd5
No known key found for this signature in database
5 changed files with 29 additions and 29 deletions

View file

@ -66,7 +66,7 @@ impl Partitions {
let mut it = line.split_whitespace();
let Some(Ok(_major)) = it.next().map(|s| s.parse::<u16>()) else { continue };
let Some(Ok(_minor)) = it.next().map(|s| s.parse::<u16>()) else { continue };
let Some(Ok(_blocks)) = it.next().map(|s| s.parse::<u32>()) else { continue };
let Some(Ok(_blocks)) = it.next().map(|s| s.parse::<u64>()) else { continue };
if let Some(name) = it.next() {
set.insert(Self::unmangle_octal(name).into_owned());
}