Date: Wed, 18 May 2016 19:59:05 +0000 (UTC) From: "Pedro F. Giffuni" <pfg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r300163 - head/lib/libufs Message-ID: <201605181959.u4IJx5O5008871@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pfg Date: Wed May 18 19:59:05 2016 New Revision: 300163 URL: https://svnweb.freebsd.org/changeset/base/300163 Log: libufs: Simplify generation number calculation. UFS generation numbers have been unsigned since 2013 (r256435). Modified: head/lib/libufs/cgroup.c Modified: head/lib/libufs/cgroup.c ============================================================================== --- head/lib/libufs/cgroup.c Wed May 18 19:38:00 2016 (r300162) +++ head/lib/libufs/cgroup.c Wed May 18 19:59:05 2016 (r300163) @@ -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,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605181959.u4IJx5O5008871>