[lkml]   [2012]   [May]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] debugfs: New debugfs interface for creation of files, directory and symlinks
On Wed, May 02, 2012 at 06:20:54PM +0530, Sasikantha babu wrote:
> As we know the current debugfs file or directory or symlink creation
> doesn't return proper error codes to the caller on failure. Because
> of this caller and user could not able to find the exact reason of
> the failure.

And what is the problem with this? Either the file is created or not,
you really shouldn't care anymore than that. It's not like you are
going to retry the creation, or are you?

Who really cares if the file is failed to be created?

> As Andrew Morton suggested (
> introduced new debugfs interface to create debugfs entries. Newer APIs
> returns proper error codes(ERR_PTR) on failure.

Again, why? What root problem are you trying to solve here?


greg k-h

 \ /
  Last update: 2012-05-02 17:41    [W:0.049 / U:4.348 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site