- From 7bb6f9e4f2ee6f0a9352f7541310db4b5542eb2b Mon Sep 17 00:00:00 2001
- From: Roland Mainz <roland.mainz@nrubsig.org>
- Date: Tue, 18 Mar 2025 05:33:59 +0100
- Subject: [PATCH] sys: |nfs41_ExtendForCache()| should not add 8192 to
- |newAllocationSize|
- |nfs41_ExtendForCache()| should not add 8192 to |newAllocationSize| -
- the RDBSS is managing this itself, and this doesn't work for sparse
- files anyway.
- Signed-off-by: Cedric Blancher <cedric.blancher@gmail.com>
- ---
- sys/nfs41sys_readwrite.c | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
- diff --git a/sys/nfs41sys_readwrite.c b/sys/nfs41sys_readwrite.c
- index 4afa8e4..d1a3ba7 100644
- --- a/sys/nfs41sys_readwrite.c
- +++ b/sys/nfs41sys_readwrite.c
- @@ -1,6 +1,6 @@
- /* NFSv4.1 client for Windows
- * Copyright (C) 2012 The Regents of the University of Michigan
- - * Copyright (C) 2023-2024 Roland Mainz <roland.mainz@nrubsig.org>
- + * Copyright (C) 2023-2025 Roland Mainz <roland.mainz@nrubsig.org>
- *
- * Olga Kornievskaia <aglo@umich.edu>
- * Casey Bodley <cbodley@umich.edu>
- @@ -461,7 +461,7 @@ ULONG nfs41_ExtendForCache(
- (long long)pNewFileSize->QuadPart,
- (long long)pNewAllocationSize->QuadPart);
- #endif
- - pNewAllocationSize->QuadPart = pNewFileSize->QuadPart + 8192;
- + pNewAllocationSize->QuadPart = pNewFileSize->QuadPart;
- nfs41_fcb->StandardInfo.AllocationSize.QuadPart =
- pNewAllocationSize->QuadPart;
- nfs41_fcb->StandardInfo.EndOfFile.QuadPart = pNewFileSize->QuadPart;
- --
- 2.45.1
msnfs41client: Patch for nfs41_ExtendForCache() issue, 2025-03-18
Posted by Anonymous on Tue 18th Mar 2025 05:03
raw | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.