diff options
author | rmacklem <rmacklem@FreeBSD.org> | 2011-01-14 23:30:35 +0000 |
---|---|---|
committer | rmacklem <rmacklem@FreeBSD.org> | 2011-01-14 23:30:35 +0000 |
commit | 076e0f39cdc15b085081b74eb110c647068522f2 (patch) | |
tree | 5ee01378fe7a940113651fc8aae989b180de0198 /sys/nfs | |
parent | 085a83f669a0449b5a65dce501a59d52bd86cc50 (diff) | |
download | FreeBSD-src-076e0f39cdc15b085081b74eb110c647068522f2.zip FreeBSD-src-076e0f39cdc15b085081b74eb110c647068522f2.tar.gz |
Modify the experimental NFSv4 server so that it posts a SIGUSR2
signal to the master nfsd daemon whenever the stable restart
file has been modified. This will allow the master nfsd daemon
to maintain an up to date backup copy of the file. This is
enabled via the nfssvc() syscall, so that older nfsd daemons
will not be signaled.
Reviewed by: jhb
MFC after: 1 week
Diffstat (limited to 'sys/nfs')
-rw-r--r-- | sys/nfs/nfs_nfssvc.c | 2 | ||||
-rw-r--r-- | sys/nfs/nfssvc.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/sys/nfs/nfs_nfssvc.c b/sys/nfs/nfs_nfssvc.c index b9186be..cb1f37a 100644 --- a/sys/nfs/nfs_nfssvc.c +++ b/sys/nfs/nfs_nfssvc.c @@ -99,7 +99,7 @@ nfssvc(struct thread *td, struct nfssvc_args *uap) else if ((uap->flag & (NFSSVC_NFSDNFSD | NFSSVC_NFSDADDSOCK | NFSSVC_PUBLICFH | NFSSVC_V4ROOTEXPORT | NFSSVC_NOPUBLICFH | NFSSVC_STABLERESTART | NFSSVC_ADMINREVOKE | - NFSSVC_DUMPCLIENTS | NFSSVC_DUMPLOCKS)) && + NFSSVC_DUMPCLIENTS | NFSSVC_DUMPLOCKS | NFSSVC_BACKUPSTABLE)) && nfsd_call_nfsd != NULL) error = (*nfsd_call_nfsd)(td, uap); if (error == EINTR || error == ERESTART) diff --git a/sys/nfs/nfssvc.h b/sys/nfs/nfssvc.h index 5578240..d756dbf 100644 --- a/sys/nfs/nfssvc.h +++ b/sys/nfs/nfssvc.h @@ -63,5 +63,6 @@ #define NFSSVC_NFSCBD 0x00100000 #define NFSSVC_CBADDSOCK 0x00200000 #define NFSSVC_GETSTATS 0x00400000 +#define NFSSVC_BACKUPSTABLE 0x00800000 #endif /* _NFS_NFSSVC_H */ |