Module Name: src
Committed By: martin
Date: Mon Oct 13 19:00:16 UTC 2014
Modified Files:
src/lib/libperfuse [netbsd-7]: ops.c
Log Message:
Pull up following revision(s) (requested by manu in ticket #137):
lib/libperfuse/ops.c: revision 1.76
Report allocated bytes on FS correctly, instead of using file size
(which is wrong for sparse files)
To generate a diff of this commit:
cvs rdiff -u -r1.66.2.7 -r1.66.2.8 src/lib/libperfuse/ops.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libperfuse/ops.c
diff -u src/lib/libperfuse/ops.c:1.66.2.7 src/lib/libperfuse/ops.c:1.66.2.8
--- src/lib/libperfuse/ops.c:1.66.2.7 Sat Oct 11 16:25:19 2014
+++ src/lib/libperfuse/ops.c Mon Oct 13 19:00:16 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: ops.c,v 1.66.2.7 2014/10/11 16:25:19 snj Exp $ */
+/* $NetBSD: ops.c,v 1.66.2.8 2014/10/13 19:00:16 martin Exp $ */
/*-
* Copyright (c) 2010-2011 Emmanuel Dreyfus. All rights reserved.
@@ -321,7 +321,7 @@ fuse_attr_to_vap(struct perfuse_state *p
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;