Re: sysfs: spit a warning to users when they try to create a duplicate sysfs file

2007-09-16 Thread Greg KH
On Fri, Sep 14, 2007 at 02:06:21PM +0200, Cornelia Huck wrote: > On Thu, 13 Sep 2007 16:41:18 -0700, > Greg KH <[EMAIL PROTECTED]> wrote: > > > > int sysfs_add_one(struct sysfs_addrm_cxt *acxt, struct sysfs_dirent *sd) > > { > > - if (sysfs_find_dirent(acxt->parent_sd, sd->s_name)) > > + if

Re: sysfs: spit a warning to users when they try to create a duplicate sysfs file

2007-09-15 Thread Stefan Richter
Greg KH wrote: > We want to let people know when we create a duplicate sysfs file, as > they need to fix up their code. > > > Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> > > --- > fs/sysfs/dir.c |6 +- > 1 file changed, 5 insertions(+), 1 deletion(-) > > --- a/fs/sysfs/dir.c

Re: sysfs: spit a warning to users when they try to create a duplicate sysfs file

2007-09-14 Thread Cornelia Huck
On Thu, 13 Sep 2007 16:41:18 -0700, Greg KH <[EMAIL PROTECTED]> wrote: > int sysfs_add_one(struct sysfs_addrm_cxt *acxt, struct sysfs_dirent *sd) > { > - if (sysfs_find_dirent(acxt->parent_sd, sd->s_name)) > + if (sysfs_find_dirent(acxt->parent_sd, sd->s_name)) { > + printk(