mirror of
https://github.com/samba-team/samba.git
synced 2025-08-26 01:49:31 +03:00
statvfs: rename linux_statvfs to posix_statvfs
the statvfs call is posix standard and not Linux specific Signed-off-by: Bjoern Jacke <bjacke@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Björn Jacke <bjacke@samba.org> Autobuild-Date(master): Fri Jan 11 02:53:57 CET 2019 on sn-devel-144
This commit is contained in:
committed by
Bjoern Jacke
parent
121db8c08f
commit
93c54a4b3c
@ -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
|
||||
|
Reference in New Issue
Block a user