fdisk/geom, AoE 5.2.1

Poul-Henning Kamp phk at phk.freebsd.dk
Sun Jul 3 01:03:20 GMT 2005


In message <Pine.LNX.4.60.0410070951230.25784 at athena>, Sam writes:

>Arg.  My goof.  I wrote zeros, read zeros and assumed i could
>write to the disk.  In fact I could - even when I wanted to
>read.  I won't go into the details, but suffice it to say you
>can't do:
>
>if (bp->bio_flags & BIO_READ)
> 	// do read
>else
> 	// do write
>
>and expect the correct behaviour. :)

Please be aware that we have _three_ I/O operations under 5.x and
later:  BIO_READ, BIO_WRITE and BIO_DELETE.  Just return EOPNOTSUPP
for BIO_DELETE.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at 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-arch at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe at freebsd.org"



More information about the freebsd-geom mailing list