1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18#ifndef __XFS_DIR2_H__
19#define __XFS_DIR2_H__
20
21struct xfs_bmap_free;
22struct xfs_da_args;
23struct xfs_inode;
24struct xfs_mount;
25struct xfs_trans;
26
27extern struct xfs_name xfs_name_dotdot;
28
29
30
31
32extern void xfs_dir_startup(void);
33extern void xfs_dir_mount(struct xfs_mount *mp);
34extern int xfs_dir_isempty(struct xfs_inode *dp);
35extern int xfs_dir_init(struct xfs_trans *tp, struct xfs_inode *dp,
36 struct xfs_inode *pdp);
37extern int xfs_dir_createname(struct xfs_trans *tp, struct xfs_inode *dp,
38 struct xfs_name *name, xfs_ino_t inum,
39 xfs_fsblock_t *first,
40 struct xfs_bmap_free *flist, xfs_extlen_t tot);
41extern int xfs_dir_lookup(struct xfs_trans *tp, struct xfs_inode *dp,
42 struct xfs_name *name, xfs_ino_t *inum,
43 struct xfs_name *ci_name);
44extern int xfs_dir_removename(struct xfs_trans *tp, struct xfs_inode *dp,
45 struct xfs_name *name, xfs_ino_t ino,
46 xfs_fsblock_t *first,
47 struct xfs_bmap_free *flist, xfs_extlen_t tot);
48extern int xfs_dir_replace(struct xfs_trans *tp, struct xfs_inode *dp,
49 struct xfs_name *name, xfs_ino_t inum,
50 xfs_fsblock_t *first,
51 struct xfs_bmap_free *flist, xfs_extlen_t tot);
52extern int xfs_dir_canenter(struct xfs_trans *tp, struct xfs_inode *dp,
53 struct xfs_name *name, uint resblks);
54
55
56
57
58extern int xfs_dir2_sf_to_block(struct xfs_da_args *args);
59
60#endif
61