Merge pull request #153 from Itay2805/trunk

ntfs: allow for bigger resident index and resident data
This commit is contained in:
mint 2022-01-28 12:56:56 +01:00 committed by GitHub
commit 1cdb4c287a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,11 +48,16 @@ struct ntfs_file_handle {
// The resident index, only for directories,
// could be at the same time as a runlist
uint8_t resident_index_size;
uint8_t resident_index[256];
// the resident data
uint8_t resident_data_size;
uint8_t resident_data[256];
// we are using a union just for having different names, these
// won't have need to be used at the same time
union {
uint8_t resident_index[1024];
uint8_t resident_data[1024];
};
// info about the current file
uint32_t size_bytes;