Re: [PATCH 1/3] disallow seeks and appends on sysfs files

2005-01-24 Thread Greg KH
On Mon, Jan 24, 2005 at 10:16:37AM -0800, Mitch Williams wrote: > > > On Sat, 22 Jan 2005, Greg KH wrote: > > > > > On Fri, Jan 21, 2005 at 02:49:39PM -0800, Mitch Williams wrote: > > > This patch causes sysfs to return errors if the caller attempts to > > append > > > to or seek on a sysfs file

Re: [PATCH 1/3] disallow seeks and appends on sysfs files

2005-01-24 Thread Mitch Williams
On Sat, 22 Jan 2005, Greg KH wrote: > > On Fri, Jan 21, 2005 at 02:49:39PM -0800, Mitch Williams wrote: > > This patch causes sysfs to return errors if the caller attempts to > append > > to or seek on a sysfs file. > > And what happens to it today if you do either of these? > > Also, isn't this

Re: [PATCH 1/3] disallow seeks and appends on sysfs files

2005-01-22 Thread Greg KH
On Fri, Jan 21, 2005 at 02:49:39PM -0800, Mitch Williams wrote: > This patch causes sysfs to return errors if the caller attempts to append > to or seek on a sysfs file. And what happens to it today if you do either of these? Also, isn't this two different things? > > Generated from 2.6.11-rc1.

[PATCH 1/3] disallow seeks and appends on sysfs files

2005-01-21 Thread Mitch Williams
This patch causes sysfs to return errors if the caller attempts to append to or seek on a sysfs file. Generated from 2.6.11-rc1. Signed-off-by: Mitch Williams <[EMAIL PROTECTED]> diff -uprN -X dontdiff linux-2.6.11-clean/fs/sysfs/file.c linux-2.6.11/fs/sysfs/file.c --- linux-2.6.11-clean/fs/sys