From owner-freebsd-questions@FreeBSD.ORG Mon Feb 16 14:28:42 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0441316A4CE for ; Mon, 16 Feb 2004 14:28:42 -0800 (PST) Received: from Stalker.alfacom.net (stalker.alfacom.net [193.108.124.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id ECC9743D1D for ; Mon, 16 Feb 2004 14:28:40 -0800 (PST) (envelope-from vkushnir@Alfacom.net) Received: from kushnir1.kiev.ua (124-246.dialup.Alfacom.net [193.108.124.246]) by Stalker.alfacom.net (8.12.10/8.12.10) with ESMTP id i1GMSXaD016875; Tue, 17 Feb 2004 00:28:35 +0200 (EET) Received: from kushnir1.kiev.ua (kushnir1.kiev.ua [10.0.0.1]) by kushnir1.kiev.ua (8.12.11/8.12.11) with ESMTP id i1GMSWD8006648; Tue, 17 Feb 2004 00:28:32 +0200 (EET) (envelope-from vkushnir@Alfacom.net) From: Vladimir Kushnir Organization: BITP To: freebsd-questions@freebsd.org Date: Tue, 17 Feb 2004 00:28:30 +0200 User-Agent: KMail/1.6.51 References: <402C55C9.9040809@iitbombay.org> <200402160100.19104.vkushnir@Alfacom.net> <4030458B.1080007@iitbombay.org> In-Reply-To: <4030458B.1080007@iitbombay.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200402170028.30788.vkushnir@Alfacom.net> cc: Niraj Kumar Subject: Re: Linux patch for reading ufs2 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Feb 2004 22:28:42 -0000 Hi, This is /usr/ports/distfiles/emovix-0.8.0.tar.gz - regular file, "ls -li": 1842130 -rw-r--r-- 1 vkushnir wheel 8636010 Jan 5 23:43 /usr/ports/distfiles/emovix-0.8.0.tar.gz I don't know precisely what's relevant but after (lengthy indeed) debugging information Linux gives: ...... Feb 15 18:33:58 localhost kernel: (fs/ufs/inode.c, 543), ufs_read_inode: ENTER, ino 1842130 Feb 15 18:33:58 localhost kernel: (fs/ufs/inode.c, 636), ufs_read_inode: Reading ufs2 inode, ino 184213 Feb 15 18:33:58 localhost kernel: (fs/ufs/inode.c, 704), ufs_read_inode: EXIT Feb 15 18:34:06 localhost kernel: attempt to access beyond end of device Feb 15 18:34:06 localhost kernel: hde10: rw=0, want=2147483880, limit=42732580 Feb 15 18:34:06 localhost kernel: Buffer I/O error on device hde10, logical block 536870969 Feb 15 18:34:06 localhost kernel: attempt to access beyond end of device Feb 15 18:34:06 localhost kernel: hde10: rw=0, want=2147483884, limit=42732580 Feb 15 18:34:06 localhost kernel: Buffer I/O error on device hde10, logical block 536870970 Feb 15 18:34:06 localhost kernel: attempt to access beyond end of device Feb 15 18:34:06 localhost kernel: hde10: rw=0, want=2147483888, limit=42732580 Feb 15 18:34:06 localhost kernel: Buffer I/O error on device hde10, logical block 536870971 Feb 15 18:34:06 localhost kernel: attempt to access beyond end of device Feb 15 18:34:06 localhost kernel: hde10: rw=0, want=2147483892, limit=42732580 Feb 15 18:34:06 localhost kernel: Buffer I/O error on device hde10, logical block 536870972 and so on - several blocks in this region (here hd10 == ad0s2e, /usr, mounted under Linux with "-r -t ufs -o ufstype=ufs2"). And finally it refuses to copy or untar this file. This is the only information I cn see there. At the same time when I boot into FreeBSD - no problems whatsoever. On Monday 16 February 2004 06:22, Niraj Kumar wrote: > Hi, > > Thanks for testing this stuff. > > Vladimir Kushnir wrote: > >>First off - thanks a bunch, now I don't need to reboot every time I > >> forgot to copy some files to Linux. > >>Tested and works here: ad0: 57241MB ; > >>ad0s2 - current -CURRENT (everything in UFS2); > >>ad0s5 - Mandrake 9.2 + kernel 2.6.2 + p{1,2}.txt > >> > >>There is a file though (emovix distro in ports/distfiles) which Linux > >> gives an input/output error on. More precisely, it gives me > >>"attempt to access beyond end of device > >>Buffer I/O error on device hde10, logical block ..." (several blocks). > >>Under FreeBSD - no errors on this file so it doesn't seem like HD > >> problem. > > Well , what kind of file is this ? Is it a normal file or some device > file , or symobolic link etc ...? > Can you send me the 'dmesg' output for this error (if there is any) ? > FYI , I have enabled some debugging messages in this patch , so you > should be getting a lot > of debugging messages in 'dmesg' . > > Any other input on this problem is welcome. > > Niraj > Regards, Vladimir