Open
Description
pub(crate) fn validate<E: IoError>(&self) -> Result<(), Error<E>> {
if self.boot_sig != [0x55, 0xAA] {
error!(
"Invalid boot sector signature: expected [0x55, 0xAA] but got {:?}",
self.boot_sig
);
return Err(Error::CorruptedFileSystem);
The absence of a boot signature does not mean there is not a valid filesystem on the disk.
Metadata
Assignees
Labels
No labels