<br><br><div><span class="gmail_quote">2007/11/15, Kiyoshi Ueda <<a href="mailto:k-ueda@ct.jp.nec.com">k-ueda@ct.jp.nec.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Stefan,<br><br>Did you drop dm-devel from Cc meaningly?</blockquote><div><br>Oops, no. Just me accidentally using reply instead of reply-all<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Wed, 14 Nov 2007 23:11:55 +0100, "Stefan Bader" <<a href="mailto:sbader3@googlemail.com">sbader3@googlemail.com</a>> wrote:<br>> > Before discussing details, I would like to make my standpoint clear.
<br>> >   - Minimize the number of sections user has to modify as possible<br>> >   - Don't confuse users by pretending too much flexibility<br>> ><br>> > If we could do with only one section, it would be ideal.
<br>> > However, wwid can be obtained only by getuid callout, which has<br>> > side effects of accessing devices and yielding unpleasant kernel<br>> > warning messages, etc.<br>> > So the filtering has to be splitted into 2 stages at least:
<br>> >   before running getuid callout and after that<br>> > and we can't use wwid in the 1st stage.<br>> > Not to pretend that mixing wwid filtering and others is possible,<br>> > it's natural to have 2 different filtering sections.
<br>><br>><br>> The behavior that is not that well expected is that if you can not do the<br>> following:<br>><br>> blacklist {<br>>     devnode ".*"<br>>     wwid ".*"<br>> }
<br>> blacklist_execptions {<br>>     devnode "^sda[0-9+]"<br>>     wwid "foo"<br>> }<br><br>Sorry, I don't understand what you mean.  Could you elaborate that?<br>Do you mean that my proposal doesn't work for the case above?
<br>Or do you mean that current code doesn't work as expected although<br>we can specify like above, but my proposal removes the confusion?</blockquote><div><br>I am sorry, I was a bit unclear. The example was for the current code, which allows to write a blacklist like in the example but does not give the expected result. Your proposal would (in my opinion) remove the confusion because both stages would apply the rules in the order they are written. Which is not the case in the current code.
<br><br>In the current code there are, from my point of view, two problems:<br>1. the rules are not checked in the order they are written but in the order devnode, wwid, device.<br>2. the first match in the order above is used. There is no way to change this. For example (current code):
<br><br>blacklist {<br>    devnode ".*"<br>}<br>blacklist_exception {<br>    wwid "foo"<br>    devnode "dasda"<br>}<br></div><br></div>This will only use dasda. The wwid entries are just useless.
<br><br>Regards,<br>Stefan