diff options
author | Niall O'Higgins <niallo@cvs.openbsd.org> | 2005-04-30 13:56:17 +0000 |
---|---|---|
committer | Niall O'Higgins <niallo@cvs.openbsd.org> | 2005-04-30 13:56:17 +0000 |
commit | e723898372517d7a195b4eb18912751f9316ae2e (patch) | |
tree | 4a6149adbaa52b0539597497fd19f2cfd9cf066e /sbin/fsck_ext2fs/setup.c | |
parent | 8153e99f0a02eb7725ff3061033d08113ee83991 (diff) |
Support checking filesystems which have or once had large files (>4 GB)
on them.
From NetBSD
Diffstat (limited to 'sbin/fsck_ext2fs/setup.c')
-rw-r--r-- | sbin/fsck_ext2fs/setup.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/fsck_ext2fs/setup.c b/sbin/fsck_ext2fs/setup.c index 5156cdf29d6..7a3767982bf 100644 --- a/sbin/fsck_ext2fs/setup.c +++ b/sbin/fsck_ext2fs/setup.c @@ -1,4 +1,4 @@ -/* $OpenBSD: setup.c,v 1.12 2003/07/29 18:38:35 deraadt Exp $ */ +/* $OpenBSD: setup.c,v 1.13 2005/04/30 13:56:16 niallo Exp $ */ /* $NetBSD: setup.c,v 1.1 1997/06/11 11:22:01 bouyer Exp $ */ /* @@ -326,6 +326,9 @@ readsb(int listerr) asblk.b_un.b_fs->e2fs_rgid = sblk.b_un.b_fs->e2fs_rgid; asblk.b_un.b_fs->e2fs_block_group_nr = sblk.b_un.b_fs->e2fs_block_group_nr; + asblk.b_un.b_fs->e2fs_features_rocompat &= ~EXT2F_ROCOMPAT_LARGEFILE; + asblk.b_un.b_fs->e2fs_features_rocompat |= + sblk.b_un.b_fs->e2fs_features_rocompat & EXT2F_ROCOMPAT_LARGEFILE; if (sblock.e2fs.e2fs_rev > E2FS_REV0 && ((sblock.e2fs.e2fs_features_incompat & ~EXT2F_INCOMPAT_SUPP) || (sblock.e2fs.e2fs_features_rocompat & ~EXT2F_ROCOMPAT_SUPP))) { |