2 * Copyright (c) 2000-2001,2005 Silicon Graphics, Inc.
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.
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.
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
20 * common types across directory formats
22 extern const field_t dir2_block_tail_flds
[];
23 extern const field_t dir2_data_free_flds
[];
24 extern const field_t dir2_data_union_flds
[];
25 extern const field_t dir2_leaf_tail_flds
[];
26 extern const field_t dir2_leaf_entry_flds
[];
28 extern const field_t da_node_entry_flds
[];
31 * dirv2 specific types
33 extern const field_t dir2_flds
[];
34 extern const field_t dir2_hfld
[];
35 extern const field_t dir2_data_hdr_flds
[];
36 extern const field_t dir2_free_hdr_flds
[];
37 extern const field_t dir2_leaf_hdr_flds
[];
39 extern const field_t da_blkinfo_flds
[];
40 extern const field_t da_node_hdr_flds
[];
43 * dirv3 specific types
45 extern const field_t dir3_flds
[];
46 extern const field_t dir3_hfld
[];
47 extern const field_t dir3_blkhdr_flds
[];
48 extern const field_t dir3_data_hdr_flds
[];
49 extern const field_t dir3_free_hdr_flds
[];
50 extern const field_t dir3_leaf_hdr_flds
[];
51 extern const field_t dir3_data_union_flds
[];
53 extern const field_t da3_blkinfo_flds
[];
54 extern const field_t da3_node_hdr_flds
[];
56 static inline uint8_t *xfs_dir2_sf_inumberp(xfs_dir2_sf_entry_t
*sfep
)
58 return &(sfep
)->name
[(sfep
)->namelen
];
61 extern int dir2_data_union_size(void *obj
, int startoff
, int idx
);
62 extern int dir2_size(void *obj
, int startoff
, int idx
);
64 extern const struct xfs_buf_ops xfs_dir3_db_buf_ops
;