From: Tony Asleson <tasleson@sourceware.org>
To: lvm-devel@redhat.com
Subject: main - lvmdbustest: Include major number 259
Date: Mon, 19 Sep 2022 15:57:46 +0000 (GMT) [thread overview]
Message-ID: <20220919155746.848843858D39@sourceware.org> (raw)
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=4b4d431631ec8df90d6d5793fbfc26c6999e154c
Commit: 4b4d431631ec8df90d6d5793fbfc26c6999e154c
Parent: 9ffa1ef884f51d08fc6f2b39287a8d566eeed7df
Author: Tony Asleson <tasleson@redhat.com>
AuthorDate: Mon Aug 8 10:03:52 2022 -0500
Committer: Tony Asleson <tasleson@redhat.com>
CommitterDate: Fri Sep 16 10:49:36 2022 -0500
lvmdbustest: Include major number 259
When you have > 16 partitions for a block device the major number
changes, include them for testing.
---
test/dbus/lvmdbustest.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/test/dbus/lvmdbustest.py b/test/dbus/lvmdbustest.py
index aadd036b0..02d4d35d7 100755
--- a/test/dbus/lvmdbustest.py
+++ b/test/dbus/lvmdbustest.py
@@ -1414,7 +1414,10 @@ class TestDbusService(unittest.TestCase):
@staticmethod
def _get_devices():
context = pyudev.Context()
- return context.list_devices(subsystem='block', MAJOR='8')
+ bd = context.list_devices(subsystem='block')
+ # Handle block extended major too (259)
+ return [b for b in bd if b.properties.get('MAJOR') == '8' or
+ b.properties.get('MAJOR') == '259']
def _pv_scan(self, activate, cache, device_paths, major_minors):
mgr = self._manager().Manager
reply other threads:[~2022-09-19 15:57 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220919155746.848843858D39@sourceware.org \
--to=tasleson@sourceware.org \
--cc=lvm-devel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.