Home
last modified time | relevance | path

Searched refs:fnode (Results 1 – 11 of 11) sorted by relevance

/fs/hpfs/
Dea.c74 int hpfs_read_ea(struct super_block *s, struct fnode *fnode, char *key, in hpfs_read_ea() argument
82 struct extended_attribute *ea_end = fnode_end_ea(fnode); in hpfs_read_ea()
83 for (ea = fnode_ea(fnode); ea < ea_end; ea = next_ea(ea)) in hpfs_read_ea()
93 a = le32_to_cpu(fnode->ea_secno); in hpfs_read_ea()
94 len = le32_to_cpu(fnode->ea_size_l); in hpfs_read_ea()
95 ano = fnode_in_anode(fnode); in hpfs_read_ea()
130 char *hpfs_get_ea(struct super_block *s, struct fnode *fnode, char *key, int *size) in hpfs_get_ea() argument
137 struct extended_attribute *ea_end = fnode_end_ea(fnode); in hpfs_get_ea()
138 for (ea = fnode_ea(fnode); ea < ea_end; ea = next_ea(ea)) in hpfs_get_ea()
150 a = le32_to_cpu(fnode->ea_secno); in hpfs_get_ea()
[all …]
Dnamei.c30 struct fnode *fnode; in hpfs_mkdir() local
41 fnode = hpfs_alloc_fnode(dir->i_sb, hpfs_i(dir)->i_dno, &fno, &bh); in hpfs_mkdir()
42 if (!fnode) in hpfs_mkdir()
52 dee.fnode = cpu_to_le32(fno); in hpfs_mkdir()
82 fnode->len = len; in hpfs_mkdir()
83 memcpy(fnode->name, name, len > 15 ? 15 : len); in hpfs_mkdir()
84 fnode->up = cpu_to_le32(dir->i_ino); in hpfs_mkdir()
85 fnode->flags |= FNODE_dir; in hpfs_mkdir()
86 fnode->btree.n_free_nodes = 7; in hpfs_mkdir()
87 fnode->btree.n_used_nodes = 1; in hpfs_mkdir()
[all …]
Dmap.c164 struct fnode *hpfs_map_fnode(struct super_block *s, ino_t ino, struct buffer_head **bhp) in hpfs_map_fnode()
166 struct fnode *fnode; in hpfs_map_fnode() local
170 if ((fnode = hpfs_map_sector(s, ino, bhp, FNODE_RD_AHEAD))) { in hpfs_map_fnode()
174 if (le32_to_cpu(fnode->magic) != FNODE_MAGIC) { in hpfs_map_fnode()
179 if (!fnode_is_dir(fnode)) { in hpfs_map_fnode()
180 if ((unsigned)fnode->btree.n_used_nodes + (unsigned)fnode->btree.n_free_nodes != in hpfs_map_fnode()
181 (bp_internal(&fnode->btree) ? 12 : 8)) { in hpfs_map_fnode()
187 if (le16_to_cpu(fnode->btree.first_free) != in hpfs_map_fnode()
188 8 + fnode->btree.n_used_nodes * (bp_internal(&fnode->btree) ? 8 : 12)) { in hpfs_map_fnode()
195 if (le16_to_cpu(fnode->ea_size_s) && (le16_to_cpu(fnode->ea_offs) < 0xc4 || in hpfs_map_fnode()
[all …]
Dinode.c47 struct fnode *fnode; in hpfs_read_inode() local
53 if (!(fnode = hpfs_map_fnode(sb, i->i_ino, &bh))) { in hpfs_read_inode()
63 if ((ea = hpfs_get_ea(i->i_sb, fnode, "UID", &ea_size))) { in hpfs_read_inode()
70 if ((ea = hpfs_get_ea(i->i_sb, fnode, "GID", &ea_size))) { in hpfs_read_inode()
77 if ((ea = hpfs_get_ea(i->i_sb, fnode, "SYMLINK", &ea_size))) { in hpfs_read_inode()
89 if ((ea = hpfs_get_ea(i->i_sb, fnode, "MODE", &ea_size))) { in hpfs_read_inode()
99 if ((ea = hpfs_get_ea(i->i_sb, fnode, "DEV", &ea_size))) { in hpfs_read_inode()
116 if (fnode_is_dir(fnode)) { in hpfs_read_inode()
121 hpfs_inode->i_parent_dir = le32_to_cpu(fnode->up); in hpfs_read_inode()
122 hpfs_inode->i_dno = le32_to_cpu(fnode->u.external[0].disk_secno); in hpfs_read_inode()
[all …]
Dhpfs_fn.h135 static inline struct extended_attribute *fnode_ea(struct fnode *fnode) in fnode_ea() argument
137 …return (struct extended_attribute *)((char *)fnode + le16_to_cpu(fnode->ea_offs) + le16_to_cpu(fno… in fnode_ea()
140 static inline struct extended_attribute *fnode_end_ea(struct fnode *fnode) in fnode_end_ea() argument
142 …t extended_attribute *)((char *)fnode + le16_to_cpu(fnode->ea_offs) + le16_to_cpu(fnode->acl_size_… in fnode_end_ea()
207 struct fnode *hpfs_alloc_fnode(struct super_block *, secno, fnode_secno *, struct buffer_head **);
259 struct hpfs_dirent *map_fnode_dirent(struct super_block *, fnode_secno, struct fnode *, struct quad…
264 int hpfs_read_ea(struct super_block *, struct fnode *, char *, char *, int);
265 char *hpfs_get_ea(struct super_block *, struct fnode *, char *, int *);
266 void hpfs_set_ea(struct inode *, struct fnode *, const char *,
295 struct fnode *hpfs_map_fnode(struct super_block *s, ino_t, struct buffer_head **);
Danode.c65 struct fnode *fnode; in hpfs_add_sector_to_btree() local
73 if (!(fnode = hpfs_map_fnode(s, node, &bh))) return -1; in hpfs_add_sector_to_btree()
74 btree = &fnode->btree; in hpfs_add_sector_to_btree()
173 if (!(fnode = hpfs_map_fnode(s, up, &bh))) return -1; in hpfs_add_sector_to_btree()
174 btree = &fnode->btree; in hpfs_add_sector_to_btree()
234 if (!(fnode = hpfs_map_fnode(s, node, &bh))) { in hpfs_add_sector_to_btree()
238 btree = &fnode->btree; in hpfs_add_sector_to_btree()
401 struct fnode *fnode; in hpfs_truncate_btree() local
409 if (!(fnode = hpfs_map_fnode(s, f, &bh))) return; in hpfs_truncate_btree()
410 btree = &fnode->btree; in hpfs_truncate_btree()
[all …]
Dfile.c43 struct fnode *fnode; in hpfs_bmap() local
51 if (!(fnode = hpfs_map_fnode(inode->i_sb, inode->i_ino, &bh))) return 0; in hpfs_bmap()
52 disk_secno = hpfs_bplus_lookup(inode->i_sb, inode, &fnode->btree, file_secno, bh); in hpfs_bmap()
Dhpfs.h350 __le32 fnode; /* fnode giving allocation info */ member
437 struct fnode struct
476 static inline bool fnode_in_anode(struct fnode *p) in fnode_in_anode()
481 static inline bool fnode_is_dir(struct fnode *p) in fnode_is_dir()
Ddnode.c250 struct fnode *fnode; in hpfs_add_to_dnode() local
353 if (!(fnode = hpfs_map_fnode(i->i_sb, le32_to_cpu(d->up), &bh))) { in hpfs_add_to_dnode()
362 fnode->u.external[0].disk_secno = cpu_to_le32(rdno); in hpfs_add_to_dnode()
546 struct fnode *fnode; in delete_empty_dnode() local
564 if ((fnode = hpfs_map_fnode(i->i_sb, up, &bh))) { in delete_empty_dnode()
565 fnode->u.external[0].disk_secno = cpu_to_le32(down); in delete_empty_dnode()
999 struct fnode *f, struct quad_buffer_head *qbh) in map_fnode_dirent()
1006 struct fnode *upf; in map_fnode_dirent()
1057 if (le32_to_cpu(de->fnode) == fno) { in map_fnode_dirent()
1073 if (le32_to_cpu(de->fnode) == fno) { in map_fnode_dirent()
Ddir.c91 struct fnode *fno; in hpfs_readdir()
173 if (!dir_emit(ctx, tempname, de->namelen, le32_to_cpu(de->fnode), DT_UNKNOWN)) { in hpfs_readdir()
238 ino = le32_to_cpu(de->fnode); in hpfs_lookup()
Dalloc.c454 struct fnode *hpfs_alloc_fnode(struct super_block *s, secno near, fnode_secno *fno, in hpfs_alloc_fnode()
457 struct fnode *f; in hpfs_alloc_fnode()