diff options
author | jkim <jkim@FreeBSD.org> | 2012-01-31 00:32:37 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2012-01-31 00:32:37 +0000 |
commit | a7ddcadb12aee8630a0a25acff174bce79a7071e (patch) | |
tree | c52c0b3a46d9f152a9ca83cf598020ed44cd62fd /usr.sbin/makefs/makefs.h | |
parent | 52801b5562a08eb59e74be5bcae14bdb70311c39 (diff) | |
download | FreeBSD-src-a7ddcadb12aee8630a0a25acff174bce79a7071e.zip FreeBSD-src-a7ddcadb12aee8630a0a25acff174bce79a7071e.tar.gz |
Allow contents of multiple directories to be merged to the current image.
Note this patch was submitted to NetBSD and they already adopted it.
http://mail-index.netbsd.org/source-changes/2012/01/28/msg031078.html
MFC after: 1 week
Diffstat (limited to 'usr.sbin/makefs/makefs.h')
-rw-r--r-- | usr.sbin/makefs/makefs.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/makefs/makefs.h b/usr.sbin/makefs/makefs.h index 6556ec0..f6cadeb 100644 --- a/usr.sbin/makefs/makefs.h +++ b/usr.sbin/makefs/makefs.h @@ -94,6 +94,8 @@ typedef struct _fsnode { fsinode *inode; /* actual inode data */ char *symlink; /* symlink target */ char *contents; /* file to provide contents */ + const char *root; /* root path */ + char *path; /* directory name */ char *name; /* file name */ int flags; /* misc flags */ } fsnode; @@ -147,11 +149,11 @@ typedef struct { void apply_specfile(const char *, const char *, fsnode *, int); -void dump_fsnodes(const char *, fsnode *); +void dump_fsnodes(fsnode *); const char * inode_type(mode_t); fsnode * read_mtree(const char *, fsnode *); int set_option(option_t *, const char *, const char *); -fsnode * walk_dir(const char *, fsnode *); +fsnode * walk_dir(const char *, const char *, fsnode *, fsnode *); void free_fsnodes(fsnode *); void ffs_prep_opts(fsinfo_t *); |