mirror of
https://github.com/trapexit/mergerfs.git
synced 2024-11-22 20:43:24 +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))
|
||||
return;
|
||||
|
||||
if(min_bsize > fsstat.f_bsize)
|
||||
if(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;
|
||||
if(min_namemax > fsstat.f_namemax)
|
||||
if(fsstat.f_namemax && (min_namemax > fsstat.f_namemax))
|
||||
min_namemax = fsstat.f_namemax;
|
||||
|
||||
fsstats.insert(std::make_pair(st.st_dev,fsstat));
|
||||
|
|
Loading…
Reference in New Issue
Block a user