Date: Sun, 13 Feb 2011 20:21:39 -0500 From: Roger Hammerstein <cheeky.m@live.com> To: <freebsd-fs@freebsd.org> Subject: ext2fs can't read symlinks Message-ID: <BAY147-w28825DE4F0789CE231D7D6F9D00@phx.gbl>
next in thread | raw e-mail | index | archive | help
Hello. I have a 2tb Seagate ST32000542AS (4k sectors) with ext2fs that can't seem to read symlinks from a linux-created ext2fs. =20 I was rsync migrating files from a linux machine to this freebsd=2C and boo= ted an Ubuntu livecd to partition the disk and make the filesystem. I partitio= ned it into a 1.5tb partition and a 500 gig partition. I am getting read errors on some symlinks on an ext2 filesystem=2C but they read fine when I boot an Ubuntu live cd. Smartctl shows no errors for the = disk. The filesystem also checks fine with fsck.ext2fs on both freebsd and Ubuntu= live cd. I rebuilt the kernel earlier this week. FreeBSD butter 9.0-CURRENT FreeBSD 9.0-CURRENT #10: Wed Feb 9 12:14:02 EST=20 2011 root@butter:/usr/obj/usr/src/sys/GENERIC amd64 Here's the error: Feb 10 13:08:23 butter kernel: g_vfs_done():ada2s1[READ(offset=3D-963020587= 008=2C length=3D4096)]error =3D 5 The negative offset looks wrong=2C and the length is always 4k multiples. ada2 at siisch2 bus 0 scbus2 target 0 lun 0 ada2: <ST32000542AS CC34> ATA-8 SATA 2.x device ada2: Serial Number XXXXXXXXX ada2: 300.000MB/s transfers (SATA 2.x=2C UDMA6=2C PIO 8192bytes) ada2: Command Queueing enabled ada2: 1907729MB (3907029168 512 byte sectors: 16H 63S/T 16383C) mount: /dev/ada2s1 on /a (ext2fs=2C local) ls -la in the problem directory shows: drwxrwxrwx 2 2006 113 4096 May 18 2008 ABC drwxrwxrwx 2 2006 113 4096 May 18 2008 DEF drwxrwxrwx 4 2006 113 4096 May 18 2008 GHI ls: ./JKL: Input/output error lrwxrwxrwx 1 2006 2006 83 Jul 13 2005 JKL drwxrwxrwx 4 2006 113 4096 May 18 2008 JKL [123456] drwxrwxrwx 2 2006 113 4096 May 18 2008 MNO There's a symlink named JKL pointing into the 'JKL [123456]' directory. a 'stat *' in the directory shows the link:: 100 75431952 lrwxrwxrwx 1 (1008) (1008) 301758464 83 "Feb 10 12:35:36 2011" "Jul 13 22:35:44 2005" "Feb 7 18:49:02 2011" "Dec 31 18:59:59 1969"=20 4096 8 0 JKL 100 62201925 drwxrwxrwx 4 (1008) (503) 248838206 4096=20 "Feb 10 13:10:22 2011" "May 18 04:06:20 2008" "Feb 7 18:58:26 2011"=20 "Dec 31 18:59:59 1969" 4096 8 0 JKL [123456] You can see that the symlink doesn't display the usual "-> " and the target= of the symlink in the ls or stat output. What other commands could I run to provide more information on this? Other symlinks on this filesystem also generate the g_vfs_done errors. Thanks. =
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BAY147-w28825DE4F0789CE231D7D6F9D00>
