makefs.h (fe41c64b577251fd1df89aa6c722a877b88b402b) makefs.h (240afd8c1fcc8c5f29dbd4ff0c915795d414405d)
1/* $NetBSD: makefs.h,v 1.20 2008/12/28 21:51:46 christos Exp $ */
2
3/*-
4 * SPDX-License-Identifier: BSD-4-Clause
5 *
6 * Copyright (c) 2001 Wasabi Systems, Inc.
7 * All rights reserved.
8 *

--- 64 unchanged lines hidden (view full) ---

73 * must be "." when the tree has been built; during build it may
74 * not be if "." hasn't yet been found by readdir(2).
75 */
76
77enum fi_flags {
78 FI_SIZED = 1<<0, /* inode sized */
79 FI_ALLOCATED = 1<<1, /* fsinode->ino allocated */
80 FI_WRITTEN = 1<<2, /* inode written */
1/* $NetBSD: makefs.h,v 1.20 2008/12/28 21:51:46 christos Exp $ */
2
3/*-
4 * SPDX-License-Identifier: BSD-4-Clause
5 *
6 * Copyright (c) 2001 Wasabi Systems, Inc.
7 * All rights reserved.
8 *

--- 64 unchanged lines hidden (view full) ---

73 * must be "." when the tree has been built; during build it may
74 * not be if "." hasn't yet been found by readdir(2).
75 */
76
77enum fi_flags {
78 FI_SIZED = 1<<0, /* inode sized */
79 FI_ALLOCATED = 1<<1, /* fsinode->ino allocated */
80 FI_WRITTEN = 1<<2, /* inode written */
81 FI_ROOT = 1<<3, /* root of a ZFS dataset */
81};
82
83typedef struct {
84 uint32_t ino; /* inode number used on target fs */
85 uint32_t nlink; /* number of links to this entry */
86 enum fi_flags flags; /* flags used by fs specific code */
82};
83
84typedef struct {
85 uint32_t ino; /* inode number used on target fs */
86 uint32_t nlink; /* number of links to this entry */
87 enum fi_flags flags; /* flags used by fs specific code */
88 void *param; /* for use by individual fs impls */
87 struct stat st; /* stat entry */
88} fsinode;
89
90typedef struct _fsnode {
91 struct _fsnode *parent; /* parent (NULL if root) */
92 struct _fsnode *child; /* child (if type == S_IFDIR) */
93 struct _fsnode *next; /* next */
94 struct _fsnode *first; /* first node of current level (".") */

--- 86 unchanged lines hidden (view full) ---

181void fs ## _prep_opts(fsinfo_t *); \
182int fs ## _parse_opts(const char *, fsinfo_t *); \
183void fs ## _cleanup_opts(fsinfo_t *); \
184void fs ## _makefs(const char *, const char *, fsnode *, fsinfo_t *)
185
186DECLARE_FUN(cd9660);
187DECLARE_FUN(ffs);
188DECLARE_FUN(msdos);
89 struct stat st; /* stat entry */
90} fsinode;
91
92typedef struct _fsnode {
93 struct _fsnode *parent; /* parent (NULL if root) */
94 struct _fsnode *child; /* child (if type == S_IFDIR) */
95 struct _fsnode *next; /* next */
96 struct _fsnode *first; /* first node of current level (".") */

--- 86 unchanged lines hidden (view full) ---

183void fs ## _prep_opts(fsinfo_t *); \
184int fs ## _parse_opts(const char *, fsinfo_t *); \
185void fs ## _cleanup_opts(fsinfo_t *); \
186void fs ## _makefs(const char *, const char *, fsnode *, fsinfo_t *)
187
188DECLARE_FUN(cd9660);
189DECLARE_FUN(ffs);
190DECLARE_FUN(msdos);
191#ifdef HAVE_ZFS
192DECLARE_FUN(zfs);
193#endif
189
190extern u_int debug;
191extern int dupsok;
192extern struct timespec start_time;
193extern struct stat stampst;
194
195/*
196 * If -x is specified, we want to exclude nodes which do not appear

--- 110 unchanged lines hidden ---
194
195extern u_int debug;
196extern int dupsok;
197extern struct timespec start_time;
198extern struct stat stampst;
199
200/*
201 * If -x is specified, we want to exclude nodes which do not appear

--- 110 unchanged lines hidden ---