[Ocfs2-devel] [RFC] configfs: Allow ->make_item() and ->make_group() to return detailed errors.

Louis Rilling Louis.Rilling at kerlabs.com
Thu Jun 12 15:38:03 PDT 2008


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 at oracle.com>

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/



More information about the Ocfs2-devel mailing list