lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <493F7843.5030808@gmail.com>
Date:	Wed, 10 Dec 2008 16:05:23 +0800
From:	Peng Tao <bergwolf@...il.com>
To:	ext4 development <linux-ext4@...r.kernel.org>
Subject: [PATCH 2/3][e2fsprogs] tune2fs: Don't allow tune2fs -I if flex_bg
 on

    tune2fs: don't resize inode if flex_bg is on.

    Signed-off-by: Peng Tao <bergwolf@...il.com>

diff --git a/misc/tune2fs.c b/misc/tune2fs.c
index 8bb6fd2..453a529 100644
--- a/misc/tune2fs.c
+++ b/misc/tune2fs.c
@@ -1604,6 +1604,13 @@ retry_open:
 				"unmounted.\n"), stderr);
 			exit(1);
 		}
+		if (fs->super->s_feature_incompat &
+		    EXT4_FEATURE_INCOMPAT_FLEX_BG) {
+			fputs(_("Filesystem has flex_bg feature. Resizing "
+				"inode will mess up inode table. Abort.\n"),
+				stderr);
+			exit(1);
+		}
 		/*
 		 * We want to update group descriptor also
 		 * with the new free inode count


Download attachment "signature.asc" of type "application/pgp-signature" (261 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