[PATCH 2/4] cifs: add deprecation warnings to strictcache, forcedirectio, and fsc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Leave them in for 2 releases and remove for 3.7.

Signed-off-by: Jeff Layton <jlayton@xxxxxxxxxx>
---
 fs/cifs/connect.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index de967dc..604814d 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -1468,11 +1468,17 @@ cifs_parse_mount_options(const char *mountdata, const char *devname,
 			vol->fsc = false;
 			vol->direct_io = true;
 			vol->strict_io = false;
+			cERROR(1, "The \"forcedirectio\" option will be "
+				"removed in 3.7. Please move to the cache=none "
+				"option.");
 			break;
 		case Opt_strictcache:
 			vol->fsc = false;
 			vol->direct_io = false;
 			vol->strict_io = true;
+			cERROR(1, "The \"strictcache\" option will be removed "
+				"in 3.7. Please move to the cache=strict "
+				"option.");
 			break;
 		case Opt_noac:
 			printk(KERN_WARNING "CIFS: Mount option noac not "
@@ -1488,6 +1494,8 @@ cifs_parse_mount_options(const char *mountdata, const char *devname,
 			vol->fsc = true;
 			vol->direct_io = false;
 			vol->strict_io = false;
+			cERROR(1, "The \"fsc\" option will be removed in "
+				"3.7. Please move to the cache=fsc option.");
 			break;
 		case Opt_mfsymlinks:
 			vol->mfsymlinks = true;
-- 
1.7.7.6

--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux