Package: freebsd-utils / 10.1~svn273304-1

stablerestart-fhs-compliance.diff Patch series | download
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
--- a/src/usr.sbin/nfsd/nfsd.c
+++ b/src/usr.sbin/nfsd/nfsd.c
@@ -78,8 +78,8 @@
 
 static int	debug = 0;
 
-#define	NFSD_STABLERESTART	"/var/db/nfs-stablerestart"
-#define	NFSD_STABLEBACKUP	"/var/db/nfs-stablerestart.bak"
+#define	NFSD_STABLERESTART	"/var/lib/freebsd-nfs-server/nfs-stablerestart"
+#define	NFSD_STABLEBACKUP	"/var/lib/freebsd-nfs-server/nfs-stablerestart.bak"
 #define	MAXNFSDCNT	256
 #define	DEFNFSDCNT	 4
 static pid_t children[MAXNFSDCNT]; /* PIDs of children */
--- a/src/usr.sbin/nfsd/nfsv4.4
+++ b/src/usr.sbin/nfsd/nfsv4.4
@@ -309,10 +309,10 @@
 If all other nfsd threads are blocked waiting for lock(s) held by this nfsd
 thread, then there isn't an nfsd thread to service the Close RPC.
 .Sh FILES
-.Bl -tag -width /var/db/nfs-stablerestart.bak -compact
-.It Pa /var/db/nfs-stablerestart
+.Bl -tag -width /var/lib/freebsd-nfs-server/nfs-stablerestart.bak -compact
+.It Pa /var/lib/freebsd-nfs-server/nfs-stablerestart
 NFS V4 stable restart file
-.It Pa /var/db/nfs-stablerestart.bak
+.It Pa /var/lib/freebsd-nfs-server/nfs-stablerestart.bak
 backup copy of the file
 .El
 .Sh SEE ALSO
--- a/src/usr.sbin/nfsd/stablerestart.5
+++ b/src/usr.sbin/nfsd/stablerestart.5
@@ -75,10 +75,10 @@
 has returned. This might require hardware level caching to be disabled for
 a local disk drive that holds the file, or similar.
 .Sh FILES
-.Bl -tag -width /var/db/nfs-stablerestart.bak -compact
-.It Pa /var/db/nfs-stablerestart
+.Bl -tag -width /var/lib/freebsd-nfs-server/nfs-stablerestart.bak -compact
+.It Pa /var/lib/freebsd-nfs-server/nfs-stablerestart
 NFSv4 stable restart file
-.It Pa /var/db/nfs-stablerestart.bak
+.It Pa /var/lib/freebsd-nfs-server/nfs-stablerestart.bak
 backup copy of the file
 .El
 .Sh SEE ALSO