Re: [RFC] configfs: Allow ->make_item() and ->make_group() toreturn detailed errors.

From: Louis Rilling
Date: Thu Jun 12 2008 - 18:38:22 EST


On Thu, Jun 12, 2008 at 02:19:55PM -0700, Joel Becker wrote:
> The configfs operations ->make_item() and ->make_group() currently
> return a new item/group. A return of NULL signifies an error. Because
> of this, -ENOMEM is the only return code bubbled up the stack.
>
> Multiple folks have requested the ability to return specific error codes
> when these operations fail. This patch adds that ability by changing the
> ->make_item/group() ops to return an int.
>
> Also updated are the in-kernel users of configfs.
>
> Signed-off-by: Joel Becker <joel.becker@xxxxxxxxxx>

Looks good to me. Happy to see this change coming :)

Louis

--
Dr Louis Rilling Kerlabs - IRISA
Skype: louis.rilling Campus Universitaire de Beaulieu
Phone: (+33|0) 2 99 84 71 52 Avenue du General Leclerc
Fax: (+33|0) 2 99 84 71 71 35042 Rennes CEDEX - France
http://www.kerlabs.com/
--
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/