summaryrefslogtreecommitdiff
path: root/sbin/newfs/pathnames.h
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2020-05-28 15:48:30 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2020-05-28 15:48:30 +0000
commite4fe65347da83215efa273f99ad7db13e99f7658 (patch)
tree671ee987ec5337fa008127dde705192b1715f129 /sbin/newfs/pathnames.h
parenta91ee5b7beebd6cafd108ea10ff85cf84f4f9243 (diff)
Make generation numbers unsigned and fill them using a random number
from the range [1..UINT_MAX] initially. On inode re-use increment and on wrap refill from the range [1..UINT_MAX-1] to avoid assigning UINT_MAX (the original value). Zero still means uninitialized. ok millert@
Diffstat (limited to 'sbin/newfs/pathnames.h')
0 files changed, 0 insertions, 0 deletions