Changeset View
Changeset View
Standalone View
Standalone View
head/usr.sbin/makefs/ffs.c
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | |||||
* SUCH DAMAGE. | * SUCH DAMAGE. | ||||
* | * | ||||
* @(#)ffs_alloc.c 8.19 (Berkeley) 7/13/95 | * @(#)ffs_alloc.c 8.19 (Berkeley) 7/13/95 | ||||
*/ | */ | ||||
#include <sys/cdefs.h> | #include <sys/cdefs.h> | ||||
__FBSDID("$FreeBSD$"); | __FBSDID("$FreeBSD$"); | ||||
#if HAVE_NBTOOL_CONFIG_H | |||||
#include "nbtool_config.h" | |||||
#endif | |||||
#include <sys/param.h> | #include <sys/param.h> | ||||
#include <sys/mount.h> | #include <sys/mount.h> | ||||
#include <assert.h> | #include <assert.h> | ||||
#include <errno.h> | #include <errno.h> | ||||
#include <fcntl.h> | #include <fcntl.h> | ||||
#include <stdarg.h> | #include <stdarg.h> | ||||
▲ Show 20 Lines • Show All 229 Lines • ▼ Show 20 Lines | ffs_makefs(const char *image, const char *dir, fsnode *root, fsinfo_t *fsopts) | ||||
/* end of public functions */ | /* end of public functions */ | ||||
static void | static void | ||||
ffs_validate(const char *dir, fsnode *root, fsinfo_t *fsopts) | ffs_validate(const char *dir, fsnode *root, fsinfo_t *fsopts) | ||||
{ | { | ||||
int32_t ncg = 1; | int32_t ncg = 1; | ||||
#if notyet | #ifdef notyet | ||||
int32_t spc, nspf, ncyl, fssize; | int32_t spc, nspf, ncyl, fssize; | ||||
#endif | #endif | ||||
ffs_opt_t *ffs_opts = fsopts->fs_specific; | ffs_opt_t *ffs_opts = fsopts->fs_specific; | ||||
assert(dir != NULL); | assert(dir != NULL); | ||||
assert(root != NULL); | assert(root != NULL); | ||||
assert(fsopts != NULL); | assert(fsopts != NULL); | ||||
assert(ffs_opts != NULL); | assert(ffs_opts != NULL); | ||||
▲ Show 20 Lines • Show All 855 Lines • Show Last 20 Lines |