aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/makefs/makefs.h
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2019-08-20 18:20:45 +0000
committerEd Maste <emaste@FreeBSD.org>2019-08-20 18:20:45 +0000
commit98dc8da58c698aed1843a912c7c5f5b9dfef3656 (patch)
tree38d311bd24799aec91ba0584cd281fe34d5f415f /usr.sbin/makefs/makefs.h
parent35fd0fc40918d04d5d86573839ff2f36dd780545 (diff)
downloadsrc-98dc8da58c698aed1843a912c7c5f5b9dfef3656.tar.gz
src-98dc8da58c698aed1843a912c7c5f5b9dfef3656.zip
makefs: add msdosfs (FAT) support
Add FAT support to makefs by copying some files from sys/fs/msdosfs/ and updating others with changes from NetBSD. The six files copied from sys/fs/msdosfs at r348251 and modified are: denode.h direntry.h fat.h msdosfs_fat.c msdosfs_lookup.c msdosfsmount.h I would prefer to avoid the duplication, but reluctance to doing so was expressed in a previous review (D11197); for now copy the files and revisit in the future. Submitted by: Siva Mahadevan Discussed with: cem, imp MFC after: 1 month Relnotes: Yes Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D16438
Notes
Notes: svn path=/head/; revision=351273
Diffstat (limited to 'usr.sbin/makefs/makefs.h')
-rw-r--r--usr.sbin/makefs/makefs.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/makefs/makefs.h b/usr.sbin/makefs/makefs.h
index 32822084f083..25f41731fe57 100644
--- a/usr.sbin/makefs/makefs.h
+++ b/usr.sbin/makefs/makefs.h
@@ -183,8 +183,9 @@ int fs ## _parse_opts(const char *, fsinfo_t *); \
void fs ## _cleanup_opts(fsinfo_t *); \
void fs ## _makefs(const char *, const char *, fsnode *, fsinfo_t *)
-DECLARE_FUN(ffs);
DECLARE_FUN(cd9660);
+DECLARE_FUN(ffs);
+DECLARE_FUN(msdos);
extern u_int debug;
extern int dupsok;
@@ -225,6 +226,7 @@ extern struct stat stampst;
#define DEBUG_APPLY_SPECFILE 0x04000000
#define DEBUG_APPLY_SPECENTRY 0x08000000
#define DEBUG_APPLY_SPECONLY 0x10000000
+#define DEBUG_MSDOSFS 0x20000000
#define TIMER_START(x) \