On Fri, Mar 19, 2010 at 11:05 AM, Peter Rajnoha <span dir="ltr"><<a href="mailto:prajnoha@redhat.com">prajnoha@redhat.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">As for the variables, we already carry some important</div>
information within uevents.<br>
<br>
Generally, it carries hints for udev rules to instruct them<br>
how they should be applied correctly, which parts should be<br>
run based on the type of the device, it's real meaning with all<br>
relations to other devices taken into account within that<br>
DM subsystem used (e.g. LVM2's snapshots, mirrors...).<br>
<br>
Most of this information is really not suitable to be stored<br>
as a sysfs attribute since it deals with userspace notions,<br>
an abstraction layer above device-mapper...<br></blockquote><div><br></div><div>Presumably this information originates from user space when</div><div>setting up the device-mapper device, right? Why can't you</div><div>
simply store it in, say, /var/run/device-mapper?</div><div><br></div><div>(Or, better, store it in /dev/.device-mapper/ to avoid hitting</div><div>the real disk - /dev is guaranteed to be on tmpfs)</div><div><br></div><div>
Thanks,</div><div>David</div><div><br></div></div>