[Ocfs2-devel] [patch 21/28] ocfs2: sysfile interfaces for online file check

Mark Fasheh mfasheh at suse.de
Mon Aug 31 13:45:55 PDT 2015


On Wed, Aug 26, 2015 at 03:12:17PM -0700, Andrew Morton wrote:
> From: Gang He <ghe at suse.com>
> Subject: ocfs2: sysfile interfaces for online file check

...

> +static int
> +ocfs2_filecheck_args_parse(const char *buf, size_t count,
> +				struct ocfs2_filecheck_args *args)
> +{
> +	unsigned long val = 0;
> +
> +	/* too short/long args length */
> +	if ((count < 5) || (count > OCFS2_FILECHECK_ARGS_LEN))
> +		return 1;
> +
> +	if ((strncmp(buf, "FIX ", 4) == 0) ||
> +		(strncmp(buf, "fix ", 4) == 0)) {

Use strncasecmp for this please.

--
Mark Fasheh



More information about the Ocfs2-devel mailing list