All of lore.kernel.org
 help / color / mirror / Atom feed
From: Markus Lidel <Markus.Lidel@shadowconnect.com>
To: Christoph Hellwig <hch@lst.de>
Cc: gregkh@suse.de, linux-kernel@vger.kernel.org
Subject: Re: sysfs abuse in recent i2o changes
Date: Tue, 28 Jun 2005 17:02:41 +0200	[thread overview]
Message-ID: <42C16691.3090205@shadowconnect.com> (raw)
In-Reply-To: <20050628112102.GA1111@lst.de>

Hello,

Christoph Hellwig wrote:
> drivers/message/i2o/config-osm.c has a function sysfs_create_fops_file,
> which creates a sysfs file with supplied file_operations.  This is
> pretty much against the sysfs design which only wants simple attributes,
> ascsii or for corner cases binary.

I know, but i hopefully also have a good reason to do so... First, the 
attributes provided through these functions are for accessing the 
firmware... The controller has a little limitation, it could only handle 
64 blocks, but sysfs only have 4k...

Now there are two options:

1) when writing: read a 64k block, merge it with the 4k block and write 
it back, when reading: read a 64k block and only return the needed 4k block.

2) extend the sysfs attribute to allow 64k blocks

IMHO the first is not a very good solution, because for a 64k block it 
has to be written 16 times...

Of course if someone finds a better solution i would be glad to hear 
about it...

Thank you very much.


Best regards,


Markus Lidel
------------------------------------------
Markus Lidel (Senior IT Consultant)

Shadow Connect GmbH
Carl-Reisch-Weg 12
D-86381 Krumbach
Germany

Phone:  +49 82 82/99 51-0
Fax:    +49 82 82/99 51-11

E-Mail: Markus.Lidel@shadowconnect.com
URL:    http://www.shadowconnect.com

  reply	other threads:[~2005-06-28 14:54 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-28 11:21 sysfs abuse in recent i2o changes Christoph Hellwig
2005-06-28 15:02 ` Markus Lidel [this message]
2005-06-28 16:21   ` Greg KH
2005-06-28 18:08     ` Markus Lidel
2005-06-28 18:07       ` Greg KH
2005-06-29  8:33         ` Markus Lidel
2005-07-08  6:00           ` Greg KH
2005-07-08 11:11             ` Markus Lidel
2005-07-31 14:09             ` Christoph Hellwig
2005-07-31 15:40               ` Markus Lidel
2005-07-31 21:19                 ` Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42C16691.3090205@shadowconnect.com \
    --to=markus.lidel@shadowconnect.com \
    --cc=gregkh@suse.de \
    --cc=hch@lst.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.