From 9c3eb71b51558533c3e36d2dcad848cc15178cf2 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Tue, 27 Sep 2016 21:02:07 +0200 Subject: [PATCH] NFS: set block size as reported from server. Fixes #9787. --- src/add-ons/kernel/file_systems/nfs/nfs_add_on.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/add-ons/kernel/file_systems/nfs/nfs_add_on.c b/src/add-ons/kernel/file_systems/nfs/nfs_add_on.c index 62ef40d6e5..c4bbf2d7da 100644 --- a/src/add-ons/kernel/file_systems/nfs/nfs_add_on.c +++ b/src/add-ons/kernel/file_systems/nfs/nfs_add_on.c @@ -666,7 +666,8 @@ get_nfs_attr(struct XDRInPacket *reply, struct stat *st) st->st_blksize=XDRInPacketGetInt32(reply); #endif st->st_rdev=XDRInPacketGetInt32(reply); - XDRInPacketGetInt32(reply); // blocks + // XDRInPacketGetInt32(reply); // blocks + st->st_blocks=XDRInPacketGetInt32(reply); XDRInPacketGetInt32(reply); // fsid st->st_ino=XDRInPacketGetInt32(reply); st->st_atime=XDRInPacketGetInt32(reply);