[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
fdisk/geom, AoE 5.2.1
- Subject: fdisk/geom, AoE 5.2.1
- From: phk at phk.freebsd.dk (Poul-Henning Kamp)
- Date: Thu Oct 7 07:25:19 2004
In message <Pine_(_dot_)_LNX_(_dot_)_4_(_dot_)_60_(_dot_)_0410070951230_(_dot_)_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_(_dot_)_ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
Visit your host, monkey.org