diff options
| author | simonb <simonb@NetBSD.org> | 2021-04-03 14:10:56 +0000 |
|---|---|---|
| committer | simonb <simonb@NetBSD.org> | 2021-04-03 14:10:56 +0000 |
| commit | 5bebfbb81022bc920b79ef670852e83ee415f84d (patch) | |
| tree | de9a0e2ebb6d558b4c315a39b31313c2cc61af1e /usr.sbin/makefs/makefs.h | |
| parent | 7307bbc58d562c02c09af9dbbcf61f632d1cb832 (diff) | |
Add a -L option to follow all symbolic links. Useful if you have symlinks
in a makefs directory tree but want to refer to the actual file.
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 2929fcb502c..5e199836db1 100644 --- a/usr.sbin/makefs/makefs.h +++ b/usr.sbin/makefs/makefs.h @@ -1,4 +1,4 @@ -/* $NetBSD: makefs.h,v 1.36 2015/11/25 00:48:49 christos Exp $ */ +/* $NetBSD: makefs.h,v 1.37 2021/04/03 14:10:56 simonb Exp $ */ /* * Copyright (c) 2001 Wasabi Systems, Inc. @@ -166,6 +166,7 @@ typedef struct makefs_fsinfo { int sectorsize; /* sector size */ int sparse; /* sparse image, don't fill it with zeros */ int replace; /* replace files when merging */ + int follow; /* follow symlinks */ void *fs_specific; /* File system specific additions. */ option_t *fs_options; /* File system specific options */ @@ -180,7 +181,8 @@ const char * inode_type(mode_t); int set_option(const option_t *, const char *, char *, size_t); int set_option_var(const option_t *, const char *, const char *, char *, size_t); -fsnode * walk_dir(const char *, const char *, fsnode *, fsnode *, int); +fsnode * walk_dir(const char *, const char *, fsnode *, fsnode *, int, + int); void free_fsnodes(fsnode *); option_t * copy_opts(const option_t *); |
