From: Ben Myers <bpm@sgi.com>
To: Dave Chinner <david@fromorbit.com>
Cc: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>,
Eric Sandeen <sandeen@sandeen.net>, xfs-oss <xfs@oss.sgi.com>
Subject: Re: [PATCH] default to 64 bit inodes & add feature flag
Date: Thu, 8 Mar 2012 20:08:27 -0600 [thread overview]
Message-ID: <20120309020827.GA8545@sgi.com> (raw)
In-Reply-To: <20120308233953.GP5091@dastard>
Hi Dave,
On Fri, Mar 09, 2012 at 10:39:53AM +1100, Dave Chinner wrote:
> On Thu, Mar 08, 2012 at 10:38:32AM -0600, Ben Myers wrote:
> > On Thu, Mar 08, 2012 at 09:42:21AM -0600, Eric Sandeen wrote:
> > > So, after thinking about this (and talking on irc) some more, I'm
> > > not convinced that a feature flag is the way to go.
> > >
> > > If we set a feature flag, suddenly old filesystems with 64-bit
> > > inodes will grow a new feature, and this will force a userspace
> > > upgrade - but there is no real new feature. This seems like a bad
> > > idea. My original patch (which Dave responded to with this one)
> > > simply made inode64 default, with no feature flags.
> > >
> > > Unless someone has a really compelling argument for the flag,
> > > I'm thinking this is the wrong approach after all.
> > >
> > > Perhaps I should resend the just-make-it-default patch.
> > >
> > > Comments?
> >
> > Ew! Forcing a userspace upgrade is not desireable. Since we would only
> > want to set the feature bit if userspace were already upgraded, and only
> > if there are 64 bit inos... How about two bits: one is set by mkfs and
> > checked by the kernel to see if it is ok to set the other. ;)
> >
> > The first bit could also act as 'now its ok to default to inode64'.
>
> Too complex, IMO. Just add an xfs_admin command to set the inode64
> feature bit. That then overrides the inode64/inode32 mount option,
> and guarantees that the user has already upgraded userspace.
>
> i.e. the mount options are only valid if the feature bit it not set,
> and the feature bit can only be set via xfs_admin after a userspace
> upgrade. Kernels that don't understand the feature bit will refuse
> to mount, keeping in line with the current practise of requiring
> both kernel and userspace upgrades to occur in step to use new
> features....
When I hit this problem it was because I had mounted the filesystem w/
inode64 and created large inos, and then forgot all about it sometime
later and didn't use the mount option. Unless the inode64 mount option
is completely disabled in favor of using the 'override inode*' feature
bit exclusively, this aspect of the problem is not resolved.
That'd be just fine, imo. I wonder if there are others that would be
better tracked in the superblock than as mount options. 'dmi' comes to
mind.
Regards,
Ben
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
prev parent reply other threads:[~2012-03-09 2:08 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-07 17:20 [PATCH] default to 64 bit inodes & add feature flag Eric Sandeen
2012-03-07 17:33 ` Josef 'Jeff' Sipek
2012-03-07 18:07 ` Arkadiusz Miśkiewicz
2012-03-08 1:34 ` Dave Chinner
2012-03-08 2:05 ` Eric Sandeen
2012-03-08 15:37 ` Ben Myers
2012-03-08 15:42 ` Eric Sandeen
2012-03-08 16:14 ` Josef 'Jeff' Sipek
2012-03-08 16:38 ` Ben Myers
2012-03-08 23:39 ` Dave Chinner
2012-03-08 23:41 ` Eric Sandeen
2012-03-09 2:08 ` Ben Myers [this message]
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=20120309020827.GA8545@sgi.com \
--to=bpm@sgi.com \
--cc=david@fromorbit.com \
--cc=jeffpc@josefsipek.net \
--cc=sandeen@sandeen.net \
--cc=xfs@oss.sgi.com \
/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