nfs4: Fix CID #1032256: Use 4kB block size if server reports invalid value

This commit is contained in:
Pawel Dziepak 2013-06-13 11:31:53 +02:00
parent 51fb559348
commit 4f5608efd6

View File

@ -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;