simplify disksort, please review.

Poul-Henning Kamp phk at phk.freebsd.dk
Thu Jun 9 19:42:24 GMT 2005


In message <20050609193008.GB837 at darkness.comp.waw.pl>, Pawel Jakub Dawidek writes:

>The one example of how the order can be broken (write(offset, size)):
>
>	write(1024, 512)
>	write(0, 2048)

If you issue these two requests just like that, you get no guarantee
which order they get written in.

It's not just disksort which might surprise you, tagged queuing and
write caches may mess up your day as well.

-- 
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