diff options
author | Xavier Hernandez <xhernandez@datalab.es> | 2017-01-09 13:10:19 +0100 |
---|---|---|
committer | Jeff Darcy <jdarcy@redhat.com> | 2017-01-10 09:08:00 -0800 |
commit | d6bc8da62f1b0d454fa5187687fdbf894403c7ce (patch) | |
tree | 61e88283f778b3476a09e945e62492c63c1d0509 /libglusterfs/src/syscall.h | |
parent | 167f417f73d7877e7b5ea5bf72e66964d463d4b6 (diff) |
libglusterfs: fix statvfs in FreeBSD
FreeBSD interprets statvfs' f_bsize field in a different way than Linux.
This fix modifies the value returned by statvfs() on FreeBSD to match
the expected value by Gluster.
Change-Id: I930dab6e895671157238146d333e95874ea28a08
BUG: 1356076
Signed-off-by: Xavier Hernandez <xhernandez@datalab.es>
Reviewed-on: http://review.gluster.org/16361
Smoke: Gluster Build System <jenkins@build.gluster.org>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
Diffstat (limited to 'libglusterfs/src/syscall.h')
-rw-r--r-- | libglusterfs/src/syscall.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libglusterfs/src/syscall.h b/libglusterfs/src/syscall.h index 6fee9bd5c5c..1a2658b94f1 100644 --- a/libglusterfs/src/syscall.h +++ b/libglusterfs/src/syscall.h @@ -147,6 +147,9 @@ int sys_statvfs (const char *path, struct statvfs *buf); int +sys_fstatvfs (int fd, struct statvfs *buf); + +int sys_close (int fd); int |