From: Björn Jacke Date: Wed, 9 Jan 2019 11:03:53 +0000 (+0100) Subject: statvfs: rename linux_statvfs to posix_statvfs X-Git-Tag: talloc-2.1.15~209 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93c54a4b3c4b08ad8a80235ffcffb9bc89fd9ecf;p=thirdparty%2Fsamba.git statvfs: rename linux_statvfs to posix_statvfs the statvfs call is posix standard and not Linux specific Signed-off-by: Bjoern Jacke Reviewed-by: Stefan Metzmacher Autobuild-User(master): Björn Jacke Autobuild-Date(master): Fri Jan 11 02:53:57 CET 2019 on sn-devel-144 --- diff --git a/source3/smbd/statvfs.c b/source3/smbd/statvfs.c index 2312d2c8240..aca6752c7fb 100644 --- a/source3/smbd/statvfs.c +++ b/source3/smbd/statvfs.c @@ -115,7 +115,7 @@ static int bsd_statvfs(const char *path, vfs_statvfs_struct *statbuf) return ret; } #elif defined(STAT_STATVFS) && defined(HAVE_FSID_INT) -static int linux_statvfs(const char *path, vfs_statvfs_struct *statbuf) +static int posix_statvfs(const char *path, vfs_statvfs_struct *statbuf) { struct statvfs statvfs_buf; int result; @@ -169,7 +169,7 @@ int sys_statvfs(const char *path, vfs_statvfs_struct *statbuf) #if defined(BSD_STYLE_STATVFS) return bsd_statvfs(path, statbuf); #elif defined(STAT_STATVFS) && defined(HAVE_FSID_INT) - return linux_statvfs(path, statbuf); + return posix_statvfs(path, statbuf); #else /* BB change this to return invalid level */ #ifdef EOPNOTSUPP