13 Commits

Author SHA1 Message Date
Sam Leffler
d4bd40ca17 fix stuff i broke 2008-12-18 05:41:51 +00:00
Sam Leffler
874edd6d05 If the filesystem size rounded up to a multiple of the block size
is larger than what a user specified then round down to get something
that works but wastes a little space.

This happens reliably for me when building filesystems for CF parts
>1G; not sure why noone else is complaining.
2008-12-18 04:38:47 +00:00
Sam Leffler
ef075ffc87 unbreak cg_chkmagic_swap 2008-12-18 04:36:44 +00:00
Sam Leffler
a6b691a8dd Apply the big hammer:
o remove all of compat except for pwcache and strstuftoll; these might
  end up in libutil or similar so keep them in the subdir
o mv getid.c up to the top level; this looks like something that'll be
  makefs-specific
o eliminate private versions of .h files in sys; use system files instead
o eliminate private ffs_tables.c; use the system version directly (might
  want to adopt const'ification at some point but that's the only diff I
  can see)
o mv remaining code from sys to ffs and strip out unused bits; this now
  becomes part of makefs
o add compat defs and shims to makefs.h
o strip all vestiges of nbtool_config.h, compat_defs.h, etc.
o fixup includes after file shuffling
o rename system #defines that do implicit byte swapping to have an _swap
  suffix; e.g. DIRSIZ -> DIRSIZ_SWAP, cg_inosused -> cg_inosused_swap; if
  we ever add endian-agnostic support to the kernel these can go back to
  their original names
o strip some netbsd'isms that aren't worth shim'ing (e.g. _DIAGASSERT)

Code compiles w/o complaints but is untested.
2008-12-18 00:54:15 +00:00
Sam Leffler
3ef5204d83 gone 2008-12-17 22:07:44 +00:00
Sam Leffler
fc7c344e55 fparseln is in libutil 2008-12-17 22:03:31 +00:00
Sam Leffler
db62ebd319 getmode+setmode are in libc, remove 2008-12-17 21:55:51 +00:00
Sam Leffler
e86288c353 First step toward proper mtree integration:
o use mtree code directly from ../mtree; s/spec(fp)/mtree_readspec(fp)/
  (assume this will eventually go in usr.sbin)
o nuke st_rdev use; there's no reason to create filesystems with device nodes
o shim missing compat bits for inotype and nodetoino
o remove now unneeded compat/mtree bits, pack_dev.?, and stat_flags.?
o temporarily move getid.c code up to compat to keep this building
2008-12-17 21:54:08 +00:00
Sam Leffler
4eb58ef463 split stanzas in preparation for better integration 2008-12-17 19:19:14 +00:00
Warner Losh
0efe3eeac2 This directory is now empty 2008-11-24 21:10:08 +00:00
Warner Losh
d70920a25c This isn't needed... 2008-11-24 21:08:43 +00:00
Warner Losh
4dde16481c Remove the dump_node and vispath routines from compat/mtree/spec.c.
They aren't needed, and were the only users of the compat/vis.[ch]
files.  As such, remove them from the Makefile.
2008-11-24 20:59:29 +00:00
Sam Leffler
b6842439df prepare makefs for import to base 2008-11-23 19:59:42 +00:00