Lines Matching refs:index

1911 			ntfs_log_error("add_attr_index_root: index block size is not "
1920 ntfs_log_error("add_attr_index_root: index block size is not "
1926 ntfs_log_error("add_attr_index_root: index block size "
1935 r->index.entries_offset = const_cpu_to_le32(sizeof(INDEX_HEADER));
1936 r->index.index_length = const_cpu_to_le32(sizeof(INDEX_HEADER) +
1938 r->index.allocated_size = r->index.index_length;
1939 r->index.flags = SMALL_INDEX;
1940 memset(&r->index.reserved, 0, sizeof(r->index.reserved));
1941 e = (INDEX_ENTRY_HEADER*)((u8*)&r->index +
1942 le32_to_cpu(r->index.entries_offset));
1944 * No matter whether this is a file index or a view as this is a
2032 * Create bitmap and index allocation attributes, modify index root
2033 * attribute accordingly and move all of the index entries from the index root
2034 * into the index allocation.
2057 /* Find the index root attribute. */
2084 re_start = (char*)&r->index + le32_to_cpu(r->index.entries_offset);
2106 ntfs_log_error("Sector size is bigger than index block size. "
2118 ia_val->index.flags = LEAF_NODE;
2120 ia_val->index.entries_offset = cpu_to_le32((sizeof(INDEX_HEADER) +
2122 ia_val->index.allocated_size = cpu_to_le32(index_block_size -
2124 /* Find the last entry in the index root and save it in re. */
2126 /* Next entry in index root. */
2131 memcpy((char*)&ia_val->index +
2132 le32_to_cpu(ia_val->index.entries_offset), re_start, i);
2133 /* Finish setting up index allocation. */
2134 ia_val->index.index_length = cpu_to_le32(i +
2135 le32_to_cpu(ia_val->index.entries_offset));
2141 /* Now fixup empty index root with pointer to index allocation VCN 0. */
2142 r->index.flags = LARGE_INDEX;
2146 r->index.index_length = cpu_to_le32(le32_to_cpu(r->index.entries_offset)
2148 r->index.allocated_size = r->index.index_length;
2149 /* Resize index root attribute. */
2152 le32_to_cpu(r->index.allocated_size))) {
2154 /* Revert index root from index allocation. */
2172 /* Revert index root from index allocation. */
2187 * Create space of @size bytes at position @pos inside the index block @idx.
2213 le32_to_cpu(idx->index.allocated_size) ||
2216 le32_to_cpu(idx->index.allocated_size))
2218 /* The - sizeof(INDEX_ENTRY_HEADER) is for the index terminator. */
2219 if ((char*)pos - (char*)&idx->index >
2220 (int)le32_to_cpu(idx->index.index_length)
2224 biu = le32_to_cpu(idx->index.index_length);
2226 if (biu + size > le32_to_cpu(idx->index.allocated_size))
2230 (char*)&idx->index));
2231 /* Update index block. */
2232 idx->index.index_length = cpu_to_le32(biu + size);
2367 * there is no matching index entry.
2457 /* SDH index entry */
2475 /* SII index entry */
2507 * initialize $Quota with the default quota index-entries.
2517 /* q index entry num 1 */
2544 /* q index entry num 2 */
2616 * the file with mft reference @file_ref into the index (allocation) block
2635 index_end = (char*)&idx->index + le32_to_cpu(idx->index.index_length);
2636 ie = (INDEX_ENTRY*)((char*)&idx->index +
2637 le32_to_cpu(idx->index.entries_offset));
2679 * matching index entry.
2741 * Then, insert an index entry with this file_name_attribute in the index
2824 /* Insert the index entry for file_name in @idx. */
2836 ntfs_log_error("create_hardlink failed inserting index entry: "
2857 * Then, insert an index entry with this file_name_attribute in the index
2858 * block @idx of the index allocation attribute of the parent directory.
2936 /* Insert the index entry for file_name in @idx. */
2939 ntfs_log_error("create_hardlink failed inserting index entry: %s\n",
2957 * Insert an index entry with the key @guid and data pointing to the mft record
2958 * @ref in the $O index root of the mft record @m (which must be the mft record
2971 * Insert the index entry for the object id in the index.
2973 * First determine the size of the index entry to be inserted. This
2974 * consists of the index entry header, followed by the index key, i.e.
2975 * the GUID, followed by the index data, i.e. OBJ_ID_INDEX_DATA.
2993 ntfs_log_error("index_obj_id_insert failed inserting index "
3413 * Set the index record size. By default this is 4096 but it has to be
3416 * FIXME: Should we make the index record size to be user specifiable?
3428 ntfs_log_debug("index record size = %u bytes\n",
3850 le32_to_cpu(idx->index.allocated_size);
3855 "syncing index block.\n");
4282 ntfs_log_debug("clusters per index block = %i (0x%x)\n",
4421 * $Extend index must be resident. Otherwise, w2k3 will regard the
4587 * Decide on the sector size, cluster size, mft record and index record
4632 ntfs_log_verbose("Syncing root directory index record.\n");