freebsd-dev/usr.sbin/makefs
Marcel Moolenaar 4ad8d73326 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 Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
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 Allow contents of multiple directories to be merged to the current image. 2012-01-31 00:32:37 +00:00
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 makefs: sync NetBSD IDs with upstream for changes that we already have 2016-07-19 18:40:54 +00:00
Makefile Assign a random number to di_gen (for FFS), instead of extracting it 2016-11-05 16:23:33 +00:00
Makefile.depend Add META_MODE support. 2015-06-13 19:20:56 +00:00
makefs.8 makefs: sync NetBSD IDs with upstream for changes that we already have 2016-07-19 18:40:54 +00:00
makefs.c makefs: reorder 'usage' alphabetically 2016-07-19 18:15:22 +00:00
makefs.h makefs: Provide a -T option to set timestamps to a consistent value 2016-06-14 14:03:28 +00:00
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