summaryrefslogtreecommitdiffstats
path: root/sbin/fsck_ffs/setup.c
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2011-02-12 13:17:14 +0000
committerkib <kib@FreeBSD.org>2011-02-12 13:17:14 +0000
commit656df90df15f92ec28b0581a52ac846fb2793d4c (patch)
tree58c64f23c963fac76d61054c217cd63570c99c68 /sbin/fsck_ffs/setup.c
parent4cc560bababbb65c9888fc47b00e449f7bf6fd93 (diff)
downloadFreeBSD-src-656df90df15f92ec28b0581a52ac846fb2793d4c.zip
FreeBSD-src-656df90df15f92ec28b0581a52ac846fb2793d4c.tar.gz
In checker, read journal by sectors.
Due to UFS insistence to pretend that device sector size is 512 bytes, sector size is obtained from ioctl(DIOCGSECTORSIZE) for real devices, and from the label otherwise. The file images without label have to be made with 512 sector size. In collaboration with: pho Reviewed by: jeff Tested by: bz, pho
Diffstat (limited to 'sbin/fsck_ffs/setup.c')
-rw-r--r--sbin/fsck_ffs/setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/fsck_ffs/setup.c b/sbin/fsck_ffs/setup.c
index 1628ffb..e51c0a9 100644
--- a/sbin/fsck_ffs/setup.c
+++ b/sbin/fsck_ffs/setup.c
@@ -446,7 +446,7 @@ sblock_init(void)
if (sblk.b_un.b_buf == NULL || asblk.b_un.b_buf == NULL)
errx(EEXIT, "cannot allocate space for superblock");
if ((lp = getdisklabel(NULL, fsreadfd)))
- dev_bsize = secsize = lp->d_secsize;
+ real_dev_bsize = dev_bsize = secsize = lp->d_secsize;
else
dev_bsize = secsize = DEV_BSIZE;
}
OpenPOWER on IntegriCloud