nfs4: Fix CID #1032256: Use 4kB block size if server reports invalid value
This commit is contained in:
parent
51fb559348
commit
4f5608efd6
@ -110,6 +110,8 @@ RootInode::_UpdateInfo(bool force)
|
||||
|
||||
if (ioSize == LONGLONG_MAX)
|
||||
ioSize = 32768;
|
||||
if (ioSize == 0)
|
||||
ioSize = 4096;
|
||||
fInfoCache.io_size = ioSize;
|
||||
fInfoCache.block_size = ioSize;
|
||||
fIOSize = ioSize;
|
||||
|
Loading…
Reference in New Issue
Block a user