aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/lib/kdoc/kdoc_files.py
diff options
context:
space:
mode:
authorHan Young <hanyang.tony@bytedance.com>2025-05-04 20:57:04 +0800
committerAnna Schumaker <anna.schumaker@oracle.com>2025-05-28 17:17:13 -0400
commit3a3065352f73381d3a1aa0ccab44aec3a5a9b365 (patch)
tree5df34b771f501d108fe152e5f932cc97f03e4380 /scripts/lib/kdoc/kdoc_files.py
parentNFSv4: Allow FREE_STATEID to clean up delegations (diff)
downloadlinux-rng-3a3065352f73381d3a1aa0ccab44aec3a5a9b365.tar.xz
linux-rng-3a3065352f73381d3a1aa0ccab44aec3a5a9b365.zip
NFSv4: Always set NLINK even if the server doesn't support it
fattr4_numlinks is a recommended attribute, so the client should emulate it even if the server doesn't support it. In decode_attr_nlink function in nfs4xdr.c, nlink is initialized to 1. However, this default value isn't set to the inode due to the check in nfs_fhget. So if the server doesn't support numlinks, inode's nlink will be zero, the mount will fail with error "Stale file handle". Set the nlink to 1 if the server doesn't support it. Signed-off-by: Han Young <hanyang.tony@bytedance.com> Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions