Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libperfuse Report allocated bytes on FS correctly, inste...
details: https://anonhg.NetBSD.org/src/rev/37cc1939787a
branches: trunk
changeset: 332871:37cc1939787a
user: manu <manu%NetBSD.org@localhost>
date: Sat Oct 11 04:19:38 2014 +0000
description:
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 feadbc877c96 -r 37cc1939787a lib/libperfuse/ops.c
--- a/lib/libperfuse/ops.c Sat Oct 11 03:24:19 2014 +0000
+++ b/lib/libperfuse/ops.c Sat Oct 11 04:19:38 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ops.c,v 1.75 2014/09/30 00:06:19 manu Exp $ */
+/* $NetBSD: ops.c,v 1.76 2014/10/11 04:19:38 manu 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