Message ID | 20201214064027.2885-8-lsahlber@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [01/12] cifs: move cifs_cleanup_volume_info[_content] to fs_context.c | expand |
diff --git a/fs/cifs/fs_context.c b/fs/cifs/fs_context.c index 40a5cfe0615b..4995082b7285 100644 --- a/fs/cifs/fs_context.c +++ b/fs/cifs/fs_context.c @@ -626,6 +626,10 @@ static void smb3_fs_context_free(struct fs_context *fc) static int smb3_verify_reconfigure_ctx(struct smb3_fs_context *new_ctx, struct smb3_fs_context *old_ctx) { + if (new_ctx->posix_paths != old_ctx->posix_paths) { + cifs_dbg(VFS, "can not change posixpaths during remount\n"); + return -EINVAL; + } if (new_ctx->sectype != old_ctx->sectype) { cifs_dbg(VFS, "can not change sec during remount\n"); return -EINVAL;
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com> --- fs/cifs/fs_context.c | 4 ++++ 1 file changed, 4 insertions(+)