Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/fs/udf On growing a node that was recorded inside the (E...



details:   https://anonhg.NetBSD.org/src/rev/77505f751937
branches:  trunk
changeset: 787778:77505f751937
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Wed Jul 03 11:50:59 2013 +0000

description:
On growing a node that was recorded inside the (E)FE, don't forget to set the
size of the node to the NEW size. This was reported by the `t_io
udf_shrinkfile' testcase.

Fixes PR kern/47985

diffstat:

 sys/fs/udf/udf_allocation.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r a699b1d8c126 -r 77505f751937 sys/fs/udf/udf_allocation.c
--- a/sys/fs/udf/udf_allocation.c       Wed Jul 03 05:49:36 2013 +0000
+++ b/sys/fs/udf/udf_allocation.c       Wed Jul 03 11:50:59 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: udf_allocation.c,v 1.32 2011/06/16 09:21:02 hannken Exp $ */
+/* $NetBSD: udf_allocation.c,v 1.33 2013/07/03 11:50:59 reinoud Exp $ */
 
 /*
  * Copyright (c) 2006, 2008 Reinoud Zandijk
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__KERNEL_RCSID(0, "$NetBSD: udf_allocation.c,v 1.32 2011/06/16 09:21:02 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: udf_allocation.c,v 1.33 2013/07/03 11:50:59 reinoud Exp $");
 #endif /* not lint */
 
 
@@ -2706,8 +2706,8 @@
                        error = 0;
 
                        /* set new size for uvm */
-                       uvm_vnp_setsize(vp, old_size);
                        uvm_vnp_setwritesize(vp, new_size);
+                       uvm_vnp_setsize(vp, new_size);
 
 #if 0
                        /* zero append space in buffer */



Home | Main Index | Thread Index | Old Index