diff options
Diffstat (limited to 'src/error.rs')
-rw-r--r-- | src/error.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/error.rs b/src/error.rs index fa62d8e..1836be3 100644 --- a/src/error.rs +++ b/src/error.rs @@ -76,8 +76,14 @@ pub enum NtfsError { expected: &'static [u8], actual: [u8; 4], }, - /// The NTFS index record at byte position {position:#010x} should have a maximum of {expected} bytes, but it indicates {actual} bytes - InvalidNtfsIndexSize { + /// The NTFS index record at byte position {position:#010x} indicates an allocated size of {expected} bytes, but the record only has a size of {actual} bytes + InvalidNtfsIndexAllocatedSize { + position: u64, + expected: u32, + actual: u32, + }, + /// The NTFS index record at byte position {position:#010x} indicates a used size of {expected} bytes, but only {actual} bytes are allocated + InvalidNtfsIndexUsedSize { position: u64, expected: u32, actual: u32, |