* mkfs.xfs ... lazy-count=1 ... not mountable by older kernels?
@ 2007-12-11 19:42 David Sparks
2007-12-11 22:15 ` David Chinner
0 siblings, 1 reply; 4+ messages in thread
From: David Sparks @ 2007-12-11 19:42 UTC (permalink / raw)
To: xfs
Hi all,
Is it expected that filesystems made with lazy-count=1 are not mountable by
older kernels?
I'm installing a system based with install media based on 2.6.19 and mkfs.xfs
2.8.11 (its Gentoo 2007.0). That mkfs.xfs is old so i copied over a 2.9.4
binary and used that to mkfs the filesystem but its unmountable. Removing the
lazy-count=1 option makes it mountable.
Is this an expected incompatibility or is mix-n-matching xfsprogs a bad idea?
Thanks!
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: mkfs.xfs ... lazy-count=1 ... not mountable by older kernels?
2007-12-11 19:42 mkfs.xfs ... lazy-count=1 ... not mountable by older kernels? David Sparks
@ 2007-12-11 22:15 ` David Chinner
2007-12-12 0:37 ` Timothy Shimmin
0 siblings, 1 reply; 4+ messages in thread
From: David Chinner @ 2007-12-11 22:15 UTC (permalink / raw)
To: David Sparks; +Cc: xfs
On Tue, Dec 11, 2007 at 11:42:50AM -0800, David Sparks wrote:
> Hi all,
>
> Is it expected that filesystems made with lazy-count=1 are not mountable by
> older kernels?
That is expected. lazy-count is a mkfs option because it changes the on-disk
format slightly, and older kernels do not understand that format. Hence
mkfs sets a superblock feature bit to prevent the filesystem from being
mounted on kernels that don't understand the slightly different disk format.
Cheers,
Dave.
--
Dave Chinner
Principal Engineer
SGI Australian Software Group
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: mkfs.xfs ... lazy-count=1 ... not mountable by older kernels?
2007-12-11 22:15 ` David Chinner
@ 2007-12-12 0:37 ` Timothy Shimmin
2007-12-12 13:19 ` Justin Piszcz
0 siblings, 1 reply; 4+ messages in thread
From: Timothy Shimmin @ 2007-12-12 0:37 UTC (permalink / raw)
To: David Sparks; +Cc: xfs
David Chinner wrote:
> On Tue, Dec 11, 2007 at 11:42:50AM -0800, David Sparks wrote:
>> Hi all,
>>
>> Is it expected that filesystems made with lazy-count=1 are not mountable by
>> older kernels?
>
> That is expected. lazy-count is a mkfs option because it changes the on-disk
> format slightly, and older kernels do not understand that format. Hence
> mkfs sets a superblock feature bit to prevent the filesystem from being
> mounted on kernels that don't understand the slightly different disk format.
>
> Cheers,
>
> Dave.
And there will be a message in the logs but it probably isn't
overly obvious what it is talking about.
Looking at code, I presume it will come from:
if (!XFS_SB_GOOD_VERSION(sbp)) {
xfs_fs_mount_cmn_err(flags, "bad version");
return XFS_ERROR(EWRONGFS);
}
so there will be a msg about a "bad version".
--Tim
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: mkfs.xfs ... lazy-count=1 ... not mountable by older kernels?
2007-12-12 0:37 ` Timothy Shimmin
@ 2007-12-12 13:19 ` Justin Piszcz
0 siblings, 0 replies; 4+ messages in thread
From: Justin Piszcz @ 2007-12-12 13:19 UTC (permalink / raw)
To: Timothy Shimmin; +Cc: David Sparks, xfs
On Wed, 12 Dec 2007, Timothy Shimmin wrote:
> David Chinner wrote:
>> On Tue, Dec 11, 2007 at 11:42:50AM -0800, David Sparks wrote:
>>> Hi all,
>>>
>>> Is it expected that filesystems made with lazy-count=1 are not mountable
>>> by
>>> older kernels?
>>
>> That is expected. lazy-count is a mkfs option because it changes the
>> on-disk
>> format slightly, and older kernels do not understand that format. Hence
>> mkfs sets a superblock feature bit to prevent the filesystem from being
>> mounted on kernels that don't understand the slightly different disk
>> format.
>>
>> Cheers,
>>
>> Dave.
>
> And there will be a message in the logs but it probably isn't
> overly obvious what it is talking about.
>
> Looking at code, I presume it will come from:
> if (!XFS_SB_GOOD_VERSION(sbp)) {
> xfs_fs_mount_cmn_err(flags, "bad version");
> return XFS_ERROR(EWRONGFS);
> }
> so there will be a msg about a "bad version".
>
> --Tim
>
>
Has anyone done any benchmarks with Dave Chinner's recommendations for
mkfs.xfs/optmizations?
Justin.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-12-12 13:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-11 19:42 mkfs.xfs ... lazy-count=1 ... not mountable by older kernels? David Sparks
2007-12-11 22:15 ` David Chinner
2007-12-12 0:37 ` Timothy Shimmin
2007-12-12 13:19 ` Justin Piszcz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox