git: usr.sbin/makefs: Add FAT support (taken from FreeBSD)
Tomohiro Kusumi
tkusumi at crater.dragonflybsd.org
Wed Oct 27 12:05:56 PDT 2021
commit 20f6ddd0df90767e1eba2d12dfa8e1769be7cec7
Author: Tomohiro Kusumi <tkusumi at netbsd.org>
Date: Wed Oct 27 00:21:14 2021 +0900
usr.sbin/makefs: Add FAT support (taken from FreeBSD)
Basically same as FreeBSD version, except that several denode
functions (that makefs(8) is trying to override kernel ones using
the same name) have slightly different arguments in DragonFly.
This commit adds #ifdef MAKEFS here and there in
sys/vfs/msdosfs/*.h, which is the same in FreeBSD makefs(8).
FreeBSD makefs(8) now uses m_buf and m_vnode instead of overriding
kernel structs (using that they can't be included in userspace),
but DragonFly still uses buf and vnode defined in makefs(8).
Summary of changes:
sys/vfs/msdosfs/denode.h | 9 +-
sys/vfs/msdosfs/direntry.h | 4 +-
sys/vfs/msdosfs/fat.h | 4 +-
sys/vfs/msdosfs/msdosfsmount.h | 10 +-
usr.sbin/makefs/Makefile | 3 +-
usr.sbin/makefs/makefs.c | 1 +
usr.sbin/makefs/makefs.h | 2 +
usr.sbin/makefs/msdos.c | 273 +++++
usr.sbin/makefs/msdos.h | 70 ++
usr.sbin/makefs/msdos/Makefile.inc | 8 +
usr.sbin/makefs/msdos/denode.h | 40 +
.../msdosfs => usr.sbin/makefs/msdos}/direntry.h | 38 +-
usr.sbin/makefs/msdos/msdosfs_conv.c | 507 ++++++++++
usr.sbin/makefs/msdos/msdosfs_denode.c | 376 +++++++
usr.sbin/makefs/msdos/msdosfs_fat.c | 1057 ++++++++++++++++++++
usr.sbin/makefs/msdos/msdosfs_lookup.c | 303 ++++++
usr.sbin/makefs/msdos/msdosfs_vfsops.c | 390 ++++++++
usr.sbin/makefs/msdos/msdosfs_vnops.c | 643 ++++++++++++
18 files changed, 3703 insertions(+), 35 deletions(-)
create mode 100644 usr.sbin/makefs/msdos.c
create mode 100644 usr.sbin/makefs/msdos.h
create mode 100644 usr.sbin/makefs/msdos/Makefile.inc
create mode 100644 usr.sbin/makefs/msdos/denode.h
copy {sys/vfs/msdosfs => usr.sbin/makefs/msdos}/direntry.h (85%)
create mode 100644 usr.sbin/makefs/msdos/msdosfs_conv.c
create mode 100644 usr.sbin/makefs/msdos/msdosfs_denode.c
create mode 100644 usr.sbin/makefs/msdos/msdosfs_fat.c
create mode 100644 usr.sbin/makefs/msdos/msdosfs_lookup.c
create mode 100644 usr.sbin/makefs/msdos/msdosfs_vfsops.c
create mode 100644 usr.sbin/makefs/msdos/msdosfs_vnops.c
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/20f6ddd0df90767e1eba2d12dfa8e1769be7cec7
--
DragonFly BSD source repository
More information about the Commits
mailing list