aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/venti/srv/mirrorarenas.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2007-04-27 18:14:45 +0000
committerrsc <devnull@localhost>2007-04-27 18:14:45 +0000
commite46cacb0ea9585214d69351de895e7f460f4846f (patch)
treee7d7d724205b7510d30bb53ebf03de3e26c962bd /src/cmd/venti/srv/mirrorarenas.c
parent7e4524011b432ca5225d9768ba7f11a377776fbf (diff)
downloadplan9port-e46cacb0ea9585214d69351de895e7f460f4846f.tar.gz
plan9port-e46cacb0ea9585214d69351de895e7f460f4846f.tar.bz2
plan9port-e46cacb0ea9585214d69351de895e7f460f4846f.zip
add flushpart; avoid O_DIRECT on linux
Diffstat (limited to 'src/cmd/venti/srv/mirrorarenas.c')
-rw-r--r--src/cmd/venti/srv/mirrorarenas.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/venti/srv/mirrorarenas.c b/src/cmd/venti/srv/mirrorarenas.c
index 0555336a..77634e84 100644
--- a/src/cmd/venti/srv/mirrorarenas.c
+++ b/src/cmd/venti/srv/mirrorarenas.c
@@ -80,7 +80,7 @@ ereadpart(Part *p, u64int offset, u8int *buf, u32int count)
int
ewritepart(Part *p, u64int offset, u8int *buf, u32int count)
{
- if(writepart(p, offset, buf, count) != count){
+ if(writepart(p, offset, buf, count) != count || flushpart(p) < 0){
chat("%T writepart %s at %#llux+%ud: %r\n", p->name, offset, count);
return -1;
}