Re: GEOM is too verbose

From: Poul-Henning Kamp (phk_at_phk.freebsd.dk)
Date: 07/31/04

  • Next message: Daniel Lang: "Hangs if witness/invariants are disabled"
    To: Maxim Sobolev <sobomax@portaone.com>
    Date: Sat, 31 Jul 2004 17:19:04 +0200
    
    

    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 ?

    -- 
    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.
    _______________________________________________
    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: Daniel Lang: "Hangs if witness/invariants are disabled"

    Relevant Pages

    • Re: Extreamly large Hashtable
      ... > A binary search is the fastest and most easily implemented scheme, ... > lookup scheme, including databases going through an index. ... > sorted flat file and doing a low level binary search directly on that flat ... the hashtable will require 1 disk seek to do the same. ...
      (comp.lang.java.programmer)
    • Re: Compatible fstat()
      ... it doubles the guessed size of the disk until ... and then uses binary search to figure out ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Extreamly large Hashtable
      ... > A binary search is the fastest and most easily implemented scheme, ... > lookup scheme, including databases going through an index. ... > system which caches disk info, removing that load from the application ... b-tree scheme these days. ...
      (comp.lang.java.programmer)