freebsd-skq/usr.sbin/makefs
marcel 6e98c7ae89 Assign a random number to di_gen (for FFS), instead of extracting it
from struct stat.  We don't necessarily have permissions to see the
generation number and the host OS may not have st_gen in struct stat
anyway.  Since the kernel assigns random numbers, there's nothing
meaningful about the generation that requires us to preserve it when
the file system image is created.  With this change, all generation
numbers come from random() and that makes it easier to add support
for reproducible builds at some time in the future (i.e. by adding
an argument to makefs that changes the behaviour of random() so that
it always returns 0 or some predictable sequence).

Differential Revision:	https://reviews.freebsd.org/D8418
2016-11-05 16:23:33 +00:00
..
cd9660 Be more precise when including headers so that we're less likely to 2016-10-25 16:29:15 +00:00
ffs Be more precise when including headers so that we're less likely to 2016-10-25 16:29:15 +00:00
tests
cd9660.c Be more precise when including headers so that we're less likely to 2016-10-25 16:29:15 +00:00
cd9660.h
ffs.c Assign a random number to di_gen (for FFS), instead of extracting it 2016-11-05 16:23:33 +00:00
ffs.h
Makefile Assign a random number to di_gen (for FFS), instead of extracting it 2016-11-05 16:23:33 +00:00
Makefile.depend
makefs.8
makefs.c
makefs.h
mtree.c Be more precise when including headers so that we're less likely to 2016-10-25 16:29:15 +00:00
walk.c Be more precise when including headers so that we're less likely to 2016-10-25 16:29:15 +00:00