From: Mark Niggemann Date: Thu, 8 Jun 2017 16:20:46 +0000 (-0500) Subject: set caller allocation units in statvfs f_bavail X-Git-Tag: ldb-1.6.1~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02c9bee85a9098dec6926b054e6f11b9c79a513f;p=thirdparty%2Fsamba.git set caller allocation units in statvfs f_bavail Signed-off-by: Mark Niggemann Reviewed-by: Andreas Schneider Reviewed-by: Bjoern Jacke Autobuild-User(master): Björn Jacke Autobuild-Date(master): Fri Feb 22 15:04:55 CET 2019 on sn-devel-144 --- diff --git a/source3/libsmb/libsmb_stat.c b/source3/libsmb/libsmb_stat.c index f8b35bdb9ea..2f6e66c08e5 100644 --- a/source3/libsmb/libsmb_stat.c +++ b/source3/libsmb/libsmb_stat.c @@ -420,6 +420,8 @@ SMBC_fstatvfs_ctx(SMBCCTX *context, (fsblkcnt_t) total_allocation_units; st->f_bfree = (fsblkcnt_t) actual_allocation_units; + st->f_bavail = + (fsblkcnt_t) caller_allocation_units; } flags |= SMBC_VFS_FEATURE_NO_UNIXCIFS;