NetBSD/sys/lib/libsa/ffsv2.c
pgoyette 9ca404d49f Now that the ufs module has been split out from ffs and ext2fs, we need
to update the boot-loader to push all modules required to support the
booted filesystem.  We treat the fsmod string as a slash-separated list
of module names (relative to kern.module.path), rather than as a single
module path name.

Note that ffsv1 and ffsv2 are still exempted from the boot-loader's
auto-push, but the list of required filesystems is still noted in the
source.

Also note that arch/sandpoint needs a similar change.  I have not made
this change because I am totally unable to test it.

Tested on my kernel with _no_ built-in file-systems and with the ffs
bootloader settings of fsmod enabled.
2019-06-24 13:58:24 +00:00

23 lines
440 B
C

/* $NetBSD: ffsv2.c,v 1.7 2019/06/24 13:58:24 pgoyette Exp $ */
#define LIBSA_FFSv2
#define ufs_open ffsv2_open
#define ufs_close ffsv2_close
#define ufs_read ffsv2_read
#define ufs_write ffsv2_write
#define ufs_seek ffsv2_seek
#define ufs_stat ffsv2_stat
#if defined(LIBSA_ENABLE_LS_OP)
#define ufs_ls ffsv2_ls
#endif
#define ufs_dinode ufs2_dinode
#define indp_t int64_t
#if 0
#define FSMOD "wapbl/ufs/ffs"
#endif
#include "ufs.c"