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 truncate is not a defined operation...



details:   https://anonhg.NetBSD.org/src/rev/f1e2f7f7bf41
branches:  trunk
changeset: 326970:f1e2f7f7bf41
user:      pooka <pooka%NetBSD.org@localhost>
date:      Mon Feb 24 11:43:33 2014 +0000

description:
truncate is not a defined operation for host files

diffstat:

 sys/rump/librump/rumpvfs/rumpfs.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r d368b710393d -r f1e2f7f7bf41 sys/rump/librump/rumpvfs/rumpfs.c
--- a/sys/rump/librump/rumpvfs/rumpfs.c Mon Feb 24 10:50:40 2014 +0000
+++ b/sys/rump/librump/rumpvfs/rumpfs.c Mon Feb 24 11:43:33 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rumpfs.c,v 1.124 2014/02/07 15:29:23 hannken Exp $     */
+/*     $NetBSD: rumpfs.c,v 1.125 2014/02/24 11:43:33 pooka Exp $       */
 
 /*
  * Copyright (c) 2009, 2010, 2011 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rumpfs.c,v 1.124 2014/02/07 15:29:23 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rumpfs.c,v 1.125 2014/02/24 11:43:33 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/atomic.h>
@@ -965,7 +965,8 @@
 
        if (vp->v_type == VREG &&
            vap->va_size != VSIZENOTSET &&
-           vap->va_size != rn->rn_dlen) {
+           vap->va_size != rn->rn_dlen &&
+           (rn->rn_flags & RUMPNODE_ET_PHONE_HOST) == 0) {
                void *newdata;
                size_t copylen, newlen;
 



Home | Main Index | Thread Index | Old Index