From: Peng Tao <bergwolf@gmail.com>
To: ext4 development <linux-ext4@vger.kernel.org>
Subject: [PATCH 2/3][e2fsprogs] tune2fs: Don't allow tune2fs -I if flex_bg on
Date: Wed, 10 Dec 2008 16:05:23 +0800 [thread overview]
Message-ID: <493F7843.5030808@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 631 bytes --]
tune2fs: don't resize inode if flex_bg is on.
Signed-off-by: Peng Tao <bergwolf@gmail.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
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 260 bytes --]
reply other threads:[~2008-12-10 8:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=493F7843.5030808@gmail.com \
--to=bergwolf@gmail.com \
--cc=linux-ext4@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).