public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* symbolic link with jffs2
@ 2004-05-11  8:38 Jose Pascual
  2004-05-11 11:37 ` Jose Pascual
  0 siblings, 1 reply; 6+ messages in thread
From: Jose Pascual @ 2004-05-11  8:38 UTC (permalink / raw)
  To: linux-mtd

Hi,

I'm using kernel 2.4.25-vrs2 and my own patch for my specific board.
I updated my kernel to 14/4/2004 MTD snapshot (cvs).

I have mounted a jffs2 fs in mtdblock2 (nor in my case) but when I make
symbolic link something doesn't work as you can se below, (appear some ?
simbols in name, so symbolic links are broken)

do you have seen this problem before? any suggestion?

----------------------------------------------------------------
[root@IA-CPU-9200 lib]$ls -la
total 1534
drwxrwxrwx    1 root     root            0 Jan  1 00:18 .
drwxr-xr-x    1 root     root            0 Jan  1 00:17 ..
-rwxr-xr-x    1 root     root       116853 Dec 21  2003 ld-2.2.3.so
lrwxrwxrwx    1 root     root           11 Jan  1 00:16 ld-linux.so.2 ->
ld-2.2.3.so?1?.so?
-rwxr-xr-x    1 root     root      1348598 Dec 21  2003 libc-2.2.4.so
lrwxrwxrwx    1 root     root           13 Jan  1 00:16 libc.so.6 ->
libc-2.2.4.so?.so?
-rwxr-xr-x    1 root     root        29479 Dec 21  2003
libcrypt-2.2.3.so
lrwxrwxrwx    1 root     root           13 Jan  1 00:16 libcrypt.so ->
libcrypt.so.1?.so?
lrwxrwxrwx    1 root     root           17 Jan  1 00:16 libcrypt.so.1 ->
libcrypt-2.2.3.so?
-rwxrwxrwx    1 root     root        74712 Dec 21  2003
libpthread-0.8.so
lrwxrwxrwx    1 root     root           15 Jan  1 00:16 libpthread.so ->
libpthread.so.0?.2
lrwxrwxrwx    1 root     root           17 Jan  1 00:18 libpthread.so.0
-> libpthread-0.8.so?
lrwxrwxrwx    1 root     root           17 Jan  1 00:16
libpthread.so.0.bad -> libpthread-0.8.so?
[root@IA-CPU-9200 lib]$
----------------------------------------------------------------

thank you in advanced

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

* RE: symbolic link with jffs2
  2004-05-11  8:38 symbolic link with jffs2 Jose Pascual
@ 2004-05-11 11:37 ` Jose Pascual
  2004-05-11 11:42   ` David Vrabel
  0 siblings, 1 reply; 6+ messages in thread
From: Jose Pascual @ 2004-05-11 11:37 UTC (permalink / raw)
  To: linux-mtd

Hi,

It seems as strlen of names in symbolic links is wrong or the '\0' is
forgotten at the len of name,
the symlink is correct until first ? appear. Shouln't be a '\0' instead
Where ? appear.

regards
 
> 
> Hi,
> 
> I'm using kernel 2.4.25-vrs2 and my own patch for my specific 
> board. I updated my kernel to 14/4/2004 MTD snapshot (cvs).
> 
> I have mounted a jffs2 fs in mtdblock2 (nor in my case) but 
> when I make symbolic link something doesn't work as you can 
> se below, (appear some ? simbols in name, so symbolic links 
> are broken)
> 
> do you have seen this problem before? any suggestion?
> 
> ----------------------------------------------------------------
> [root@IA-CPU-9200 lib]$ls -la
> total 1534
> drwxrwxrwx    1 root     root            0 Jan  1 00:18 .
> drwxr-xr-x    1 root     root            0 Jan  1 00:17 ..
> -rwxr-xr-x    1 root     root       116853 Dec 21  2003 ld-2.2.3.so
> lrwxrwxrwx    1 root     root           11 Jan  1 00:16 
> ld-linux.so.2 ->
> ld-2.2.3.so?1?.so?
> -rwxr-xr-x    1 root     root      1348598 Dec 21  2003 libc-2.2.4.so
> lrwxrwxrwx    1 root     root           13 Jan  1 00:16 libc.so.6 ->
> libc-2.2.4.so?.so?
> -rwxr-xr-x    1 root     root        29479 Dec 21  2003
> libcrypt-2.2.3.so
> lrwxrwxrwx    1 root     root           13 Jan  1 00:16 libcrypt.so ->
> libcrypt.so.1?.so?
> lrwxrwxrwx    1 root     root           17 Jan  1 00:16 
> libcrypt.so.1 ->
> libcrypt-2.2.3.so?
> -rwxrwxrwx    1 root     root        74712 Dec 21  2003
> libpthread-0.8.so
> lrwxrwxrwx    1 root     root           15 Jan  1 00:16 
> libpthread.so ->
> libpthread.so.0?.2
> lrwxrwxrwx    1 root     root           17 Jan  1 00:18 
> libpthread.so.0
> -> libpthread-0.8.so?
> lrwxrwxrwx    1 root     root           17 Jan  1 00:16
> libpthread.so.0.bad -> libpthread-0.8.so?
> [root@IA-CPU-9200 lib]$
> ----------------------------------------------------------------
> 
> thank you in advanced
> 
> 
> ______________________________________________________
> Linux MTD discussion mailing list 
> http://lists.infradead.org/mailman/listinfo/lin> ux-mtd/
> 
> 
> 
> __________ Información de NOD32 1.755 (20040511) __________
> 
> Este mensaje ha sido analizado con  NOD32 Antivirus System 
http://www.nod32.com



__________ Información de NOD32 1.755 (20040511) __________

Este mensaje ha sido analizado con  NOD32 Antivirus System
http://www.nod32.com

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

* Re: symbolic link with jffs2
  2004-05-11 11:37 ` Jose Pascual
