From owner-freebsd-current@FreeBSD.ORG Sat Jul 31 16:38:05 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0D02716A4CE for ; Sat, 31 Jul 2004 16:38:05 +0000 (GMT) Received: from pasmtp.tele.dk (pasmtp.tele.dk [193.162.159.95]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5100243D2D for ; Sat, 31 Jul 2004 16:38:04 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (0x50a07c53.naenxx7.adsl-dhcp.tele.dk [80.160.124.83]) by pasmtp.tele.dk (Postfix) with ESMTP id 80DD11EC31E; Sat, 31 Jul 2004 18:38:00 +0200 (CEST) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.11/8.12.11) with ESMTP id i6VGbx3T064022; Sat, 31 Jul 2004 18:37:59 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Maxim Sobolev From: "Poul-Henning Kamp" In-Reply-To: Your message of "Sat, 31 Jul 2004 18:32:04 +0300." <410BBB74.9010804@portaone.com> Date: Sat, 31 Jul 2004 18:37:59 +0200 Message-ID: <64021.1091291879@critter.freebsd.dk> Sender: phk@critter.freebsd.dk cc: current@freebsd.org Subject: Re: GEOM is too verbose X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Jul 2004 16:38:05 -0000 In message <410BBB74.9010804@portaone.com>, Maxim Sobolev writes: >Poul-Henning Kamp wrote: > >> In message <410BB699.3060803@portaone.com>, Maxim Sobolev writes: >> >>>Hi Poul, >>> >>>I use application that detects size of disk using binary search. On >>>current each attempt to read beyond disk boundary causes message on >>>console, which is annoying. Can you please turn them off, since >>>apparently they serve no meaningful purpose. >> >> >> Why don't you just use ioctl(DIOC_MEDIASIZE) ? >> >> or the diskinfo(8) program ? > >It is python program, so that ioctl() is out of question. Usage of >diskinfo is possible but is not portable across different unices. sigh... yeah, we should have fixed that 30 years ago. Anyway, the message is intentional because you really have a bug when you try to read past the end of a disk. Typically this means that a filesystem has lost its marbles. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.