Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/ntfs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/error.rs b/src/error.rs
index 2d34537..99a4e61 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -29,12 +29,24 @@ pub enum NtfsError {
InvalidLcnPositionInDataRunHeader { position: u64, lcn_position: i64 },
/// The requested NTFS file {n} is invalid
InvalidNtfsFile { n: u64 },
- /// The NTFS file at byte position {position:#010x} should have signature {expected:?}, but it has signature {actual:?}
+ /// The NTFS file record at byte position {position:#010x} should have signature {expected:?}, but it has signature {actual:?}
InvalidNtfsFileSignature {
position: u64,
expected: &'static [u8],
actual: [u8; 4],
},
+ /// The NTFS index record at byte position {position:#010x} should have signature {expected:?}, but it has signature {actual:?}
+ InvalidNtfsIndexSignature {
+ position: u64,
+ 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 {
+ position: u64,
+ expected: u32,
+ actual: u32,
+ },
/// The given time can't be represented as an NtfsTime
InvalidNtfsTime,
/// A record size field in the BIOS Parameter Block denotes {size_info}, which is invalid considering the cluster size of {cluster_size} bytes