linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jan Kara <jack@suse.cz>
To: Andreas Dilger <adilger@dilger.ca>
Cc: Jan Kara <jack@suse.com>,
	linux-ext4@vger.kernel.org, Ted Tso <tytso@mit.edu>,
	"Darrick J. Wong" <darrick.wong@oracle.com>,
	Jan Kara <jack@suse.cz>
Subject: Re: [PATCH 12/19] libext2fs: Bump default number of reserved inodes to 64
Date: Wed, 26 Aug 2015 17:58:19 +0200	[thread overview]
Message-ID: <20150826155819.GD14012@quack.suse.cz> (raw)
In-Reply-To: <257AFF7C-B416-481B-9DB0-5017A8799967@dilger.ca>

On Fri 07-08-15 13:11:05, Andreas Dilger wrote:
> On Aug 7, 2015, at 4:51 AM, Jan Kara <jack@suse.com> wrote:
> > 
> > From: Jan Kara <jack@suse.cz>
> > 
> > We ran out of reserved inodes so bump the default number of reserved
> > inodes to 64 to get some breathing space. Otherwise we have to do a full
> > fs scan when increasing number of reserved inodes when some feature
> > needing another reserved inode is enabled. This consumes 13.5 KB on a
> > filesystem which is negligible these days.
> 
> This patch also needs to fix all of the regression tests that will
> fail because the inode numbers are different.  Otherwise "make check"
> will fail.

Yeah, it was a bit tedious work but now all the tests are passing. Thanks
for noticing.

								Honza

