/fs/hpfs/ |
D | ea.c | 19 struct extended_attribute *ea = (struct extended_attribute *)ex; in hpfs_ea_ext_remove() local 26 if (ea_indirect(ea)) { in hpfs_ea_ext_remove() 27 if (ea_valuelen(ea) != 8) { in hpfs_ea_ext_remove() 32 if (hpfs_ea_read(s, a, ano, pos + 4, ea->namelen + 9, ex+4)) in hpfs_ea_ext_remove() 34 hpfs_ea_remove(s, ea_sec(ea), ea_in_anode(ea), ea_len(ea)); in hpfs_ea_ext_remove() 36 pos += ea->namelen + ea_valuelen(ea) + 5; in hpfs_ea_ext_remove() 80 struct extended_attribute *ea; in hpfs_read_ea() local 82 for (ea = fnode_ea(fnode); ea < ea_end; ea = next_ea(ea)) in hpfs_read_ea() 83 if (!strcmp(ea->name, key)) { in hpfs_read_ea() 84 if (ea_indirect(ea)) in hpfs_read_ea() [all …]
|
D | inode.c | 49 void *ea; in hpfs_read_inode() local 62 if ((ea = hpfs_get_ea(i->i_sb, fnode, "UID", &ea_size))) { in hpfs_read_inode() 64 i_uid_write(i, le16_to_cpu(*(__le16*)ea)); in hpfs_read_inode() 67 kfree(ea); in hpfs_read_inode() 69 if ((ea = hpfs_get_ea(i->i_sb, fnode, "GID", &ea_size))) { in hpfs_read_inode() 71 i_gid_write(i, le16_to_cpu(*(__le16*)ea)); in hpfs_read_inode() 74 kfree(ea); in hpfs_read_inode() 76 if ((ea = hpfs_get_ea(i->i_sb, fnode, "SYMLINK", &ea_size))) { in hpfs_read_inode() 77 kfree(ea); in hpfs_read_inode() 88 if ((ea = hpfs_get_ea(i->i_sb, fnode, "MODE", &ea_size))) { in hpfs_read_inode() [all …]
|
D | hpfs_fn.h | 145 static unsigned ea_valuelen(struct extended_attribute *ea) in ea_valuelen() argument 147 return ea->valuelen_lo + 256 * ea->valuelen_hi; in ea_valuelen() 150 static inline struct extended_attribute *next_ea(struct extended_attribute *ea) in next_ea() argument 152 return (struct extended_attribute *)((char *)ea + 5 + ea->namelen + ea_valuelen(ea)); in next_ea() 155 static inline secno ea_sec(struct extended_attribute *ea) in ea_sec() argument 157 return le32_to_cpu(get_unaligned((__le32 *)((char *)ea + 9 + ea->namelen))); in ea_sec() 160 static inline secno ea_len(struct extended_attribute *ea) in ea_len() argument 162 return le32_to_cpu(get_unaligned((__le32 *)((char *)ea + 5 + ea->namelen))); in ea_len() 165 static inline char *ea_data(struct extended_attribute *ea) in ea_data() argument 167 return (char *)((char *)ea + 5 + ea->namelen); in ea_data()
|
D | map.c | 171 struct extended_attribute *ea; in hpfs_map_fnode() local 202 ea = fnode_ea(fnode); in hpfs_map_fnode() 204 while (ea != ea_end) { in hpfs_map_fnode() 205 if (ea > ea_end) { in hpfs_map_fnode() 210 ea = next_ea(ea); in hpfs_map_fnode()
|
D | hpfs.h | 469 u8 ea[316]; /* zero or more EA's, packed together member 545 static inline bool ea_indirect(struct extended_attribute *ea) in ea_indirect() argument 547 return ea->flags & EA_indirect; in ea_indirect() 550 static inline bool ea_in_anode(struct extended_attribute *ea) in ea_in_anode() argument 552 return ea->flags & EA_anode; in ea_in_anode()
|
D | anode.c | 484 struct extended_attribute *ea; in hpfs_remove_fnode() local 490 for (ea = fnode_ea(fnode); ea < ea_end; ea = next_ea(ea)) in hpfs_remove_fnode() 491 if (ea_indirect(ea)) in hpfs_remove_fnode() 492 hpfs_ea_remove(s, ea_sec(ea), ea_in_anode(ea), ea_len(ea)); in hpfs_remove_fnode()
|
D | Makefile | 7 hpfs-objs := alloc.o anode.o buffer.o dentry.o dir.o dnode.o ea.o file.o \
|
/fs/gfs2/ |
D | xattr.h | 16 #define GFS2_EA_REC_LEN(ea) be32_to_cpu((ea)->ea_rec_len) argument 17 #define GFS2_EA_DATA_LEN(ea) be32_to_cpu((ea)->ea_data_len) argument 19 #define GFS2_EA_SIZE(ea) \ argument 20 ALIGN(sizeof(struct gfs2_ea_header) + (ea)->ea_name_len + \ 21 ((GFS2_EA_IS_STUFFED(ea)) ? GFS2_EA_DATA_LEN(ea) : \ 22 (sizeof(__be64) * (ea)->ea_num_ptrs)), 8) 24 #define GFS2_EA_IS_STUFFED(ea) (!(ea)->ea_num_ptrs) argument 25 #define GFS2_EA_IS_LAST(ea) ((ea)->ea_flags & GFS2_EAFLAG_LAST) argument 30 #define GFS2_EA2NAME(ea) ((char *)((struct gfs2_ea_header *)(ea) + 1)) argument 31 #define GFS2_EA2DATA(ea) (GFS2_EA2NAME(ea) + (ea)->ea_name_len) argument [all …]
|
D | xattr.c | 76 struct gfs2_ea_header *ea, 82 struct gfs2_ea_header *ea, *prev = NULL; in ea_foreach_i() local 88 for (ea = GFS2_EA_BH2FIRST(bh);; prev = ea, ea = GFS2_EA2NEXT(ea)) { in ea_foreach_i() 89 if (!GFS2_EA_REC_LEN(ea)) in ea_foreach_i() 91 if (!(bh->b_data <= (char *)ea && (char *)GFS2_EA2NEXT(ea) <= in ea_foreach_i() 94 if (!GFS2_EATYPE_VALID(ea->ea_type)) in ea_foreach_i() 97 error = ea_call(ip, bh, ea, prev, data); in ea_foreach_i() 101 if (GFS2_EA_IS_LAST(ea)) { in ea_foreach_i() 102 if ((char *)GFS2_EA2NEXT(ea) != in ea_foreach_i() 167 struct gfs2_ea_header *ea, struct gfs2_ea_header *prev, in ea_find_i() argument [all …]
|
D | inode.c | 436 struct gfs2_ea_header *ea; in gfs2_init_xattr() local 443 ea = GFS2_EA_BH2FIRST(bh); in gfs2_init_xattr() 444 ea->ea_rec_len = cpu_to_be32(sdp->sd_jbsize); in gfs2_init_xattr() 445 ea->ea_type = GFS2_EATYPE_UNUSED; in gfs2_init_xattr() 446 ea->ea_flags = GFS2_EAFLAG_LAST; in gfs2_init_xattr()
|
/fs/jfs/ |
D | xattr.c | 108 static inline int name_size(struct jfs_ea *ea) in name_size() argument 110 if (is_known_namespace(ea->name)) in name_size() 111 return ea->namelen; in name_size() 113 return ea->namelen + XATTR_OS2_PREFIX_LEN; in name_size() 116 static inline int copy_name(char *buffer, struct jfs_ea *ea) in copy_name() argument 118 int len = ea->namelen; in copy_name() 120 if (!is_known_namespace(ea->name)) { in copy_name() 125 memcpy(buffer, ea->name, ea->namelen); in copy_name() 126 buffer[ea->namelen] = 0; in copy_name() 157 int size, dxd_t * ea) in ea_write_inline() argument [all …]
|
D | jfs_xattr.h | 38 struct jfs_ea ea[0]; /* Variable length list */ member 48 #define EA_SIZE(ea) \ argument 49 (sizeof (struct jfs_ea) + (ea)->namelen + 1 + \ 50 le16_to_cpu((ea)->valuelen)) 51 #define NEXT_EA(ea) ((struct jfs_ea *) (((char *) (ea)) + (EA_SIZE (ea)))) argument 52 #define FIRST_EA(ealist) ((ealist)->ea)
|
D | namei.c | 51 dxd_t *ea = &JFS_IP(inode)->ea; in free_ea_wmap() local 53 if (ea->flag & DXD_EXTENT) { in free_ea_wmap() 55 invalidate_dxd_metapages(inode, *ea); in free_ea_wmap() 56 dbFree(inode, addressDXD(ea), lengthDXD(ea)); in free_ea_wmap() 58 ea->flag = 0; in free_ea_wmap() 416 if (JFS_IP(ip)->ea.flag & DXD_EXTENT) { in jfs_rmdir() 418 txEA(tid, ip, &JFS_IP(ip)->ea, NULL); in jfs_rmdir() 420 JFS_IP(ip)->ea.flag = 0; in jfs_rmdir() 670 if (JFS_IP(ip)->ea.flag & DXD_EXTENT) in commitZeroLink() 672 txEA(tid, ip, &JFS_IP(ip)->ea, NULL); in commitZeroLink() [all …]
|
D | jfs_inode.c | 142 memset(&jfs_inode->ea, 0, sizeof(dxd_t)); in ialloc()
|
D | jfs_incore.h | 45 dxd_t ea; /* dxd describing ea */ member
|
D | jfs_imap.c | 3095 jfs_ip->ea = dip->di_ea; in copy_from_dinode() 3170 dip->di_ea = jfs_ip->ea; in copy_to_dinode()
|
/fs/udf/ |
D | misc.c | 50 uint8_t *ea = NULL, *ad = NULL; in udf_add_extendedattr() local 55 ea = iinfo->i_ext.i_data; in udf_add_extendedattr() 59 ad = ea; in udf_add_extendedattr() 70 eahd = (struct extendedAttrHeaderDesc *)ea; in udf_add_extendedattr() 107 memmove(&ea[offset - aal + size], in udf_add_extendedattr() 108 &ea[aal], offset - aal); in udf_add_extendedattr() 117 memmove(&ea[offset - ial + size], in udf_add_extendedattr() 118 &ea[ial], offset - ial); in udf_add_extendedattr() 128 memmove(&ea[offset - aal + size], in udf_add_extendedattr() 129 &ea[aal], offset - aal); in udf_add_extendedattr() [all …]
|
D | namei.c | 914 uint8_t *ea; in udf_symlink() local 966 ea = epos.bh->b_data + udf_ext0_offset(inode); in udf_symlink() 968 ea = iinfo->i_ext.i_data + iinfo->i_lenEAttr; in udf_symlink() 971 pc = (struct pathComponent *)ea; in udf_symlink() 990 pc = (struct pathComponent *)(ea + elen); in udf_symlink()
|
/fs/ntfs/ |
D | layout.h | 1089 } __attribute__ ((__packed__)) ea; member
|