Lines Matching defs:name
146 #define basename(name) name
520 static BOOL mkntfs_parse_long(const char *string, const char *name, long *num)
525 if (!string || !name || !num)
529 ntfs_log_error("You may only specify the %s once.\n", name);
535 ntfs_log_error("Cannot understand the %s '%s'.\n", name, string);
546 static BOOL mkntfs_parse_llong(const char *string, const char *name,
552 if (!string || !name || !num)
556 ntfs_log_error("You may only specify the %s once.\n", name);
562 ntfs_log_error("Cannot understand the %s '%s'.\n", name,
1146 * @name: attribute name to find (optional, i.e. NULL means don't care)
1147 * @name_len: attribute name length (only needed if @name present)
1148 * @ic: IGNORE_CASE or CASE_SENSITIVE (ignored if @name not present)
1157 * attribute of @type, optionally @name and @val. If found, ntfs_attr_find()
1183 * If @name is AT_UNNAMED search for an unnamed attribute. If @name is present
1184 * but not AT_UNNAMED search for a named attribute matching @name. Otherwise,
1187 * If @ic is IGNORE_CASE, the @name comparison is not case sensitive and
1191 * sensitive. When @name is present, @name_len is the @name length in Unicode
1194 * If @name is not present (NULL), we assume that the unnamed attribute is
1213 static int mkntfs_attr_find(const ATTR_TYPES type, const ntfschar *name,
1251 * If @name is AT_UNNAMED we want an unnamed attribute.
1252 * If @name is present, compare the two names.
1255 if (name == AT_UNNAMED) {
1261 } else if (name && !ntfs_names_are_equal(name, name_len,
1266 rc = ntfs_names_full_collate(name, name_len,
1272 * If @name collates before a->name, there is no
1282 rc = ntfs_names_full_collate(name, name_len,
1295 * The names match or @name not present and attribute is
1335 * @name: attribute name to find (optional, i.e. NULL means don't care)
1336 * @name_len: attribute name length (only needed if @name present)
1337 * @ic: IGNORE_CASE or CASE_SENSITIVE (ignored if @name not present)
1364 * If @name is AT_UNNAMED search for an unnamed attribute. If @name is present
1365 * but not AT_UNNAMED search for a named attribute matching @name. Otherwise,
1398 static int mkntfs_attr_lookup(const ATTR_TYPES type, const ntfschar *name,
1414 return mkntfs_attr_find(type, name, name_len, ic, val, val_len,
1430 const ATTR_TYPES type, const char *name, u32 name_len,
1448 uname = ntfs_str2ucs(name, &uname_len);
1620 const ATTR_TYPES type, const char *name, u32 name_len,
1639 uname = ntfs_str2ucs(name, &uname_len);
1810 const ATTR_TYPES type, const char *name, u32 name_len,
1826 uname = ntfs_str2ucs(name, &uname_len);
2145 static int add_attr_data(MFT_RECORD *m, const char *name, const u32 name_len,
2165 err = insert_non_resident_attr_in_mft_record(m, AT_DATA, name,
2169 err = insert_resident_attr_in_mft_record(m, AT_DATA, name,
2186 static int add_attr_data_positioned(MFT_RECORD *m, const char *name,
2193 err = insert_positioned_attr_in_mft_record(m, AT_DATA, name, name_len,
2204 * Create volume name attribute specifying the volume name @vol_name as a null
2207 * endian ntfschar string. The name is at least 1 character long (though
2266 static int add_attr_index_root(MFT_RECORD *m, const char *name,
2335 err = insert_resident_attr_in_mft_record(m, AT_INDEX_ROOT, name,
2349 static int add_attr_index_alloc(MFT_RECORD *m, const char *name,
2356 name, name_len, ic, const_cpu_to_le16(0),
2368 static int add_attr_bitmap(MFT_RECORD *m, const char *name, const u32 name_len,
2377 err = insert_non_resident_attr_in_mft_record(m, AT_BITMAP, name,
2381 err = insert_resident_attr_in_mft_record(m, AT_BITMAP, name,
2399 static int add_attr_bitmap_positioned(MFT_RECORD *m, const char *name,
2405 err = insert_positioned_attr_in_mft_record(m, AT_BITMAP, name, name_len,
2423 static int upgrade_to_large_index(MFT_RECORD *m, const char *name,
2438 uname = ntfs_str2ucs(name, &uname_len);
2475 err = add_attr_bitmap(m, name, name_len, ic, bmp, sizeof(bmp));
2553 err = add_attr_index_alloc(m, name, name_len, ic, (u8*)ia_val,
2704 MFT_RECORD *m, ntfschar *name, u32 name_size, ATTR_TYPES type)
2725 if (mkntfs_attr_lookup(AT_INDEX_ROOT, name, name_size,
3133 /* Create entry in place and copy file name attribute value. */
3224 ntfs_log_error("create_hardlink failed adding file name "
3246 /* FIXME: Remove the file name attribute from @m_file. */
3339 ntfs_log_error("create_hardlink failed adding file name attribute: "
3352 /* FIXME: Remove the file name attribute from @m_file. */
4230 ntfschar* name, u32 name_len)
4245 if (mkntfs_attr_lookup(AT_INDEX_ALLOCATION, name, name_len,
4517 /* There is exactly one file name so this is ok. */
4994 ntfs_log_perror("Could not copy volume name");