public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: FabF <fabian.frederick@skynet.be>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: [PATCH 2.6.7] ext3 fill_super reporting
Date: Sun, 20 Jun 2004 00:41:42 +0200	[thread overview]
Message-ID: <1087684902.2224.31.camel@localhost.localdomain> (raw)

[-- Attachment #1: Type: text/plain, Size: 390 bytes --]

Andrew,

This patch does the following :
	-Explicit max_per_group authorized for block, fragments, inodes 
	-Remove groupmax recalculations
	-When mounting ext2 or ^has_journal , we know filesystem is extX
relevant.


	btw, I see a FIXME in journal_update for new journal creation.Does it
mean we should patch to have e.g. journalupdate=<filename> or that note
is obsolete ?

Regards,
FabF

[-- Attachment #2: fillsuper1.diff --]
[-- Type: text/x-patch, Size: 2170 bytes --]

diff -Naur orig/fs/ext3/super.c edited/fs/ext3/super.c
--- orig/fs/ext3/super.c	2004-06-16 07:20:03.000000000 +0200
+++ edited/fs/ext3/super.c	2004-06-20 00:29:19.675383104 +0200
@@ -1209,6 +1209,7 @@
 	unsigned long offset = 0;
 	unsigned long journal_inum = 0;
 	unsigned long def_mount_opts;
+	unsigned long max_per_group;
 	struct inode *root;
 	int blocksize;
 	int hblock;
@@ -1397,26 +1398,31 @@
 	sbi->s_mount_state = le16_to_cpu(es->s_state);
 	sbi->s_addr_per_block_bits = log2(EXT3_ADDR_PER_BLOCK(sb));
 	sbi->s_desc_per_block_bits = log2(EXT3_DESC_PER_BLOCK(sb));
-	for (i=0; i < 4; i++)
+
+	for (i = 0; i < 4; i++)
 		sbi->s_hash_seed[i] = le32_to_cpu(es->s_hash_seed[i]);
 	sbi->s_def_hash_version = es->s_def_hash_version;
+	max_per_group = blocksize * 8;
 
-	if (sbi->s_blocks_per_group > blocksize * 8) {
+	if (sbi->s_blocks_per_group > max_per_group) {
 		printk (KERN_ERR
-			"EXT3-fs: #blocks per group too big: %lu\n",
-			sbi->s_blocks_per_group);
+			"EXT3-fs: #blocks per group too big: %lu"
+			" (maximum : %lu)\n",
+			sbi->s_blocks_per_group, max_per_group);
 		goto failed_mount;
 	}
-	if (sbi->s_frags_per_group > blocksize * 8) {
+	if (sbi->s_frags_per_group > max_per_group) {
 		printk (KERN_ERR
-			"EXT3-fs: #fragments per group too big: %lu\n",
-			sbi->s_frags_per_group);
+			"EXT3-fs: #fragments per group too big: %lu"
+			" (maximum : %lu)\n",
+			sbi->s_frags_per_group, max_per_group);
 		goto failed_mount;
 	}
-	if (sbi->s_inodes_per_group > blocksize * 8) {
+	if (sbi->s_inodes_per_group > max_per_group) {
 		printk (KERN_ERR
-			"EXT3-fs: #inodes per group too big: %lu\n",
-			sbi->s_inodes_per_group);
+			"EXT3-fs: #inodes per group too big: %lu"
+			" (maximum : %lu)\n",
+			sbi->s_inodes_per_group, max_per_group);
 		goto failed_mount;
 	}
 
@@ -1491,9 +1497,11 @@
 		if (ext3_create_journal(sb, es, journal_inum))
 			goto failed_mount2;
 	} else {
+		/* ext3 won't run without journal */
 		if (!silent)
 			printk (KERN_ERR
-				"ext3: No journal on filesystem on %s\n",
+				"EXT3-fs: No journal in filesystem on %s"
+				" : a ^has_journal ext3 or ext2 partition\n",
 				sb->s_id);
 		goto failed_mount2;
 	}

             reply	other threads:[~2004-06-19 22:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-19 22:41 FabF [this message]
2004-06-19 23:16 ` [PATCH 2.6.7] ext3 fill_super reporting Andrew Morton

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=1087684902.2224.31.camel@localhost.localdomain \
    --to=fabian.frederick@skynet.be \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@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