-/* $OpenBSD: ext2fs_bswap.c,v 1.2 2014/07/11 22:23:20 miod Exp $ */
+/* $OpenBSD: ext2fs_bswap.c,v 1.3 2014/07/13 13:37:22 pelikan Exp $ */
/* $NetBSD: ext2fs_bswap.c,v 1.6 2000/07/24 00:23:10 mycroft Exp $ */
/*
new->e2fs_ficount = swap32(old->e2fs_ficount);
new->e2fs_first_dblock = swap32(old->e2fs_first_dblock);
new->e2fs_log_bsize = swap32(old->e2fs_log_bsize);
- new->e2fs_fsize = swap32(old->e2fs_fsize);
+ new->e2fs_log_fsize = swap32(old->e2fs_log_fsize);
new->e2fs_bpg = swap32(old->e2fs_bpg);
new->e2fs_fpg = swap32(old->e2fs_fpg);
new->e2fs_ipg = swap32(old->e2fs_ipg);
-/* $OpenBSD: mke2fs.c,v 1.8 2014/07/11 15:16:22 pelikan Exp $ */
+/* $OpenBSD: mke2fs.c,v 1.9 2014/07/13 13:37:22 pelikan Exp $ */
/* $NetBSD: mke2fs.c,v 1.13 2009/10/19 18:41:08 bouyer Exp $ */
/*-
}
sblock.e2fs.e2fs_log_bsize = ilog2(bsize) - LOG_MINBSIZE;
- /* Umm, why not e2fs_log_fsize? */
- sblock.e2fs.e2fs_fsize = ilog2(fsize) - LOG_MINBSIZE;
+ sblock.e2fs.e2fs_log_fsize = ilog2(fsize) - LOG_MINFSIZE;
sblock.e2fs_bsize = bsize;
+ sblock.e2fs_fsize = fsize;
sblock.e2fs_bshift = sblock.e2fs.e2fs_log_bsize + LOG_MINBSIZE;
sblock.e2fs_qbmask = sblock.e2fs_bsize - 1;
sblock.e2fs_bmask = ~sblock.e2fs_qbmask;