memstick.img is bloated with 7% 2K blocks of nulls
Julian H. Stacey
jhs at berklix.com
Sat Feb 12 00:54:53 UTC 2011
Bruce Cran wrote:
> On Fri, 11 Feb 2011 20:09:30 +0100
> "Julian H. Stacey" <jhs at berklix.com> wrote:
>
> > memstick.img wastes 7% with 2K blocks of nulls.
>
> Could this be due to using UFS1 instead of UFS2?
Don't know, Looking:
8.1 /usr/src/release/scripts/make-memstick.sh
man makefs
-t fs-type ... The following file system
types are supported:
ffs BSD fast file system (default).
....
FFS-specific options
....
version UFS version. 1 for FFS (default), 2 for UFS2
/usr/src/release/Makefile -->
scripts/doFS.sh:
newfs -i ${FSINODE} -o space -m 0 /dev/r${VNDEVICE}c
...
newfs -O1 -b 4096 -f 512 -i ${FSINODE} -o space -m 0 /dev/${MDDEVICE}
man newfs:
-O filesystem-type
Use 1 to specify that a UFS1 format file system be built; use 2
to specify that a UFS2 format file system be built. The default
format is UFS2.
If anyone fancies looking deeper, please do :-)
Cheers,
Julian
--
Julian Stacey, BSD Unix Linux C Sys Eng Consultants Munich http://berklix.com
Mail plain text; Not quoted-printable, Not HTML, Not base 64.
Reply below text sections not at top, to avoid breaking cumulative context.
More information about the freebsd-hackers
mailing list