]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blob - repair/dir2.h
mkfs: more sunit/swidth sanity checking
[thirdparty/xfsprogs-dev.git] / repair / dir2.h
1 /*
2 * Copyright (c) 2000-2001,2005 Silicon Graphics, Inc.
3 * All Rights Reserved.
4 *
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
7 * published by the Free Software Foundation.
8 *
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.
13 *
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
17 */
18
19 #ifndef _XR_DIR2_H
20 #define _XR_DIR2_H
21
22 struct blkmap;
23 struct bmap_ext;
24
25 int
26 process_dir2(
27 xfs_mount_t *mp,
28 xfs_ino_t ino,
29 xfs_dinode_t *dip,
30 int ino_discovery,
31 int *dirty,
32 char *dirname,
33 xfs_ino_t *parent,
34 struct blkmap *blkmap);
35
36 void
37 process_sf_dir2_fixi8(
38 struct xfs_mount *mp,
39 struct xfs_dir2_sf_hdr *sfp,
40 xfs_dir2_sf_entry_t **next_sfep);
41
42 int
43 dir2_is_badino(
44 xfs_ino_t ino);
45
46 #endif /* _XR_DIR2_H */