search for: entries_offset

Displaying 2 results from an estimated 2 matches for "entries_offset".

2014 Jun 02
2
[PATCH] NTFS: fix incorrect file->offset usage in ntfs_readdir
...ic int ntfs_readdir(struct file *fil attr->data.resident.value_offset); if (!file->offset && readdir_state->in_idx_root) { - file->offset = (uint32_t)((uint8_t *)&ir->index + - ir->index.entries_offset); + file->offset = ir->index.entries_offset; } idx_root_next_entry: if (readdir_state->in_idx_root) { - ie = (struct ntfs_idx_entry *)(uint8_t *)file->offset; - if (ie->flags & INDEX_ENTRY_END) { + ie = (struct ntfs_idx_entry *)((uint8_t...
2014 Jun 02
0
[PATCH] NTFS: fix incorrect file->offset usage in ntfs_readdir
...ic int ntfs_readdir(struct file *fil attr->data.resident.value_offset); if (!file->offset && readdir_state->in_idx_root) { - file->offset = (uint32_t)((uint8_t *)&ir->index + - ir->index.entries_offset); + file->offset = ir->index.entries_offset; } idx_root_next_entry: if (readdir_state->in_idx_root) { - ie = (struct ntfs_idx_entry *)(uint8_t *)file->offset; - if (ie->flags & INDEX_ENTRY_END) { + ie = (struct ntfs_idx_entry *)((uint8_t *)&amp...