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/c4e632ab8253
branches:  trunk
changeset: 793710:c4e632ab8253
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 739c0a840b9e -r c4e632ab8253 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