Re: GEOM is too verbose

From: Poul-Henning Kamp <phk_at_phk.freebsd.dk>
Date: Sat, 31 Jul 2004 18:37:59 +0200
In message <410BBB74.9010804_at_portaone.com>, Maxim Sobolev writes:
>Poul-Henning Kamp wrote:
>
>> In message <410BB699.3060803_at_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_at_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.
Received on Sat Jul 31 2004 - 14:38:05 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:04 UTC