Lines Matching refs:resident
524 * @val: attribute value to find (optional, resident attributes only)
558 * Finally, the resident attribute value @val is looked for, if present. If
565 * use ntfs_attr_find() to search for extent records of non-resident
573 * non-resident as this most likely will result in a crash!
679 a->data.resident.value_offset),
681 a->data.resident.value_length)));
690 a->data.resident.value_length);
823 * @lowest_vcn: lowest vcn to find (optional, non-resident attributes only)
824 * @val: attribute value to find (optional, resident attributes only)
1082 a->data.resident.value_length) == val_len &&
1084 le16_to_cpu(a->data.resident.value_offset),
1164 * @lowest_vcn: lowest vcn to find (optional, non-resident attributes only)
1165 * @val: attribute value to find (optional, resident attributes only)
1378 * ntfs_attr_can_be_non_resident - check if an attribute can be non-resident
1383 * be non-resident. This information is obtained from $AttrDef system file.
1385 * Return 0 if the attribute is allowed to be non-resident, -EPERM if not, and
1403 * ntfs_attr_can_be_resident - check if an attribute can be resident
1408 * be resident. This information is derived from our ntfs knowledge and may
1410 * present. Basically we allow everything to be resident except for index
1413 * Return 0 if the attribute is allowed to be non-resident and -EPERM if not.
1415 * Warning: In the system file $MFT the attribute $Bitmap must be non-resident
1433 * Resize the attribute record @a, i.e. the resident part of the attribute, in
1472 * ntfs_resident_attr_value_resize - resize the value of a resident attribute
1494 /* Resize the resident part of the attribute record. */
1496 le16_to_cpu(a->data.resident.value_offset) + new_size))
1502 old_size = le32_to_cpu(a->data.resident.value_length);
1504 memset((u8*)a + le16_to_cpu(a->data.resident.value_offset) +
1507 a->data.resident.value_length = cpu_to_le32(new_size);
1512 * ntfs_attr_make_non_resident - convert a resident to a non-resident attribute
1514 * @data_size: size of the resident data to copy to the non-resident attribute
1516 * Convert the resident ntfs attribute described by the ntfs inode @ni to a
1517 * non-resident one.
1527 * -EPERM - The attribute is not allowed to be non-resident.
1537 * again in case the attribute may then fit in a resident state so no need to
1538 * make it non-resident at all? Ho-hum... (AIA)
1541 * a resident to a non-resident attribute.
1562 /* Check that the attribute is allowed to be non-resident. */
1567 "non-resident.");
1658 * Determine the size of the resident part of the now non-resident
1666 attr_size = le32_to_cpu(a->data.resident.value_length);
1671 le16_to_cpu(a->data.resident.value_offset),
1679 old_res_attr_flags = a->data.resident.flags;
1680 /* Resize the resident part of the attribute record. */
1685 * Convert the resident part of the attribute record to describe a
1686 * non-resident attribute.
1694 /* Setup the fields specific to non-resident attributes. */
1721 /* Setup the in-memory attribute structure to be non-resident. */
1766 /* Convert the attribute back into a resident attribute. */
1769 name_ofs = (offsetof(ATTR_RECORD, data.resident.reserved) +
1770 sizeof(a->data.resident.reserved) + 7) & ~7;
1777 /* Resize the resident part of the attribute record. */
1786 * allocated size is much bigger than the resident value size.
1792 ntfs_error(vol->sb, "Failed to undo partial resident "
1793 "to non-resident attribute "
1810 /* Setup the fields specific to resident attributes. */
1811 a->data.resident.value_length = cpu_to_le32(attr_size);
1812 a->data.resident.value_offset = cpu_to_le16(mp_ofs);
1813 a->data.resident.flags = old_res_attr_flags;
1814 memset(&a->data.resident.reserved, 0,
1815 sizeof(a->data.resident.reserved));
1877 * For resident attributes this involves resizing the attribute record and if
1879 * converting the attribute to a non-resident attribute which in turn involves
1880 * extending the allocation of a non-resident attribute as described below.
1882 * For non-resident attributes this involves allocating clusters in the data
1907 * from resident to non-resident safely.
1947 * For non-resident attributes, @start and @new_size need to be aligned
1998 * We will be modifying both the runlist (if non-resident) and the mft
2018 * If non-resident, seek to the last extent. If resident, there is
2025 * just converted the attribute from resident to non-resident it is
2054 attr_len = le32_to_cpu(a->data.resident.value_length);
2062 le16_to_cpu(a->data.resident.value_offset) +
2067 le16_to_cpu(a->data.resident.value_offset);
2071 a->data.resident.value_length =
2089 * non-resident and if successful restart the extension process.
2095 * Could not make non-resident. If this is due to this not being
2097 * try to make other attributes non-resident. Otherwise fail.
2107 "because the conversion from resident "
2108 "to non-resident attribute failed "
2122 "record/on disk for the non-resident "
2127 "non-resident. This case is not "
2133 // TODO: Attempt to make other attributes non-resident.
2300 // other attributes non-resident and/or by moving other