Ticket #9787: nfs2_blocks.patch

File nfs2_blocks.patch, 674 bytes (added by jahaiku, 6 years ago)
  • src/add-ons/kernel/file_systems/nfs/nfs_add_on.c

    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 eab631c..e51d522 100644
    a b get_nfs_attr(struct XDRInPacket *reply, struct stat *st)  
    666666    st->st_blksize=XDRInPacketGetInt32(reply);
    667667#endif
    668668    st->st_rdev=XDRInPacketGetInt32(reply);
    669     XDRInPacketGetInt32(reply); // blocks
     669    // XDRInPacketGetInt32(reply);  // blocks
     670    st->st_blocks=XDRInPacketGetInt32(reply);
    670671    XDRInPacketGetInt32(reply); // fsid
    671672    st->st_ino=XDRInPacketGetInt32(reply);
    672673    st->st_atime=XDRInPacketGetInt32(reply);