← Back to team overview

touch-packages team mailing list archive

[Bug 1030667] Re: LVM2 regex exclusion filtering applies incorrectly in some cases

 

That version is no more supported; and backport is not expected as its
not a 'security' problem

** Changed in: lvm2 (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to lvm2 in Ubuntu.
https://bugs.launchpad.net/bugs/1030667

Title:
  LVM2 regex exclusion filtering applies incorrectly in some cases

Status in lvm2 package in Ubuntu:
  Invalid

Bug description:
  lvm.conf: If I add "a|.*|" into the regex array for the filter, it
  ignores my 'sd[b-z]' exclusions and any other items (eg loop, ram)
  after the [b-z].

  It seems to be an issue with the use of square brackets inside the
  regex in certain ways.

  Eg if I use the line:

  filter = [ "a|.*|", "r|.*|" ]
  or
  filter = [ "a|.*|", "r|loop|" ]

  Then this filters _everything_ in the first example, or just loop
  devices respectively... just as you would expect.

  However as soon as I use something like:

  filter = [ "a|.*|", "r|loop[0-9]|" ]

  Then I don't get any filtering at all... except that defining _only_
  the removal filters, per:

  filter = [ "r|loop[0-9]|" ]

  .. and other filters of that ilk DO work as expected -- so long as I
  remove the "accept-all" regex.

  Even this line works as expected:

  filter = [ "a|.*|", "r|sd.|" ]

  -- Possibly since placing the the match-any-single-character (".") in
  there changes the behaviour.

  The filter currently in use works as expected and looks like:

      filter = [ "r|sd[b-z]|", "r|ram[0-9]+|", "r|loop[0-9]+|", ]

  -------

  DISTRIB_ID=Ubuntu
  DISTRIB_RELEASE=10.04
  DISTRIB_CODENAME=lucid
  DISTRIB_DESCRIPTION="Ubuntu 10.04.3 LTS"

  -------

  lvm2:
    Installed: 2.02.54-1ubuntu4.1
    Candidate: 2.02.54-1ubuntu4.1
    Version table:
   *** 2.02.54-1ubuntu4.1 0
          500 http://au.archive.ubuntu.com/ubuntu/ lucid-updates/main Packages
          500 http://security.ubuntu.com/ubuntu/ lucid-security/main Packages
          100 /var/lib/dpkg/status
       2.02.54-1ubuntu4 0
          500 http://au.archive.ubuntu.com/ubuntu/ lucid/main Packages

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lvm2/+bug/1030667/+subscriptions