]> Git Repo - linux.git/blobdiff - fs/nfsd/export.c
Merge tag 'pstore-v5.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees...
[linux.git] / fs / nfsd / export.c
index 21e404e7cb68c718c20f67f76714a26f14f1d4d0..81e7bb12aca69435a3563677599a8c31f224a015 100644 (file)
@@ -408,6 +408,12 @@ static int check_export(struct inode *inode, int *flags, unsigned char *uuid)
                return -EINVAL;
        }
 
+       if (inode->i_sb->s_export_op->flags & EXPORT_OP_NOSUBTREECHK &&
+           !(*flags & NFSEXP_NOSUBTREECHECK)) {
+               dprintk("%s: %s does not support subtree checking!\n",
+                       __func__, inode->i_sb->s_type->name);
+               return -EINVAL;
+       }
        return 0;
 
 }
This page took 0.030217 seconds and 4 git commands to generate.