From owner-freebsd-fs@FreeBSD.ORG Mon Feb 14 01:33:38 2011 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F08B3106566C for ; Mon, 14 Feb 2011 01:33:38 +0000 (UTC) (envelope-from cheeky.m@live.com) Received: from bay0-omc4-s23.bay0.hotmail.com (bay0-omc4-s23.bay0.hotmail.com [65.54.190.225]) by mx1.freebsd.org (Postfix) with ESMTP id DAD9F8FC08 for ; Mon, 14 Feb 2011 01:33:38 +0000 (UTC) Received: from BAY147-W28 ([65.54.190.199]) by bay0-omc4-s23.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Sun, 13 Feb 2011 17:21:38 -0800 Message-ID: X-Originating-IP: [66.189.65.82] From: Roger Hammerstein To: Date: Sun, 13 Feb 2011 20:21:39 -0500 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 14 Feb 2011 01:21:38.0945 (UTC) FILETIME=[87616F10:01CBCBE5] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: ext2fs can't read symlinks X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Feb 2011 01:33:39 -0000 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: 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. =