Module Name:    src
Committed By:   pooka
Date:           Wed Feb  2 15:55:22 UTC 2011

Modified Files:
        src/sys/rump/librump/rumpvfs: rumpblk.c

Log Message:
never open rumpblk backend with O_TRUNC
XXX: the rumpuser_open interface needs a beating


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/sys/rump/librump/rumpvfs/rumpblk.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/rump/librump/rumpvfs/rumpblk.c
diff -u src/sys/rump/librump/rumpvfs/rumpblk.c:1.42 src/sys/rump/librump/rumpvfs/rumpblk.c:1.43
--- src/sys/rump/librump/rumpvfs/rumpblk.c:1.42	Mon Sep  6 18:03:57 2010
+++ src/sys/rump/librump/rumpvfs/rumpblk.c	Wed Feb  2 15:55:22 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: rumpblk.c,v 1.42 2010/09/06 18:03:57 pooka Exp $	*/
+/*	$NetBSD: rumpblk.c,v 1.43 2011/02/02 15:55:22 pooka Exp $	*/
 
 /*
  * Copyright (c) 2009 Antti Kantee.  All Rights Reserved.
@@ -52,7 +52,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rumpblk.c,v 1.42 2010/09/06 18:03:57 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rumpblk.c,v 1.43 2011/02/02 15:55:22 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/buf.h>
@@ -488,6 +488,7 @@
 
 	if (rblk->rblk_fd != -1)
 		return 0; /* XXX: refcount, open mode */
+	flag &= ~O_TRUNC;
 	fd = rumpuser_open(rblk->rblk_path, OFLAGS(flag), &error);
 	if (error)
 		return error;

Reply via email to