@ 2004-05-11 11:42   ` David Vrabel
  2004-05-11 12:16     ` Jose Pascual
  0 siblings, 1 reply; 6+ messages in thread
From: David Vrabel @ 2004-05-11 11:42 UTC (permalink / raw)
  To: Jose Pascual; +Cc: linux-mtd

Jose Pascual wrote:
> 
> It seems as strlen of names in symbolic links is wrong

Big-endian glibc bug?

David Vrabel
-- 
David Vrabel, Design Engineer

Arcom, Clifton Road           Tel: +44 (0)1223 411200 ext. 3233
Cambridge CB1 7EA, UK         Web: http://www.arcom.com/

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

* RE: symbolic link with jffs2
  2004-05-11 11:42   ` David Vrabel
@ 2004-05-11 12:16     ` Jose Pascual
  2004-05-11 17:01       ` Jose Pascual
  0 siblings, 1 reply; 6+ messages in thread
From: Jose Pascual @ 2004-05-11 12:16 UTC (permalink / raw)
  To: 'David Vrabel'; +Cc: linux-mtd

> > 
> > It seems as strlen of names in symbolic links is wrong
> 
> Big-endian glibc bug?

I'm not sure, I'm working in an ARM CPU with little-endian. Everything
seems okey less symlink,

> 
> David Vrabel
> -- 
> David Vrabel, Design Engineer
> 
> Arcom, Clifton Road           Tel: +44 (0)1223 411200 ext. 3233
> Cambridge CB1 7EA, UK         Web: http://www.arcom.com/
> 
> 
> __________ Información de NOD32 1.756 (20040511) __________
> 
> Este mensaje ha sido analizado con  NOD32 Antivirus System 
http://www.nod32.com



__________ Información de NOD32 1.756 (20040511) __________

Este mensaje ha sido analizado con  NOD32 Antivirus System
http://www.nod32.com

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

* RE: symbolic link with jffs2
  2004-05-11 12:16     ` Jose Pascual
@ 2004-05-11 17:01       ` Jose Pascual
  2004-05-12  8:42         ` Ian Campbell
  0 siblings, 1 reply; 6+ messages in thread
From: Jose Pascual @ 2004-05-11 17:01 UTC (permalink / raw)
  To: linux-mtd

hi

I have found that symlink is broken if the length of char of the name is
pointing is odd
but not with even.

any suggestion?


> -----Mensaje original-----
> De: linux-mtd-bounces@lists.infradead.org 
> [mailto:linux-mtd-bounces@lists.infradead.org] En nombre de 
> Jose Pascual
> Enviado el: martes, 11 de mayo de 2004 14:16
> Para: 'David Vrabel'
> CC: linux-mtd@lists.infradead.org
> Asunto: RE: symbolic link with jffs2
> 
> 
> > > 
> > > It seems as strlen of names in symbolic links is wrong
> > 
> > Big-endian glibc bug?
> 
> I'm not sure, I'm working in an ARM CPU with little-endian. 
> Everything seems okey less symlink,
> 
> > 
> > David Vrabel
> > --
> > David Vrabel, Design Engineer
> > 
> > Arcom, Clifton Road           Tel: +44 (0)1223 411200 ext. 3233
> > Cambridge CB1 7EA, UK         Web: http://www.arcom.com/
> > 
> > 
> > __________ Información de NOD32 1.756 (20040511) __________
> > 
> > Este mensaje ha sido analizado con  NOD32 Antivirus System
> http://www.nod32.com
> 
> 
> 
> __________ Información de NOD32 1.756 (20040511) __________
> 
> Este mensaje ha sido analizado con  NOD32 Antivirus System
> http://www.nod32.com
> 
> 
> 
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/
> 
> 
> __________ Información de NOD32 1.756 (20040511) __________
> 
> Este mensaje ha sido analizado con  NOD32 Antivirus System
> http://www.nod32.com
> 
> 
> 
> __________ Información de NOD32 1.756 (20040511) __________
> 
> Este mensaje ha sido analizado con  NOD32 Antivirus System
> http://www.nod32.com
> 
> 

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

* RE: symbolic link with jffs2
  2004-05-11 17:01       ` Jose Pascual
@ 2004-05-12  8:42         ` Ian Campbell
  0 siblings, 0 replies; 6+ messages in thread
From: Ian Campbell @ 2004-05-12  8:42 UTC (permalink / raw)
  To: Linux MTD Mailing List

On Tue, 2004-05-11 at 18:01, Jose Pascual wrote:

> I have found that symlink is broken if the length of char of the name is
> pointing is odd but not with even.
> 
> any suggestion?

Way back in the mists of time I had a similar problem which turned out
to be due to copy_from/copy_to in my mapping driver not handling
unaligned copies properly.

I'm not sure if I am remembering right and I can't find any link to any
details -- but I would start by adding some print statements to
copy_from and making sure it is working right in all cases.

Ian.

-- 
Ian Campbell, Senior Design Engineer
                                        Web: http://www.arcom.com
Arcom, Clifton Road, 			Direct: +44 (0)1223 403 465
Cambridge CB1 7EA, United Kingdom	Phone:  +44 (0)1223 411 200

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

end of thread, other threads:[~2004-05-12  8:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-11  8:38 symbolic link with jffs2 Jose Pascual
2004-05-11 11:37 ` Jose Pascual
2004-05-11 11:42   ` David Vrabel
2004-05-11 12:16     ` Jose Pascual
2004-05-11 17:01       ` Jose Pascual
2004-05-12  8:42         ` Ian Campbell

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