History

NFS: Add mount option 'softreval'

Add a mount option 'softreval' that allows attribute revalidation 'getattr' calls to time out, and causes them to fall back to using the cached attributes. The use case for this option is for ensuring that we can still (slowly) traverse paths and use cached information even when the server is down. Once the server comes back up again, the getattr calls start succeeding, and the caches will revalidate as usual. The 'softreval' mount option is automatically enabled if you have specified 'softerr'. It can be turned off using the options 'nosoftreval', or 'hard'.

Trond Myklebust committed 6 years ago

Commit c74dfe91 parent 5c965db7 files · +59 −12Browse files

Showing the changes to include/linux (1 of 7 files). Show all

Unified · Split

include/linux/nfs_fs_sb.h+1−0
@@ -152,6 +152,7 @@ struct nfs_server { · 151 unmodified lines
152152 #define NFS_MOUNT_LOCAL_FLOCK 0x100000
153153 #define NFS_MOUNT_LOCAL_FCNTL 0x200000
154154 #define NFS_MOUNT_SOFTERR 0x400000
155+#define NFS_MOUNT_SOFTREVAL 0x800000
155156
156157 unsigned int caps; /* server capabilities */
157158 unsigned int rsize; /* read size */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t