Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump/librump/rumpvfs never open rumpblk backend with O_T...
details: https://anonhg.NetBSD.org/src/rev/5e0b7ad12c06
branches: trunk
changeset: 761617:5e0b7ad12c06
user: pooka <pooka%NetBSD.org@localhost>
date: Wed Feb 02 15:55:22 2011 +0000
description:
never open rumpblk backend with O_TRUNC
XXX: the rumpuser_open interface needs a beating
diffstat:
sys/rump/librump/rumpvfs/rumpblk.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 7fee7ac28a0e -r 5e0b7ad12c06 sys/rump/librump/rumpvfs/rumpblk.c
--- a/sys/rump/librump/rumpvfs/rumpblk.c Wed Feb 02 15:28:38 2011 +0000
+++ b/sys/rump/librump/rumpvfs/rumpblk.c Wed Feb 02 15:55:22 2011 +0000
@@ -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;
Home |
Main Index |
Thread Index |
Old Index