Re: GEOM is too verbose

From: Maxim Sobolev (sobomax_at_portaone.com)
Date: 07/31/04

  • Next message: Maxim Sobolev: "Re: GEOM is too verbose"
    Date: Sat, 31 Jul 2004 20:15:30 +0300
    To: Poul-Henning Kamp <phk@phk.freebsd.dk>
    
    

    Poul-Henning Kamp wrote:
    > 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.

    IMO it should be conditional on DEBUG, because it is not something that
    happens during normal operation.

    -Maxim
    _______________________________________________
    freebsd-current@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-current
    To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"


  • Next message: Maxim Sobolev: "Re: GEOM is too verbose"

    Relevant Pages

    • Re: GEOM is too verbose
      ... >It is python program, so that ioctl() is out of question. ... >diskinfo is possible but is not portable across different unices. ...
      (freebsd-current)
    • Re: GEOM is too verbose
      ... I doubt that name of this ioctl is the same on the ... >> different unices, so that binary search is still the best from the ... working code for perfection sake is not one of them. ...
      (freebsd-current)
    • Re: GEOM is too verbose
      ... >>It is python program, so that ioctl() is out of question. ... > Hm python has ioctl support, ...
      (freebsd-current)