diff options
author | markj <markj@FreeBSD.org> | 2018-01-04 16:18:30 +0000 |
---|---|---|
committer | markj <markj@FreeBSD.org> | 2018-01-04 16:18:30 +0000 |
commit | 1ad5159b89fba48f2905a95280aa622c6325474e (patch) | |
tree | 1fd76db3a9669ccdeb0a12b661255e0404fd50b3 /usr.sbin | |
parent | e1238f753409d1bdc8271b9554dd8ab136936bf1 (diff) | |
download | FreeBSD-src-1ad5159b89fba48f2905a95280aa622c6325474e.zip FreeBSD-src-1ad5159b89fba48f2905a95280aa622c6325474e.tar.gz |
MFC r326912:
Fix a logic bug in makefs lazy inode initialization.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/makefs/ffs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/makefs/ffs.c b/usr.sbin/makefs/ffs.c index 6a89442..209588a 100644 --- a/usr.sbin/makefs/ffs.c +++ b/usr.sbin/makefs/ffs.c @@ -1134,7 +1134,7 @@ ffs_write_inode(union dinode *dp, uint32_t ino, const fsinfo_t *fsopts) * Initialize inode blocks on the fly for UFS2. */ initediblk = ufs_rw32(cgp->cg_initediblk, fsopts->needswap); - if (ffs_opts->version == 2 && cgino + INOPB(fs) > initediblk && + while (ffs_opts->version == 2 && cgino + INOPB(fs) > initediblk && initediblk < ufs_rw32(cgp->cg_niblk, fsopts->needswap)) { memset(buf, 0, fs->fs_bsize); dip = (struct ufs2_dinode *)buf; |