> 
> Cheers, Andreas
> 
> > Signed-off-by: Jan Kara <jack@suse.cz>
> > ---
> > lib/ext2fs/initialize.c | 2 +-
> > misc/mke2fs.8.in        | 8 ++++----
> > misc/mke2fs.conf.5.in   | 7 ++++---
> > 3 files changed, 9 insertions(+), 8 deletions(-)
> > 
> > diff --git a/lib/ext2fs/initialize.c b/lib/ext2fs/initialize.c
> > index 75fbf8ee0061..0ecf4606ce48 100644
> > --- a/lib/ext2fs/initialize.c
> > +++ b/lib/ext2fs/initialize.c
> > @@ -186,7 +186,7 @@ errcode_t ext2fs_initialize(const char *name, int flags,
> > 
> > 	set_field(s_rev_level, EXT2_GOOD_OLD_REV);
> > 	if (super->s_rev_level >= EXT2_DYNAMIC_REV) {
> > -		set_field(s_first_ino, EXT2_GOOD_OLD_FIRST_INO);
> > +		set_field(s_first_ino, 64);
> > 		set_field(s_inode_size, EXT2_GOOD_OLD_INODE_SIZE);
> > 		if (super->s_inode_size >= sizeof(struct ext2_inode_large)) {
> > 			int extra_isize = sizeof(struct ext2_inode_large) -
> > diff --git a/misc/mke2fs.8.in b/misc/mke2fs.8.in
> > index 520a07185f9f..6eef1d97bfbf 100644
> > --- a/misc/mke2fs.8.in
> > +++ b/misc/mke2fs.8.in
> > @@ -386,10 +386,10 @@ Do not attempt to discard blocks at mkfs time.
> > @QUOTA_MAN_COMMENT@behavior is to initialize both user and group quotas.
> > .TP
> > .BI reserved_inodes= number
> > -Specify the number of inodes reserved for system files. This number must be
> > -at least 10. Currently 10 is enough but future features may require additional
> > -reserved inodes. Reserving more inodes after file system is created requires
> > -full file system scan so it can take a long time.
> > +Specify the number of inodes reserved for system files. This number must be at
> > +least 10, default is 64. Currently 10 is enough but future features may require
> > +additional reserved inodes.
> 
> I'm not sure it is worthwhile to mention "currently 10 is enough",
> since this should be updated every time some new inode is reserved,
> but it will likely be forgotten.  I don't think users really care
> about this in the end.
> 
> > Reserving more inodes after file system is created
> > +requires full file system scan so it can take a long time.
> > .RE
> > .TP
> > .BI \-f " fragment-size"
> > diff --git a/misc/mke2fs.conf.5.in b/misc/mke2fs.conf.5.in
> > index 06ca9e4eabc4..b35767bfedf2 100644
> > --- a/misc/mke2fs.conf.5.in
> > +++ b/misc/mke2fs.conf.5.in
> > @@ -197,9 +197,10 @@ reserved ratio. This value can be a floating point number.
> > .TP
> > .I reserved_inodes
> > This relation specifies the default number of inodes reserved for system files.
> > -The number must be at least 10. Currently 10 is enough but future features may
> > -require additional reserved inodes. Reserving more inodes after file system is
> > -created requires full file system scan so it can take a long time.
> > +The number must be at least 10, default is 64. Currently 10 is enough but
> > +future features may require additional reserved inodes. Reserving more inodes
> > +after file system is created requires full file system scan so it can take a
> > +long time.
> > .TP
> > .I undo_dir
> > This relation specifies the directory where the undo file should be
> > -- 
> > 2.1.4
> > 
> > --
> > To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> 
> Cheers, Andreas
> 
> 
> 
> 
> 
-- 
Jan Kara <jack@suse.com>
SUSE Labs, CR

  reply	other threads:[~2015-08-26 15:58 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-07 10:51 [PATCH 00/19] e2fsprogs: Resizing rewrite Jan Kara
2015-08-07 10:51 ` [PATCH 01/19] ext2fs: Move function to initialize uninitialized bitmaps to libext2fs Jan Kara
2015-08-07 10:51 ` [PATCH 02/19] ext2fs: Use range marking function to mark all inode table blocks as used Jan Kara
2015-08-07 10:51 ` [PATCH 03/19] ext2fs: Add pointer to allocator private data into ext2_filsys Jan Kara
2015-08-07 10:51 ` [PATCH 04/19] ext2fs: Implement ext2fs_allocate_group_table2() Jan Kara
2015-08-07 10:51 ` [PATCH 05/19] resize2fs: Use ext2fs_allocate_group_table2() Jan Kara
2015-08-07 10:51 ` [PATCH 06/19] ext2fs: Make ext2fs_reserve_super_and_bgd() clear block_uninit flag Jan Kara
2015-08-07 10:51 ` [PATCH 07/19] ext2fs: Provide helper for wiping resize inode Jan Kara
2015-08-07 10:51 ` [PATCH 08/19] ext2fs: Implement block moving in libext2fs Jan Kara
2015-08-07 15:55   ` Darrick J. Wong
2015-08-26 15:55     ` Jan Kara
2015-08-07 10:51 ` [PATCH 09/19] ext2fs: Implement inode " Jan Kara
2015-08-07 10:51 ` [PATCH 10/19] tune2fs: Implement setting and disabling of 64-bit feature Jan Kara
2015-08-07 15:32   ` Darrick J. Wong
2015-08-07 15:42     ` Darrick J. Wong
2015-08-26 15:51       ` Jan Kara
2015-08-07 10:51 ` [PATCH 11/19] mke2fs: Allow specifying number of reserved inodes Jan Kara
2015-08-07 15:37   ` Darrick J. Wong
2015-08-26 15:49     ` Jan Kara
2015-08-07 10:51 ` [PATCH 12/19] libext2fs: Bump default number of reserved inodes to 64 Jan Kara
2015-08-07 10:58   ` Alexey Lyashkov
2015-08-07 11:03     ` Jan Kara
2015-08-07 18:11       ` Alexey Lyashkov
2015-08-07 19:11   ` Andreas Dilger
2015-08-26 15:58     ` Jan Kara [this message]
2015-08-07 10:51 ` [PATCH 13/19] tune2fs: Add support for changing number of reserved inodes Jan Kara
2015-08-07 18:58   ` Andreas Dilger
2015-08-26 16:11     ` Jan Kara
2015-08-08  7:45   ` Alexey Lyashkov
2015-08-26 16:07     ` Jan Kara
2015-08-07 10:51 ` [PATCH 14/19] resize2fs: Rip out 64-bit feature handling from resize2fs Jan Kara
2015-08-07 10:51 ` [PATCH 15/19] resize2fs: Remove duplicit condition Jan Kara
2015-08-07 19:01   ` Andreas Dilger
2015-08-26 16:12     ` Jan Kara
2015-08-07 10:51 ` [PATCH 16/19] ext2fs: Add extent dumping function to extent mapping code Jan Kara
2015-08-07 10:51 ` [PATCH 17/19] resize2fs: Remove " Jan Kara
2015-08-07 10:51 ` [PATCH 18/19] ext2fs: Move extent mapping test Jan Kara
2015-08-07 10:51 ` [PATCH 19/19] resize2fs: Use libextfs2 helpers for resizing Jan Kara

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=20150826155819.GD14012@quack.suse.cz \
    --to=jack@suse.cz \
    --cc=adilger@dilger.ca \
    --cc=darrick.wong@oracle.com \
    --cc=jack@suse.com \
    --cc=linux-ext4@vger.kernel.org \
    --cc=tytso@mit.edu \
    /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).