Source-Changes-HG archive

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

[src/netbsd-6]: src/lib/libperfuse Pull up following revision(s) (requested b...



details:   https://anonhg.NetBSD.org/src/rev/01d3c1169032
branches:  netbsd-6
changeset: 776775:01d3c1169032
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Sun Nov 09 06:29:22 2014 +0000

description:
Pull up following revision(s) (requested by manu in ticket #1167):
        lib/libperfuse/ops.c: revision 1.76
Report allocated bytes on FS correctly, instead of using file size
(which is wrong for sparse files)

diffstat:

 lib/libperfuse/ops.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 2a637e1b3522 -r 01d3c1169032 lib/libperfuse/ops.c
--- a/lib/libperfuse/ops.c      Sun Nov 09 06:28:03 2014 +0000
+++ b/lib/libperfuse/ops.c      Sun Nov 09 06:29:22 2014 +0000
@@ -1,4 +1,4 @@
-/*  $NetBSD: ops.c,v 1.50.2.14 2014/11/09 06:16:50 msaitoh Exp $ */
+/*  $NetBSD: ops.c,v 1.50.2.15 2014/11/09 06:29:22 msaitoh Exp $ */
 
 /*-
  *  Copyright (c) 2010-2011 Emmanuel Dreyfus. All rights reserved.
@@ -321,7 +321,7 @@
        vap->va_gen = 0; 
        vap->va_flags = 0;
        vap->va_rdev = fa->rdev;
-       vap->va_bytes = fa->size;
+       vap->va_bytes = fa->blocks * S_BLKSIZE;
        vap->va_filerev = (u_quad_t)PUFFS_VNOVAL;
        vap->va_vaflags = 0;
 



Home | Main Index | Thread Index | Old Index