Skip to content

Ignore boot signature #102

Open
Open
@dbalsom

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions