Date: Thu, 22 Jun 2006 17:38:38 -0400 From: Mike Meyer <mwm-keyword-freebsdhackers2.e313df@mired.org> To: Andrew <andrew.chace@gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: Coding question: finding the size of a block device Message-ID: <17563.3550.496244.953904@bhuda.mired.org> In-Reply-To: <1151008839.2360.30.camel@LatitudeFC5.network> References: <1151008839.2360.30.camel@LatitudeFC5.network>
next in thread | previous in thread | raw e-mail | index | archive | help
In <1151008839.2360.30.camel@LatitudeFC5.network>, Andrew <andrew.chace@gmail.com> 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 -- Mike Meyer <mwm@mired.org> http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?17563.3550.496244.953904>