From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 22 21:46:08 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 745A616A937 for ; Thu, 22 Jun 2006 21:46:08 +0000 (UTC) (envelope-from dave@dogwood.com) Received: from ms-smtp-04.socal.rr.com (ms-smtp-04.socal.rr.com [66.75.162.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id 49CB843DF6 for ; Thu, 22 Jun 2006 21:45:29 +0000 (GMT) (envelope-from dave@dogwood.com) Received: from white.dogwood.com (white.dogwood.com [66.91.140.178]) by ms-smtp-04.socal.rr.com (8.13.6/8.13.6) with ESMTP id k5MLjS2D011314; Thu, 22 Jun 2006 14:45:28 -0700 (PDT) Received: from white.dogwood.com (localhost.dogwood.com [127.0.0.1]) by white.dogwood.com (8.13.4/8.13.4) with ESMTP id k5MLjR46010077; Thu, 22 Jun 2006 11:45:27 -1000 (HST) (envelope-from dave@white.dogwood.com) Received: (from dave@localhost) by white.dogwood.com (8.13.4/8.13.1/Submit) id k5MLjROJ010076; Thu, 22 Jun 2006 11:45:27 -1000 (HST) (envelope-from dave) From: Dave Cornejo Message-Id: <200606222145.k5MLjROJ010076@white.dogwood.com> In-Reply-To: <17563.3550.496244.953904@bhuda.mired.org> To: Mike Meyer Date: Thu, 22 Jun 2006 11:45:27 -1000 (HST) X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (white.dogwood.com [127.0.0.1]); Thu, 22 Jun 2006 11:45:27 -1000 (HST) X-Virus-Scanned: Symantec AntiVirus Scan Engine Cc: freebsd-hackers@freebsd.org, Andrew Subject: Re: Coding question: finding the size of a block device X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 21:46:08 -0000 There are no block devices in FreeBSD, only character devices http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/driverbasics-block.html dave c > In <1151008839.2360.30.camel@LatitudeFC5.network>, Andrew typed: > > So I guess my question is: is there a POSIX compatible function that > > will allow me to check the size of a given block device? > > I'd be surprised - POSIX doesn't seem to deal with block devices at all. > > Checking the sources to df, it uses statfs to get the > information. Linux appears to have it as well, so it may be portable. > > -- > Mike Meyer http://www.mired.org/consulting.html > Independent Network/Unix/Perforce consultant, email for more information. > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" >