Messages in this thread | | | Date | Thu, 29 Jul 2010 22:24:15 +0200 | From | Milan Broz <> | Subject | Re: [PATCH] loop: add some basic read-only sysfs attributes |
| |
On 07/29/2010 09:56 PM, Karel Zak wrote: >> Sure it does. Sysfs attributes need to be created _before_ uevents are >> sent out. The current behavior is that all blockdev attributes are >> safely created before the event is sent. These loop attributes are >> created _after_ the event is sent. >> >> The question is if we can rely on the fact, that 'add' events never >> want to look at any of these attributes, and all can be deferred to
The problem is that add_disk() initializes kobject and announces device. How can I add some new attributes (subdir) with the current code before it happens?
And why it is problem at all? After configuration there is always change event and at this time attributes are there.
Milan
| |