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:
parent
ec737d9604
commit
143b711c23
@ -82,7 +82,7 @@ static int bsd_statvfs(const char *path, vfs_statvfs_struct *statbuf)
|
|||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
ret = statfs(path, &sbuf);
|
ret = statfs(path, &sbuf);
|
||||||
if (ret != 0) {
|
if (ret == 0) {
|
||||||
statbuf->OptimalTransferSize = sbuf.f_iosize;
|
statbuf->OptimalTransferSize = sbuf.f_iosize;
|
||||||
statbuf->BlockSize = sbuf.f_bsize;
|
statbuf->BlockSize = sbuf.f_bsize;
|
||||||
statbuf->TotalBlocks = sbuf.f_blocks;
|
statbuf->TotalBlocks = sbuf.f_blocks;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user