From owner-freebsd-fs@FreeBSD.ORG Tue Oct 12 11:07:04 2010 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 8E7C5106566C for ; Tue, 12 Oct 2010 11:07:04 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward3.mail.yandex.net (forward3.mail.yandex.net [77.88.46.8]) by mx1.freebsd.org (Postfix) with ESMTP id 39BED8FC15 for ; Tue, 12 Oct 2010 11:07:04 +0000 (UTC) Received: from smtp4.mail.yandex.net (smtp4.mail.yandex.net [77.88.46.104]) by forward3.mail.yandex.net (Yandex) with ESMTP id 74FD556D8C7F; Tue, 12 Oct 2010 14:51:32 +0400 (MSD) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1286880692; bh=oWi0EmvH3HS/M2ZkJzVgAQSC3AwNge+6uiVTiGRN8aA=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type; b=myXsDiT+UzqstsGXeMIJtZ+z4DXHOVhD8wU/T4vNJfdTlLcTAM5WEbOvDlJVZW7ji ywzOlj3VFVxFl+PKo5II1hnl9fxo5Qu8E1ABRBow8M8a5EdeefgpkY3Z4itv7FsC9o u/vG43fvObrV6eDsDs00LQxqc4Lpcs0KuBnb4XzE= Received: from [127.0.0.1] (mail.kirov.so-cdu.ru [77.72.136.145]) by smtp4.mail.yandex.net (Yandex) with ESMTPSA id 4184C1280A5; Tue, 12 Oct 2010 14:51:32 +0400 (MSD) Message-ID: <4CB43DA6.9010907@yandex.ru> Date: Tue, 12 Oct 2010 14:51:18 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla Thunderbird 1.5 (FreeBSD/20051231) MIME-Version: 1.0 To: Tobias Fredriksson References: <6AE65535-DCCE-46A5-BBB9-358FEB34C18C@gmail.com> In-Reply-To: <6AE65535-DCCE-46A5-BBB9-358FEB34C18C@gmail.com> X-Enigmail-Version: 1.1.1 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigB80D6213E4F798D3B9756DAE" X-Yandex-TimeMark: 1286880692 X-Yandex-Spam: 1 X-Yandex-Front: smtp4.mail.yandex.net Cc: freebsd-fs@freebsd.org Subject: Re: Growing large UFS over 16TB? 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: Tue, 12 Oct 2010 11:07:04 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigB80D6213E4F798D3B9756DAE Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable On 12.10.2010 0:18, Tobias Fredriksson wrote: > I understand the reason for this, its trying to read a block and the in= teger just wrapped around. > Nice. The relevant lines from growfs.c are >=20 > static void rdfs(ufs2_daddr_t bno, size_t size, void *bf, int fsi) { [.= =2E.] if (bno < 0) { err(32, > "rdfs: attempting to read negative block number"); } [...] >=20 > Just for fun I commented the if part out and recompiled. growfs: rdfs: = read error: > -4889807711788704476: Input/output error It seems that 20T is not so big to overflow int64_t. I think it can be so= mewhere is rdfs called from. You can try to add abort(3) call to the if part and recompile with DEBUG_= FLAGS=3D-g. When this if statement will be triggered again growfs will drop core file= and you could inspect it with gdb. But i don't know how is is dangerous for your = FS. --=20 WBR, Andrey V. Elsukov --------------enigB80D6213E4F798D3B9756DAE Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) iQEcBAEBAgAGBQJMtD2rAAoJEAHF6gQQyKF6wpgH/jOUDTI/byhncLUNY+KS1Vg8 TSE61JTC+4auf1AxXurT04uYtBPE5KArbdU51cL9/YxIPdtazd9bIeEsrJC0Yj7j VXwkYQ/+k11LMWUOtuq/fHB1C2ZZ5bIalU6QCIUEhZbukGqZnaRAhVkM/0qvZFzt Rg1iTX5g0mXzGtImWWGSHGNcW57/nTmDUZuUG0icfeCsXTvH9ezosclsfUIet0Bh z6RBLV8MvfSAvprieluGgnHc+AWRl/RZkweOVBH+KDD4kMos6vBpAqscqp871d+H MEoPpcesdUP/SOAOVB3lqld8Vpl4rzdtFs+6XmM8fmWuRaZmUMdgwuyFfiO7zKw= =DPpW -----END PGP SIGNATURE----- --------------enigB80D6213E4F798D3B9756DAE--