Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754616Ab0AZR13 (ORCPT ); Tue, 26 Jan 2010 12:27:29 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754161Ab0AZR12 (ORCPT ); Tue, 26 Jan 2010 12:27:28 -0500 Received: from mail-yw0-f176.google.com ([209.85.211.176]:43886 "EHLO mail-yw0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753565Ab0AZR11 (ORCPT ); Tue, 26 Jan 2010 12:27:27 -0500 Date: Tue, 26 Jan 2010 22:40:14 +0530 From: Himanshu Chauhan To: Greg KH Cc: Himanshu Chauhan , Linux Kernel , Kernel Newbies Subject: Re: sysfs_ops show vector: size of buffer not required? Message-ID: <20100126171014.GA5999@himanshu-laptop> References: <20100124074118.GA4201@himanshu-laptop> <20100126043646.GB32066@kroah.com> <20100126063127.GA2369@himanshu-laptop> <20100126152924.GA3204@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100126152924.GA3204@kroah.com> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1541 Lines: 45 On Tue, Jan 26, 2010 at 07:29:24AM -0800, Greg KH wrote: > On Tue, Jan 26, 2010 at 12:01:27PM +0530, Himanshu Chauhan wrote: > > On Mon, Jan 25, 2010 at 08:36:46PM -0800, Greg KH wrote: > > > On Sun, Jan 24, 2010 at 01:11:18PM +0530, Himanshu Chauhan wrote: > > > > Hi All, > > > > > > > > The sysfs_ops's show vector doesn't have a size of the > > > > buffer given to the vector, while store on the other hand > > > > has. What is the rationale behind it? > > > > > > If you need to check the size, you are doing something wrong. > > > > > > Seriously, that is the reason. A sysfs file should be a single value, > > > which will never overflow the buffer. > > > > > I was talking in context of usb/ip's show_status. It writes a lot of data > > into this buffer. > > Then it needs to be fixed. Again, it must be, one value per file, that > is the sysfs rule. > > > Which seems to over flow the buffer. But anyways, I will check if it > > can be reduced or at least be splitted into differnt device > > attributes. > > That would be great. Okay, I will do that. > > > BTW, Greg, Did you take a look at other patches I had sent? Are are worth or > > I need rework? > > They are in my "to-apply" queue that I will be flushing out in the next > few days. Thanks Greg. Regards Himanshu -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/