diff options
Diffstat (limited to 'src/attribute.rs')
-rw-r--r-- | src/attribute.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/attribute.rs b/src/attribute.rs index a13e740..2d2bdc5 100644 --- a/src/attribute.rs +++ b/src/attribute.rs @@ -7,8 +7,8 @@ use crate::ntfs::Ntfs; use crate::ntfs_file::NtfsFile; use crate::string::NtfsString; use crate::structured_values::{ - NewNtfsStructuredValue, NtfsFileName, NtfsIndexRoot, NtfsObjectId, NtfsStandardInformation, - NtfsStructuredValue, NtfsVolumeInformation, NtfsVolumeName, + NewNtfsStructuredValue, NtfsFileName, NtfsIndexAllocation, NtfsIndexRoot, NtfsObjectId, + NtfsStandardInformation, NtfsStructuredValue, NtfsVolumeInformation, NtfsVolumeName, }; use binread::io::{Read, Seek, SeekFrom}; use binread::{BinRead, BinReaderExt}; @@ -258,6 +258,10 @@ impl<'n> NtfsAttribute<'n> { let inner = NtfsIndexRoot::new(fs, value, length)?; Ok(NtfsStructuredValue::IndexRoot(inner)) } + NtfsAttributeType::IndexAllocation => { + let inner = NtfsIndexAllocation::new(fs, value, length)?; + Ok(NtfsStructuredValue::IndexAllocation(inner)) + } ty => Err(NtfsError::UnsupportedStructuredValue { position: self.position, ty, |