diff options
author | rmacklem <rmacklem@FreeBSD.org> | 2009-05-20 18:58:07 +0000 |
---|---|---|
committer | rmacklem <rmacklem@FreeBSD.org> | 2009-05-20 18:58:07 +0000 |
commit | df90a80062bff5ee7300c9b15aaeeaa9c1b49b5e (patch) | |
tree | 3983455c4428d4188b7f80745b9a3feb40bc3852 /sys/fs | |
parent | c4faab4bfabd96c24229ade42abf47acdd5dda47 (diff) | |
download | FreeBSD-src-df90a80062bff5ee7300c9b15aaeeaa9c1b49b5e.zip FreeBSD-src-df90a80062bff5ee7300c9b15aaeeaa9c1b49b5e.tar.gz |
Although it should never happen, all the nfsv4 server can do
when it runs out of clientids is reboot. I had replaced cpu_reboot()
with printf(), since cpu_reboot() doesn't exist for sparc64.
This change replaces the printf() with panic(), so the reboot
would occur for this highly unlikely occurrence.
Approved by: kib (mentor)
Diffstat (limited to 'sys/fs')
-rw-r--r-- | sys/fs/nfsserver/nfs_nfsdstate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/nfsserver/nfs_nfsdstate.c b/sys/fs/nfsserver/nfs_nfsdstate.c index f33c59a..aa0e725 100644 --- a/sys/fs/nfsserver/nfs_nfsdstate.c +++ b/sys/fs/nfsserver/nfs_nfsdstate.c @@ -3709,7 +3709,7 @@ nfsrv_nextclientindex(void) * In practice, we'll never get here, but the reboot is here, * just for fun. (client_index will not wrap around on any real server) */ - printf("you must reboot now\n"); + panic("nfsv4 server out of clientids"); return (0); /* Just to shut the compiler up */ } |