diff --git a/src/fs.rs b/src/fs.rs index 0b7ea4e..6733b16 100644 --- a/src/fs.rs +++ b/src/fs.rs @@ -390,6 +390,10 @@ impl FileSystem { boot.bpb }; + if bpb.fs_version != 0 { + return Err(Error::new(ErrorKind::Other, "unknown FS version")); + } + let total_sectors = if bpb.total_sectors_16 == 0 { bpb.total_sectors_32 } else { bpb.total_sectors_16 as u32 };