xfs
[Top] [All Lists]

Re: Linux 2.4.17-xfs vs previous XFS versions and certain non-us charact

To: utz lehmann <xfs@xxxxxxxxxx>
Subject: Re: Linux 2.4.17-xfs vs previous XFS versions and certain non-us characters in filenames
From: Andi Kleen <ak@xxxxxxx>
Date: Sun, 27 Jan 2002 15:47:45 +0100
Cc: Stephen Lord <lord@xxxxxxx>, H?kan Lindqvist <lindqvist@xxxxxxxxxx>, Linux XFS Mailing List <linux-xfs@xxxxxxxxxxx>
In-reply-to: <20020127152120.A1490@s2y4n2c.de>
References: <1012101803.1045.28.camel@steelnest> <1012102374.1045.35.camel@steelnest> <3C536F44.1020301@sgi.com> <20020127152120.A1490@s2y4n2c.de>
Sender: owner-linux-xfs@xxxxxxxxxxx
User-agent: Mutt/1.3.22.1i
On Sun, Jan 27, 2002 at 03:21:20PM +0100, utz lehmann wrote:
> Maybe this cause it?
> 
> TAKE - remove use of -funsigned-char from xfs
> http://oss.sgi.com/projects/xfs/mail_archive/0201/msg00611.html

Looks very likely. Try this patch: 


Index: linux/fs/xfs/xfs_da_btree.c
===================================================================
RCS file: /cvs/linux-2.4-xfs/linux/fs/xfs/xfs_da_btree.c,v
retrieving revision 1.119
diff -u -u -r1.119 xfs_da_btree.c
--- linux/fs/xfs/xfs_da_btree.c 2001/07/02 18:15:34     1.119
+++ linux/fs/xfs/xfs_da_btree.c 2002/01/27 15:44:38
@@ -1592,7 +1592,7 @@
  * This is implemented with some source-level loop unrolling.
  */
 xfs_dahash_t
-xfs_da_hashname(char *name, int namelen)
+xfs_da_hashname(unsigned char *name, int namelen)
 {
        xfs_dahash_t hash;
 
Index: linux/fs/xfs/xfs_da_btree.h
===================================================================
RCS file: /cvs/linux-2.4-xfs/linux/fs/xfs/xfs_da_btree.h,v
retrieving revision 1.40
diff -u -u -r1.40 xfs_da_btree.h
--- linux/fs/xfs/xfs_da_btree.h 2000/09/25 05:42:07     1.40
+++ linux/fs/xfs/xfs_da_btree.h 2002/01/27 15:44:38
@@ -322,7 +322,7 @@
 int    xfs_da_shrink_inode(xfs_da_args_t *args, xfs_dablk_t dead_blkno,
                                          xfs_dabuf_t *dead_buf);
 
-uint xfs_da_hashname(char *name_string, int name_length);
+uint xfs_da_hashname(unsigned char *name_string, int name_length);
 uint xfs_da_log2_roundup(uint i);
 xfs_da_state_t *xfs_da_state_alloc(void);
 void xfs_da_state_free(xfs_da_state_t *state);



-Andi 


<Prev in Thread] Current Thread [Next in Thread>