libufs: Simplify generation number calculation.
UFS generation numbers have been unsigned since 2013 (r256435).
This commit is contained in:
parent
e81041a0fd
commit
15edb840eb
@ -157,7 +157,7 @@ cgialloc(struct uufsd *disk)
|
||||
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,
|
||||
|
Loading…
Reference in New Issue
Block a user