Module Name: src
Committed By: manu
Date: Sat Oct 11 04:19:38 UTC 2014
Modified Files:
src/lib/libperfuse: ops.c
Log Message:
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.75 -r1.76 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.75 src/lib/libperfuse/ops.c:1.76
--- src/lib/libperfuse/ops.c:1.75 Tue Sep 30 00:06:19 2014
+++ src/lib/libperfuse/ops.c Sat Oct 11 04:19:38 2014
@@ -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 @@ 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;