cifs: add a cache= option to better describe the different cache flavors
authorJeff Layton <jlayton@redhat.com>
Wed, 16 May 2012 11:50:15 +0000 (07:50 -0400)
committerSteve French <sfrench@us.ibm.com>
Thu, 17 May 2012 01:13:32 +0000 (20:13 -0500)
commit15b6a47322940beb74a83ffc1632c1ee1d00f35b
treea60daa9d2a25f65a232d282da6529d2b8ccd87d0
parent4d61cd6ec764368689fab3bd19e78d76c1e6b176
cifs: add a cache= option to better describe the different cache flavors

Currently, we have several mount options that control cifs' cache
behavior, but those options aren't considered to be mutually exclusive.
The result is poorly-defined when someone specifies more than one of
these options at mount time.

Fix this by adding a new cache= mount option that will supercede
"strictcache", and "forcedirectio". That will help make it clear that
these options are mutually exclusive. Also, change the legacy options to
be mutually exclusive too, to ensure that users don't get surprises.

Reviewed-by: Pavel Shilovsky <piastry@etersoft.ru>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
fs/cifs/connect.c