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 <[EMAIL PROTECTED]>, Andrew <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>                
> 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 "[EMAIL PROTECTED]"
> 
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to