linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [Jfs-patches] [PATCH] Add d_hash and d_compare operations for case-insensitive names (1 of 1)
       [not found] <200407121839.i6CIdMBn006454@kleikamp.dyn.webahead.ibm.com>
@ 2004-07-12 18:43 ` Christoph Hellwig
  2004-07-12 18:55   ` Dave Kleikamp
  0 siblings, 1 reply; 4+ messages in thread
From: Christoph Hellwig @ 2004-07-12 18:43 UTC (permalink / raw)
  To: shaggy; +Cc: jfs-patches, linux-fsdevel

> -	return d_splice_alias(ip, dentry);
> +	if (JFS_SBI(dip->i_sb)->mntflag & JFS_OS2)
> +		dentry->d_op = &jfs_ci_dentry_operations;
> +
> +	dentry = d_splice_alias(ip, dentry);
> +
> +	if (dentry && (JFS_SBI(dip->i_sb)->mntflag & JFS_OS2))
> +		dentry->d_op = &jfs_ci_dentry_operations;A

If d_splice_alias doesn't propagate d_ops it needs to be fixed, not worked around.

> +	memcpy((unsigned char *)a->name, b->name, a->len);

why do you need this cast?


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

* Re: [PATCH] Add d_hash and d_compare operations for case-insensitive names (1 of 1)
  2004-07-12 18:43 ` [Jfs-patches] [PATCH] Add d_hash and d_compare operations for case-insensitive names (1 of 1) Christoph Hellwig
@ 2004-07-12 18:55   ` Dave Kleikamp
  2004-07-13  5:28     ` [Jfs-patches] " Jan Kratochvil
  0 siblings, 1 reply; 4+ messages in thread
From: Dave Kleikamp @ 2004-07-12 18:55 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: jfs-patches, fsdevel

On Mon, 2004-07-12 at 13:43, Christoph Hellwig wrote:
> > -	return d_splice_alias(ip, dentry);
> > +	if (JFS_SBI(dip->i_sb)->mntflag & JFS_OS2)
> > +		dentry->d_op = &jfs_ci_dentry_operations;
> > +
> > +	dentry = d_splice_alias(ip, dentry);
> > +
> > +	if (dentry && (JFS_SBI(dip->i_sb)->mntflag & JFS_OS2))
> > +		dentry->d_op = &jfs_ci_dentry_operations;A
> 
> If d_splice_alias doesn't propagate d_ops it needs to be fixed, not worked around.

I didn't realize this was a work-around.  This is where other file
systems set d_op.

> > +	memcpy((unsigned char *)a->name, b->name, a->len);
> 
> why do you need this cast?

qstr defines ->name as const.  Without the cast, the compiler
complains.  Modifying a->name is kind of ugly, but it make case
preservation work.
-- 
David Kleikamp
IBM Linux Technology Center

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

* Re: [Jfs-patches] [PATCH] Add d_hash and d_compare operations for case-insensitive names (1 of 1)
  2004-07-12 18:55   ` Dave Kleikamp
@ 2004-07-13  5:28     ` Jan Kratochvil
  2004-07-13 13:40       ` Dave Kleikamp
  0 siblings, 1 reply; 4+ messages in thread
From: Jan Kratochvil @ 2004-07-13  5:28 UTC (permalink / raw)
  To: Dave Kleikamp; +Cc: Christoph Hellwig, jfs-patches, fsdevel

Hi,

On Mon, 12 Jul 2004 20:55:53 +0200, Dave Kleikamp wrote:
> On Mon, 2004-07-12 at 13:43, Christoph Hellwig wrote:
...
> > > +	memcpy((unsigned char *)a->name, b->name, a->len);
> > 
> > why do you need this cast?
> 
> qstr defines ->name as const.  Without the cast, the compiler
> complains.  Modifying a->name is kind of ugly, but it make case
> preservation work.

It looks as the same issues being dealt with in my case-preserving
case-insensitive patch for vfat+affs some years ago. It never made it to
kernel.
	http://www.jankratochvil.net/priv/vfat/

(Jan Kara coauthored)


Regards,
Lace

-- 
Jan Kratochvil; Captive: free r/w NTFS Filesystem; http://www.jankratochvil.net/

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

* Re: [Jfs-patches] [PATCH] Add d_hash and d_compare operations for case-insensitive names (1 of 1)
  2004-07-13  5:28     ` [Jfs-patches] " Jan Kratochvil
@ 2004-07-13 13:40       ` Dave Kleikamp
  0 siblings, 0 replies; 4+ messages in thread
From: Dave Kleikamp @ 2004-07-13 13:40 UTC (permalink / raw)
  To: Jan Kratochvil; +Cc: Christoph Hellwig, jfs-patches, fsdevel

On Tue, 2004-07-13 at 00:28, Jan Kratochvil wrote:
> It looks as the same issues being dealt with in my case-preserving
> case-insensitive patch for vfat+affs some years ago. It never made it to
> kernel.
> 	http://www.jankratochvil.net/priv/vfat/
> 
> (Jan Kara coauthored)

What I do is much less sophisticated.  This patch will not allow a
rename that only changes the case of a name.  The memcpy just makes sure
that when a new entry is created, the existence of a previous negative
dentry doesn't affect the case of the new entry.

Is there still any interest in getting your patch into the kernel?

> Regards,
> Lace

Shaggy
-- 
David Kleikamp
IBM Linux Technology Center


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

end of thread, other threads:[~2004-07-13 13:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <200407121839.i6CIdMBn006454@kleikamp.dyn.webahead.ibm.com>
2004-07-12 18:43 ` [Jfs-patches] [PATCH] Add d_hash and d_compare operations for case-insensitive names (1 of 1) Christoph Hellwig
2004-07-12 18:55   ` Dave Kleikamp
2004-07-13  5:28     ` [Jfs-patches] " Jan Kratochvil
2004-07-13 13:40       ` Dave Kleikamp

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).