]>
Commit | Line | Data |
---|---|---|
1da177e4 | 1 | /* |
7b718769 NS |
2 | * Copyright (c) 2000-2001,2005 Silicon Graphics, Inc. |
3 | * All Rights Reserved. | |
1da177e4 | 4 | * |
7b718769 NS |
5 | * This program is free software; you can redistribute it and/or |
6 | * modify it under the terms of the GNU General Public License as | |
1da177e4 LT |
7 | * published by the Free Software Foundation. |
8 | * | |
7b718769 NS |
9 | * This program is distributed in the hope that it would be useful, |
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 | * GNU General Public License for more details. | |
1da177e4 | 13 | * |
7b718769 NS |
14 | * You should have received a copy of the GNU General Public License |
15 | * along with this program; if not, write the Free Software Foundation, | |
16 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | |
1da177e4 LT |
17 | */ |
18 | #ifndef __XFS_DIR2_H__ | |
57926640 | 19 | #define __XFS_DIR2_H__ |
1da177e4 | 20 | |
f6c2d1fa | 21 | struct xfs_bmap_free; |
57926640 | 22 | struct xfs_da_args; |
1da177e4 | 23 | struct xfs_inode; |
f6c2d1fa | 24 | struct xfs_mount; |
1da177e4 LT |
25 | struct xfs_trans; |
26 | ||
556b8b16 BN |
27 | extern struct xfs_name xfs_name_dotdot; |
28 | ||
1da177e4 | 29 | /* |
f6c2d1fa NS |
30 | * Generic directory interface routines |
31 | */ | |
32 | extern void xfs_dir_startup(void); | |
33 | extern void xfs_dir_mount(struct xfs_mount *mp); | |
34 | extern int xfs_dir_isempty(struct xfs_inode *dp); | |
35 | extern int xfs_dir_init(struct xfs_trans *tp, struct xfs_inode *dp, | |
36 | struct xfs_inode *pdp); | |
37 | extern int xfs_dir_createname(struct xfs_trans *tp, struct xfs_inode *dp, | |
556b8b16 | 38 | struct xfs_name *name, xfs_ino_t inum, |
f6c2d1fa NS |
39 | xfs_fsblock_t *first, |
40 | struct xfs_bmap_free *flist, xfs_extlen_t tot); | |
41 | extern int xfs_dir_lookup(struct xfs_trans *tp, struct xfs_inode *dp, | |
384f3ced BN |
42 | struct xfs_name *name, xfs_ino_t *inum, |
43 | struct xfs_name *ci_name); | |
f6c2d1fa | 44 | extern int xfs_dir_removename(struct xfs_trans *tp, struct xfs_inode *dp, |
556b8b16 | 45 | struct xfs_name *name, xfs_ino_t ino, |
f6c2d1fa NS |
46 | xfs_fsblock_t *first, |
47 | struct xfs_bmap_free *flist, xfs_extlen_t tot); | |
f6c2d1fa | 48 | extern int xfs_dir_replace(struct xfs_trans *tp, struct xfs_inode *dp, |
556b8b16 | 49 | struct xfs_name *name, xfs_ino_t inum, |
f6c2d1fa NS |
50 | xfs_fsblock_t *first, |
51 | struct xfs_bmap_free *flist, xfs_extlen_t tot); | |
52 | extern int xfs_dir_canenter(struct xfs_trans *tp, struct xfs_inode *dp, | |
556b8b16 | 53 | struct xfs_name *name, uint resblks); |
f6c2d1fa NS |
54 | |
55 | /* | |
57926640 | 56 | * Direct call from the bmap code, bypassing the generic directory layer. |
1da177e4 | 57 | */ |
57926640 | 58 | extern int xfs_dir2_sf_to_block(struct xfs_da_args *args); |
384f3ced | 59 | |
1da177e4 | 60 | #endif /* __XFS_DIR2_H__ */ |