mirror of
https://github.com/trapexit/mergerfs.git
synced 2024-11-23 01:53:20 +08:00
ignore filesystems which return zeros for statfs. closes #335
This commit is contained in:
parent
12b9fc1750
commit
3c5351af93
|
@ -83,11 +83,11 @@ _statfs_core(const char *srcmount,
|
||||||
if(STAT_FAILED(rv))
|
if(STAT_FAILED(rv))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if(min_bsize > fsstat.f_bsize)
|
if(fsstat.f_bsize && (min_bsize > fsstat.f_bsize))
|
||||||
min_bsize = fsstat.f_bsize;
|
min_bsize = fsstat.f_bsize;
|
||||||
if(min_frsize > fsstat.f_frsize)
|
if(fsstat.f_frsize && (min_frsize > fsstat.f_frsize))
|
||||||
min_frsize = fsstat.f_frsize;
|
min_frsize = fsstat.f_frsize;
|
||||||
if(min_namemax > fsstat.f_namemax)
|
if(fsstat.f_namemax && (min_namemax > fsstat.f_namemax))
|
||||||
min_namemax = fsstat.f_namemax;
|
min_namemax = fsstat.f_namemax;
|
||||||
|
|
||||||
fsstats.insert(std::make_pair(st.st_dev,fsstat));
|
fsstats.insert(std::make_pair(st.st_dev,fsstat));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user