Re: [PATCH v3 1/5] fat: modify nfs mount option

From: OGAWA Hirofumi
Date: Sat Sep 22 2012 - 07:29:03 EST


Namjae Jeon <linkinjeon@xxxxxxxxx> writes:

> + case Opt_nfs_full:
> + opts->nfs = FAT_NFS_FULL;
> + break;
> + case Opt_nfs_limited:
> + opts->nfs = FAT_NFS_LIMITED;
> + sb->s_flags |= MS_RDONLY;
> + break;

Check opt->nfs at end of parse_option(). Otherwise, multiple nfs options
would confuse it.

E.g.

mount -o nfs=limited_stable,nfs=full_unstable

--
OGAWA Hirofumi <hirofumi@xxxxxxxxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/