Re: [PATCH v2 2/3] cifs: warn about deprecation of /proc/fs/cifs/OplockEnabled interface

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

 



Shouldn't we note /sys/module/cifs/parameters/echo_retries in the
message and the readme (since changing at runtime, e.g. to work around
a server bug temporarily, is probably more common that at module
install time).  I will probably make a minor update to the readme to
note this if it is not in the patch, but not sure about the printk.

On Wed, Oct 12, 2011 at 1:21 AM, Suresh Jayaraman <sjayaraman@xxxxxxxx> wrote:
> The plan is to deprecate this interface by kernel version 3.4.
>
> Changes since v1
>   - add a '\n' to the printk.
>
> Reported-by: Alexander Swen <alex@xxxxxxx>
> Cc: Jeff Layton <jlayton@xxxxxxxxxx>
> Signed-off-by: Suresh Jayaraman <sjayaraman@xxxxxxx>
> ---
>  fs/cifs/cifs_debug.c |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/fs/cifs/cifs_debug.c b/fs/cifs/cifs_debug.c
> index 2fe3cf1..831fe13 100644
> --- a/fs/cifs/cifs_debug.c
> +++ b/fs/cifs/cifs_debug.c
> @@ -526,6 +526,9 @@ static ssize_t cifs_oplock_proc_write(struct file *file,
>        char c;
>        int rc;
>
> +       printk(KERN_WARNING "CIFS: The /proc/fs/cifs/OplockEnabled interface "
> +              "will be removed in kernel version 3.4. Please migrate to "
> +              "using the 'enable_oplocks' module parameter in cifs.ko.\n");
>        rc = get_user(c, buffer);
>        if (rc)
>                return rc;
>



-- 
Thanks,

Steve
--
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