From 15edb840ebc7be801717d8ccae8d1fd808b3eeb6 Mon Sep 17 00:00:00 2001 From: pfg Date: Wed, 18 May 2016 19:59:05 +0000 Subject: [PATCH] libufs: Simplify generation number calculation. UFS generation numbers have been unsigned since 2013 (r256435). --- lib/libufs/cgroup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libufs/cgroup.c b/lib/libufs/cgroup.c index 8ab33f7c7c9..dfb10d3feb9 100644 --- a/lib/libufs/cgroup.c +++ b/lib/libufs/cgroup.c @@ -157,7 +157,7 @@ gotit: bzero(block, (int)fs->fs_bsize); dp2 = (struct ufs2_dinode *)█ for (i = 0; i < INOPB(fs); i++) { - dp2->di_gen = arc4random() / 2 + 1; + dp2->di_gen = arc4random(); dp2++; } if (bwrite(disk, ino_to_fsba(fs, -- 2.11.4.GIT