Linux CIFS filesystem development
 help / color / mirror / Atom feed
From: Jeff Layton <jlayton-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
To: Jeff Layton <jlayton-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
Cc: linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	ronald645-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Subject: Re: [PATCH] mount.cifs: don't pass credentials= option to the kernel
Date: Fri, 11 May 2012 14:12:47 -0400	[thread overview]
Message-ID: <20120511141247.00a309c0@corrin.poochiereds.net> (raw)
In-Reply-To: <1335983157-4413-1-git-send-email-jlayton-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>

On Wed,  2 May 2012 14:25:57 -0400
Jeff Layton <jlayton-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org> wrote:

> We handle this option in userspace, so there's little value in also
> passing it to the kernel.
> 
> Also fix minor double-comma nit in the options string.
> 
> Signed-off-by: Jeff Layton <jlayton-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
> ---
>  mount.cifs.c |    6 ++++--
>  1 files changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/mount.cifs.c b/mount.cifs.c
> index c90ce3e..0408158 100644
> --- a/mount.cifs.c
> +++ b/mount.cifs.c
> @@ -1023,7 +1023,7 @@ parse_options(const char *data, struct parsed_mount_info *parsed_info)
>  					rc, strerror(rc), value);
>  				return rc;
>  			}
> -			break;
> +			goto nocopy;
>  
>  		case OPT_UID:
>  			if (!value || !*value)
> @@ -1834,7 +1834,9 @@ assemble_mountinfo(struct parsed_mount_info *parsed_info,
>  	}
>  
>  	/* copy in ver= string. It's not really needed, but what the hell */
> -	strlcat(parsed_info->options, ",ver=", sizeof(parsed_info->options));
> +	if (*parsed_info->options)
> +		strlcat(parsed_info->options, ",", sizeof(parsed_info->options));
> +	strlcat(parsed_info->options, "ver=", sizeof(parsed_info->options));
>  	strlcat(parsed_info->options, OPTIONS_VERSION, sizeof(parsed_info->options));
>  
>  	/* copy in user= string */

Committed...
-- 
Jeff Layton <jlayton-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>

      parent reply	other threads:[~2012-05-11 18:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-02 18:25 [PATCH] mount.cifs: don't pass credentials= option to the kernel Jeff Layton
     [not found] ` <1335983157-4413-1-git-send-email-jlayton-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
2012-05-11 18:12   ` Jeff Layton [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120511141247.00a309c0@corrin.poochiereds.net \
    --to=jlayton-eunubhrolfbytjvyw6ydsg@public.gmane.org \
    --cc=linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=ronald645-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox