1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

s3: fix the logic in bsd_statvfs

This commit is contained in:
Björn Jacke 2012-06-29 17:01:47 +02:00 committed by Bjoern Jacke
parent ec737d9604
commit 143b711c23

View File

@ -82,7 +82,7 @@ static int bsd_statvfs(const char *path, vfs_statvfs_struct *statbuf)
int ret;
ret = statfs(path, &sbuf);
if (ret != 0) {
if (ret == 0) {
statbuf->OptimalTransferSize = sbuf.f_iosize;
statbuf->BlockSize = sbuf.f_bsize;
statbuf->TotalBlocks = sbuf.f_blocks;