[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20180510153109.ca9ac1c8d2308c37952a42c7@linux-foundation.org>
Date: Thu, 10 May 2018 15:31:09 -0700
From: Andrew Morton <akpm@...ux-foundation.org>
To: Chengguang Xu <cgxu519@....com>
Cc: ericvh@...il.com, rminnich@...dia.gov, lucho@...kov.net,
v9fs-developer@...ts.sourceforge.net, linux-kernel@...r.kernel.org
Subject: Re: [V9fs-developer][PATCH v3 1/2] net/9p: detecting invalid
options as much as possible
On Thu, 3 May 2018 17:44:35 +0800 Chengguang Xu <cgxu519@....com> wrote:
> Currently when detecting invalid options in option parsing,
> some options(e.g. msize) just set errno and allow to continuously
> validate other options so that it can detect invalid options
> as much as possible and give proper error messages together.
>
> This patch applies same rule to option 'trans' and 'version'
> when detecting -EINVAL.
Looks OK.
It does mean that if two or more options cause errors, we will now
return the error code arising from the final error rather than from the
first error (or from some mish-mash mixture of both, as the present
code does). But I don't think this matters.
Powered by blists - more mailing lists