ext2-0.1.0.0: A library for playing around with ext2. Might not work very well.

Copyright(C) 2014 Ricky Elrod
LicenseBSD2 (see LICENSE file)
MaintainerRicky Elrod <ricky@elrod.me>
Stabilityexperimental
Portabilitylens
Safe HaskellNone
LanguageHaskell2010

System.Ext2.FSChecks

Description

This module contains several checks for testing the integrity of an ext2 filesystem.

Synopsis

Documentation

sbMagicValid :: Superblock -> Bool

Given a superblock, ensure that its magic number is as-expected.

sbConsistency :: Superblock -> Superblock -> Bool

Given two superblocks, ensure they are consistent. We get this for free by deriving Eq.

bgdtConsistency :: BlockGroupDescriptorTable -> BlockGroupDescriptorTable -> Bool

Given two BGDTs, ensure they are consistent. We get this for free by deriving Eq.