I have just committed a significant change to devfs path matching logic http://svnweb.freebsd.org/changeset/base/253677 Jaakko Heinonen (jh@) has full credit for the code while I have full responsibility for any consequences of the commit. Before this change the logic of matching the devfs paths to the patterns in devfs rules was quite arcane. Now this logic should be much simpler and logical (sorry for tautology). Please note that nothing changes with respect to matching simple paths like /dev/something. It is the complex paths that involve subdirectories that are affected. I think that if you knew how the old logic worked and were able to devise rules for it, then you will have no problem to change those rules for the new logic. Just please don't forget to do it when you upgrade! I hope that overall you will find this change to be an improvement. P.S. I notify stable@ because I currently plan to MFC this change after 1 month period. If you know a reason why the MFC should not be done, please alert me to it. -- Andriy Gapon
on 26/07/2013 17:39 Andriy Gapon said the following:> Please note that nothing changes with respect to matching simple paths like > /dev/something.I must add: and thus rules in etc/defaults/devfs.rules should not be affected except for their unintended side-effects. -- Andriy Gapon
This change is about to be MFC-ed. on 26/07/2013 17:39 Andriy Gapon said the following:> > I have just committed a significant change to devfs path matching logic > http://svnweb.freebsd.org/changeset/base/253677 > > Jaakko Heinonen (jh@) has full credit for the code while I have full > responsibility for any consequences of the commit. > > Before this change the logic of matching the devfs paths to the patterns in > devfs rules was quite arcane. Now this logic should be much simpler and logical > (sorry for tautology). > > Please note that nothing changes with respect to matching simple paths like > /dev/something. It is the complex paths that involve subdirectories that are > affected. > > I think that if you knew how the old logic worked and were able to devise rules > for it, then you will have no problem to change those rules for the new logic. > Just please don't forget to do it when you upgrade! > > I hope that overall you will find this change to be an improvement. > > P.S. I notify stable@ because I currently plan to MFC this change after 1 month > period. If you know a reason why the MFC should not be done, please alert me to it. >-- Andriy Gapon