Lines Matching refs:index

61 #include "index.h"
278 /* Find the index root attribute in the mft record. */
286 /* Get to the index root value. */
297 index_end = (u8*)&ir->index + le32_to_cpu(ir->index.index_length);
298 /* The first index entry. */
299 ie = (INDEX_ENTRY*)((u8*)&ir->index +
300 le32_to_cpu(ir->index.entries_offset));
339 * is definitely no such name in this index but we might need to
357 * We have finished with this index without success. Check for the
371 /* Open the index allocation attribute. */
374 ntfs_log_perror("Failed to open index allocation (inode %lld)",
379 /* Allocate a buffer for the current index block. */
386 /* Determine the size of a vcn in the directory index. */
398 /* Read the index block starting at vcn. */
415 index_end = (u8*)&ia->index + le32_to_cpu(ia->index.index_length);
417 /* The first index entry. */
418 ie = (INDEX_ENTRY*)((u8*)&ia->index +
419 le32_to_cpu(ia->index.entries_offset));
421 * Iterate similar to above big loop but applied to index buffer, thus
460 * is definitely no such name in this index but we might need to
475 * We have finished with this index buffer without success. Check for
479 if ((ia->index.ih_flags & NODE_MASK) == LEAF_NODE) {
854 INDEX_TYPE_ROOT, /* index root */
855 INDEX_TYPE_ALLOCATION, /* index allocation */
949 * @ivcn_bits: log(2) of index vcn size
950 * @index_type: specifies whether @iu is an index root or an index allocation
951 * @iu: index root or index block to which @ie belongs
952 * @ie: current index entry
1092 * Parse the index root and the index blocks that are marked in use in the
1093 * index bitmap and hand each found directory entry to the @filldir callback
1133 /* Open the index allocation attribute. */
1137 ntfs_log_perror("Failed to open index allocation attribute. "
1182 /* Get the offset into the index root attribute. */
1184 /* Find the index root attribute in the mft record. */
1191 /* Get to the index root value. */
1195 /* Determine the size of a vcn in the directory index. */
1210 /* Are we jumping straight into the index allocation attribute? */
1217 index_end = (u8*)&ir->index + le32_to_cpu(ir->index.index_length);
1218 /* The first index entry. */
1219 ie = (INDEX_ENTRY*)((u8*)&ir->index +
1220 le32_to_cpu(ir->index.entries_offset));
1227 ntfs_log_debug("In index root, offset %d.\n", (int)((u8*)ie - (u8*)ir));
1245 /* Skip index root entry if continuing previous readdir. */
1270 /* If there is no index allocation attribute we are finished. */
1274 /* Advance *pos to the beginning of the index allocation. */
1282 /* Allocate a buffer for the current index block. */
1289 ntfs_log_perror("Failed to open index bitmap attribute");
1293 /* Get the offset into the index allocation attribute. */
1298 ntfs_log_error("Current index position exceeds index bitmap "
1312 ntfs_log_perror("Failed to read from index bitmap attribute");
1317 /* If the index block is not in use find the next one that is. */
1328 /* Read next chunk from the index bitmap. */
1336 ntfs_log_perror("Failed to read from index bitmap attribute");
1341 ntfs_log_debug("Handling index block 0x%llx.\n", (long long)bmp_pos);
1343 /* Read the index block starting at bmp_pos. */
1349 ntfs_log_perror("Failed to read index block");
1358 index_end = (u8*)&ia->index + le32_to_cpu(ia->index.index_length);
1360 /* The first index entry. */
1361 ie = (INDEX_ENTRY*)((u8*)&ia->index +
1362 le32_to_cpu(ia->index.entries_offset));
1369 ntfs_log_debug("In index allocation, offset 0x%llx.\n",
1387 /* Skip index entry if continuing previous readdir. */
1579 ir_len = offsetof(INDEX_ROOT, index) + index_len;
1596 ir->index.entries_offset = const_cpu_to_le32(sizeof(INDEX_HEADER));
1597 ir->index.index_length = cpu_to_le32(index_len);
1598 ir->index.allocated_size = cpu_to_le32(index_len);
1725 /* Add FILE_NAME attribute to index. */
1729 ntfs_log_perror("Failed to add entry to the index");
1939 * WIN32_AND_DOS namespace, then simply remove it from index and inode.
2090 * Failed to remove the reparse index : proceed anyway
2099 * Failed to remove the object id index : proceed anyway
2249 /* Add FILE_NAME attribute to index. */
2253 ntfs_log_perror("Failed to add filename to the index");
2260 /* Try to remove just added attribute from index. */