diff options
Diffstat (limited to 'fs/nfsd/nfs4recover.c')
-rw-r--r-- | fs/nfsd/nfs4recover.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/nfsd/nfs4recover.c b/fs/nfsd/nfs4recover.c index 6f13281635ba..21b53d57432c 100644 --- a/fs/nfsd/nfs4recover.c +++ b/fs/nfsd/nfs4recover.c | |||
@@ -416,6 +416,13 @@ nfsd4_load_reboot_recovery_data(struct net *net) | |||
416 | { | 416 | { |
417 | int status; | 417 | int status; |
418 | 418 | ||
419 | /* XXX: The legacy code won't work in a container */ | ||
420 | if (net != &init_net) { | ||
421 | WARN(1, KERN_ERR "NFSD: attempt to initialize legacy client " | ||
422 | "tracking in a container!\n"); | ||
423 | return -EINVAL; | ||
424 | } | ||
425 | |||
419 | nfs4_lock_state(); | 426 | nfs4_lock_state(); |
420 | status = nfsd4_init_recdir(); | 427 | status = nfsd4_init_recdir(); |
421 | if (!status) | 428 | if (!status) |