Skip to content

Commit 404e5c7

Browse files
committed
NFSD: Mark exports of NFS as unsupported
It is possible to re-export NFS filesystems, and there's some interest in doing so within the upstream NFS community. However there are a number of tricky problems to addresss before Red Hat is willing to support this configuration, and these issues are not likely to be immediately apparent to a customer that might attempt to build a solution on re-export. Normally we would mark this sort of configuration as TECH PREVIEW, however doing so implies that Red Hat has committed to fully supporting the feature in an upcoming release. Instead of making this promise with mark_tech_preview(), we will emit a kernel warning to increase customer awareness of the potential issues with this configuration. Upstream-status: RHEL-only Tested: manually Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2150887 Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
1 parent fb41df7 commit 404e5c7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

fs/nfsd/export.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,12 @@ static int check_export(struct path *path, int *flags, unsigned char *uuid)
438438
__func__, inode->i_sb->s_type->name);
439439
return -EINVAL;
440440
}
441+
442+
if (!strcmp(inode->i_sb->s_type->name, "nfs") ||
443+
!strcmp(inode->i_sb->s_type->name, "nfs4"))
444+
pr_warn("NFSD WARNING: Re-exporting NFS is not a supported "
445+
"configuration in RHEL. Unexpected client behavior may result.\n");
446+
441447
return 0;
442448

443449
}

0 commit comments

Comments
 (0)