From 37db68a9842171e13b539f8cf35b03e1a4793bd5 Mon Sep 17 00:00:00 2001 From: Jeff Layton Date: Tue, 17 Jan 2012 16:09:15 -0500 Subject: [PATCH] --- yaml --- r: 286585 b: refs/heads/master c: 789b4588da40cf572ef982bdc5d590ec1b0386fe h: refs/heads/master i: 286583: ec3853735c99eddaa94649c8aa51da0a3c983ff2 v: v3 --- [refs] | 2 +- trunk/fs/cifs/cifs_debug.c | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 63aee5e91973..ba06a35fb0c7 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 8a8798a5ff90977d6459ce1d657cf8fe13a51e97 +refs/heads/master: 789b4588da40cf572ef982bdc5d590ec1b0386fe diff --git a/trunk/fs/cifs/cifs_debug.c b/trunk/fs/cifs/cifs_debug.c index 84e8c0724704..24b3dfc05282 100644 --- a/trunk/fs/cifs/cifs_debug.c +++ b/trunk/fs/cifs/cifs_debug.c @@ -676,14 +676,23 @@ static ssize_t cifs_multiuser_mount_proc_write(struct file *file, { char c; int rc; + static bool warned; rc = get_user(c, buffer); if (rc) return rc; if (c == '0' || c == 'n' || c == 'N') multiuser_mount = 0; - else if (c == '1' || c == 'y' || c == 'Y') + else if (c == '1' || c == 'y' || c == 'Y') { multiuser_mount = 1; + if (!warned) { + warned = true; + printk(KERN_WARNING "CIFS VFS: The legacy multiuser " + "mount code is scheduled to be deprecated in " + "3.5. Please switch to using the multiuser " + "mount option."); + } + } return count; }