fdisk/geom, AoE 5.2.1

Poul-Henning Kamp phk at phk.freebsd.dk
Thu Oct 7 07:25:17 PDT 2004


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.


More information about the freebsd-arch mailing list