public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* TAKE 977771 -
@ 2008-02-28  0:32 Niv Sardi-Altivanik
  2008-02-28 22:03 ` Eric Sandeen
  0 siblings, 1 reply; 3+ messages in thread
From: Niv Sardi-Altivanik @ 2008-02-28  0:32 UTC (permalink / raw)
  To: sgi.bugs.xfs; +Cc: xfs

If you mount an XFS filesystem with no mount options at all, then
the "ikeep" option is set rather than "noikeep".

This regression was introduced in 970451. 

With no mount options specified, xfs_parseargs() does the following:

	int			ikeep = 0;

	args->flags |= XFSMNT_BARRIER;
	args->flags2 |= XFSMNT2_COMPAT_IOSIZE;

	if (!options)
		goto done;

It only sets the above two options by default and before, it also used to
set XFSMNT_IDELETE by default.

If options are specified, then

	if (!(args->flags & XFSMNT_DMAPI) && !ikeep)
		args->flags |= XFSMNT_IDELETE;

is executed later on which is skipped by the "goto done;" above.

The solution is to invert the logic.


Date:  Thu Feb 28 11:32:16 AEDT 2008
Workarea:  chook.melbourne.sgi.com:/home/xaiki/isms/2.6-xfs
Inspected by:  bnaujok,jeffpc

The following file(s) were checked into:
  longdrop.melbourne.sgi.com:/isms/linux/2.6.x-xfs-melb


Modid:  xfs-linux-melb:xfs-kern:30590a
fs/xfs/xfsidbg.c - 1.345 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfsidbg.c.diff?r1=text&tr1=1.345&r2=text&tr2=1.344&f=h
	- Change the *_IDELETE flags to *_IKEEP, and flip the logic as necessary.

fs/xfs/xfs_ialloc.c - 1.197 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_ialloc.c.diff?r1=text&tr1=1.197&r2=text&tr2=1.196&f=h
	- Change the *_IDELETE flags to *_IKEEP, and flip the logic as necessary.

fs/xfs/xfs_vfsops.c - 1.556 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_vfsops.c.diff?r1=text&tr1=1.556&r2=text&tr2=1.555&f=h
	- Change the *_IDELETE flags to *_IKEEP, and flip the logic as necessary.

fs/xfs/xfs_clnt.h - 1.57 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_clnt.h.diff?r1=text&tr1=1.57&r2=text&tr2=1.56&f=h
	- Change the *_IDELETE flags to *_IKEEP, and flip the logic as necessary.

fs/xfs/xfs_mount.h - 1.259 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_mount.h.diff?r1=text&tr1=1.259&r2=text&tr2=1.258&f=h
	- Change the *_IDELETE flags to *_IKEEP, and flip the logic as necessary.

fs/xfs/linux-2.6/xfs_super.c - 1.410 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/linux-2.6/xfs_super.c.diff?r1=text&tr1=1.410&r2=text&tr2=1.409&f=h
	- Change the *_IDELETE flags to *_IKEEP, and flip the logic as necessary.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: TAKE 977771 -
  2008-02-28  0:32 TAKE 977771 - Niv Sardi-Altivanik
@ 2008-02-28 22:03 ` Eric Sandeen
  2008-02-29  0:47   ` Niv Sardi
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Sandeen @ 2008-02-28 22:03 UTC (permalink / raw)
  To: Niv Sardi-Altivanik; +Cc: sgi.bugs.xfs, xfs

Niv Sardi-Altivanik wrote:
> If you mount an XFS filesystem with no mount options at all, then
> the "ikeep" option is set rather than "noikeep".

Thanks for getting this in.

2 questions...

Is it going to make 2.6.25?

And can you add a little text description to your subject line, for
those doing inbox searches for things?  :)

Thanks,
-Eric

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: TAKE 977771 -
  2008-02-28 22:03 ` Eric Sandeen
@ 2008-02-29  0:47   ` Niv Sardi
  0 siblings, 0 replies; 3+ messages in thread
From: Niv Sardi @ 2008-02-29  0:47 UTC (permalink / raw)
  To: Eric Sandeen; +Cc: Niv Sardi-Altivanik, sgi.bugs.xfs, xfs, Lachlan McIlroy

Eric Sandeen <sandeen@sandeen.net> writes:

> Niv Sardi-Altivanik wrote:
>> If you mount an XFS filesystem with no mount options at all, then
>> the "ikeep" option is set rather than "noikeep".
>
> Thanks for getting this in.
>
> 2 questions...
>
> Is it going to make 2.6.25?

I hope so, but as I've been told to stay away from git trees it's in
lachlan's (over-busy) hands.

> And can you add a little text description to your subject line, for
> those doing inbox searches for things?  :)

Yep, sorry, I thought our tools were not that d^W^W^Wsmarter than they
are.

Cheers,
-- 
Niv Sardi

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-02-29  0:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-28  0:32 TAKE 977771 - Niv Sardi-Altivanik
2008-02-28 22:03 ` Eric Sandeen
2008-02-29  0:47   ` Niv Sardi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox