From owner-freebsd-bugs@FreeBSD.ORG Mon Jul 12 19:50:04 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6FA601065670 for ; Mon, 12 Jul 2010 19:50:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 5F9528FC1E for ; Mon, 12 Jul 2010 19:50:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o6CJo3jX050962 for ; Mon, 12 Jul 2010 19:50:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o6CJo3qN050961; Mon, 12 Jul 2010 19:50:03 GMT (envelope-from gnats) Date: Mon, 12 Jul 2010 19:50:03 GMT Message-Id: <201007121950.o6CJo3qN050961@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Daniel Feenberg Cc: Subject: Re: bin/148471: fdisk(8) prompts with negative partition size [regression] X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Feenberg List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jul 2010 19:50:04 -0000 The following reply was made to PR bin/148471; it has been noted by GNATS. From: Daniel Feenberg To: Tom Couch Cc: bug-followup@FreeBSD.org Subject: Re: bin/148471: fdisk(8) prompts with negative partition size [regression] Date: Mon, 12 Jul 2010 15:37:50 -0400 (EDT) On Mon, 12 Jul 2010, Tom Couch wrote: > What is the drive model and serial number? They are Samsung HD203WI. Here is the output of diskinfo: diskinfo -ctv /dev/da0 /dev/da0 512 # sectorsize 1999988850688 # mediasize in bytes (1.8T) 3906228224 # mediasize in sectors 243151 # Cylinders according to firmware. 255 # Heads according to firmware. 63 # Sectors according to firmware. WZ402752F36918001E9B # Disk ident. > > The 3ware 9500S controller will not support > 2TB drives. > OK, but this drive is south of 2TB. I subsequently newfs'ed the bare drive, and am testing the result now. It appears to me that the filesystem is corrupted in some way, but I don't have sufficient information yet to file another bug report. So far the problems appear only after writing over 1 TB to the drive, which takes many hours. (The problem seems to be that the filesize measured by wc does not correspond to the filesize reported by ls or the space used by reported by df). In any case, even if the 9500S-8 is providing bad data, it would seem prudent for fdisk to do some range checking before suggesting a default action that is physically impossible. Thank you Daniel Feenberg feenberg@nber.org > Tom Couch >