Lines Matching refs:index

2293 			ntfs_log_error("add_attr_index_root: index block size is not "
2302 ntfs_log_error("add_attr_index_root: index block size is not "
2308 ntfs_log_error("add_attr_index_root: index block size "
2317 r->index.entries_offset = const_cpu_to_le32(sizeof(INDEX_HEADER));
2318 r->index.index_length = const_cpu_to_le32(sizeof(INDEX_HEADER) +
2320 r->index.allocated_size = r->index.index_length;
2321 r->index.ih_flags = SMALL_INDEX;
2322 memset(&r->index.reserved, 0, sizeof(r->index.reserved));
2323 e = (INDEX_ENTRY_HEADER*)((u8*)&r->index +
2324 le32_to_cpu(r->index.entries_offset));
2326 * No matter whether this is a file index or a view as this is a
2417 * Create bitmap and index allocation attributes, modify index root
2418 * attribute accordingly and move all of the index entries from the index root
2419 * into the index allocation.
2442 /* Find the index root attribute. */
2469 re_start = (char*)&r->index + le32_to_cpu(r->index.entries_offset);
2491 ntfs_log_error("Sector size is bigger than index block size. "
2503 ia_val->index.ih_flags = LEAF_NODE;
2505 ia_val->index.entries_offset = cpu_to_le32((sizeof(INDEX_HEADER) +
2507 ia_val->index.allocated_size = cpu_to_le32(index_block_size -
2509 /* Find the last entry in the index root and save it in re. */
2511 /* Next entry in index root. */
2516 memcpy((char*)&ia_val->index +
2517 le32_to_cpu(ia_val->index.entries_offset), re_start, i);
2518 /* Finish setting up index allocation. */
2519 ia_val->index.index_length = cpu_to_le32(i +
2520 le32_to_cpu(ia_val->index.entries_offset));
2526 /* Now fixup empty index root with pointer to index allocation VCN 0. */
2527 r->index.ih_flags = LARGE_INDEX;
2531 r->index.index_length = cpu_to_le32(le32_to_cpu(r->index.entries_offset)
2533 r->index.allocated_size = r->index.index_length;
2534 /* Resize index root attribute. */
2537 le32_to_cpu(r->index.allocated_size))) {
2539 /* Revert index root from index allocation. */
2558 /* Revert index root from index allocation. */
2573 * Create space of @size bytes at position @pos inside the index block @idx.
2599 le32_to_cpu(idx->index.allocated_size) ||
2602 le32_to_cpu(idx->index.allocated_size))
2604 /* The - sizeof(INDEX_ENTRY_HEADER) is for the index terminator. */
2605 if ((char*)pos - (char*)&idx->index >
2606 (int)le32_to_cpu(idx->index.index_length)
2610 biu = le32_to_cpu(idx->index.index_length);
2612 if (biu + size > le32_to_cpu(idx->index.allocated_size))
2616 (char*)&idx->index));
2617 /* Update index block. */
2618 idx->index.index_length = cpu_to_le32(biu + size);
2759 * there is no matching index entry.
2855 /* SDH index entry */
2873 /* SII index entry */
2905 * initialize $Quota with the default quota index-entries.
2915 /* q index entry num 1 */
2942 /* q index entry num 2 */
3014 * the file with mft reference @file_ref into the index (allocation) block
3033 index_end = (char*)&idx->index + le32_to_cpu(idx->index.index_length);
3034 ie = (INDEX_ENTRY*)((char*)&idx->index +
3035 le32_to_cpu(idx->index.entries_offset));
3082 * matching index entry.
3149 * Then, insert an index entry with this file_name_attribute in the index
3232 /* Insert the index entry for file_name in @idx. */
3244 ntfs_log_error("create_hardlink failed inserting index entry: "
3265 * Then, insert an index entry with this file_name_attribute in the index
3266 * block @idx of the index allocation attribute of the parent directory.
3347 /* Insert the index entry for file_name in @idx. */
3350 ntfs_log_error("create_hardlink failed inserting index entry: %s\n",
3366 * Insert an index entry with the key @guid and data pointing to the mft record
3367 * @ref in the $O index root of the mft record @m (which must be the mft record
3380 * Insert the index entry for the object id in the index.
3382 * First determine the size of the index entry to be inserted. This
3383 * consists of the index entry header, followed by the index key, i.e.
3384 * the GUID, followed by the index data, i.e. OBJ_ID_INDEX_DATA.
3403 ntfs_log_error("index_obj_id_insert failed inserting index "
3834 * Set the index record size. By default this is 4096 but it has to be
3837 * FIXME: Should we make the index record size to be user specifiable?
3849 ntfs_log_debug("index record size = %u bytes\n",
4267 le32_to_cpu(idx->index.allocated_size);
4272 "syncing index block.\n");
4699 ntfs_log_debug("clusters per index block = %i (0x%x)\n",
4852 * $Extend index must be resident. Otherwise, w2k3 will regard the
5027 * Decide on the sector size, cluster size, mft record and index record
5072 ntfs_log_verbose("Syncing root directory index record.\n");