-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNFS.page
62 lines (52 loc) · 2.44 KB
/
NFS.page
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
Icon="icons/linux-icon.png"
Menu="NetworkServices"
Title="NFS"
---
<script>
function check_nfs_enable_form()
{
var form = document.nfs_enable_form;
if (form.shareNFSEnabled.value=="yes") {
form.fuse_remember.disabled=false;
}
else {
form.fuse_remember.disabled=true;
}
}
$(document).ready(check_nfs_enable_form);
</script>
<form markdown="1" name="nfs_enable_form" method="POST" action="/update.htm" target="progressFrame">
Enable NFS:
: <select name="shareNFSEnabled" size="1" onchange="check_nfs_enable_form();">
<?=mk_option($var['shareNFSEnabled'], "no", "No");?>
<?=mk_option($var['shareNFSEnabled'], "yes", "Yes");?>
</select>
> Select 'Yes' to enable the NFS protocol.
Tunable (fuse_remember):
: <input type="text" name="fuse_remember" maxlength="10" value="<?=$var['fuse_remember'];?>"><?=$var['fuse_remember_status'];?>
> When NFS is enabled, this Tunable may be used to alleviate or solve instances of "NFS Stale File Handles"
> you might encounter with your NFS client.
>
> In essence, (fuse_remember) tells an internal subsystem (named "fuse") how long to "remember" or "cache"
> file and directory information associated with user shares. When an NFS client attempts to access a file
> (or directory) on the server, and that file (or directory) name is not cached, then you could encounter
> "stale file handle".
>
> The numeric value of this tunable is the number of seconds to cache file/directory name entries,
> where the default value of 330 indicates 5 1/2 minutes. There are two special values you may also set
> this to:
>
> * 0 which means, do not cache file/directory names at all, and
> * -1 which means cache file/directory names forever (or until array is stopped)
>
> A value of 0 would be appropriate if you are enabling NFS but only plan to use it for disk shares,
> not user shares.
>
> A value of -1 would be appropriate if no other timeout seems to solve the "stale file handle" on
> your client. Be aware that setting a value of -1 will cause the memory footprint to grow by approximatel
> 108 bytes per file/directory name cached. Depending how much RAM is installed in your server and how many
> files/directories you access via NFS this may or may not lead to out-of-memory conditions.
: <input type="submit" name="changeShare" value="Apply">
<button type="button" onClick="done();">Done</button>
</form>