]> sourceware.org Git - lvm2.git/commitdiff
lvmdbusd: Add check for reserved name '_vdata'
authorTony Asleson <tasleson@redhat.com>
Thu, 3 Oct 2019 17:19:07 +0000 (12:19 -0500)
committerTony Asleson <tasleson@redhat.com>
Wed, 30 Oct 2019 15:38:40 +0000 (10:38 -0500)
Added for vdo support.

daemons/lvmdbusd/utils.py
test/dbus/lvmdbustest.py

index 8d64117b9620a72d062c8c6d87e5d7c9c62fc193..40b8a68dc0e7113e523ef742acff4bd3a61e4a17 100644 (file)
@@ -455,7 +455,7 @@ _ALLOWABLE_CH_SET = set(_ALLOWABLE_CH)
 _ALLOWABLE_VG_LV_CH = string.ascii_letters + string.digits + '.-_+'
 _ALLOWABLE_VG_LV_CH_SET = set(_ALLOWABLE_VG_LV_CH)
 _LV_NAME_RESERVED = ("_cdata", "_cmeta", "_corig", "_mimage", "_mlog",
-       "_pmspare", "_rimage", "_rmeta", "_tdata", "_tmeta", "_vorigin")
+       "_pmspare", "_rimage", "_rmeta", "_tdata", "_tmeta", "_vorigin", "_vdata")
 
 # Tags can have the characters, based on the code
 # a-zA-Z0-9._-+/=!:&#
index 4ae8b25172e69ce803e4b6b01b2074be80cba951..31dc4ffa20efb15bf4d054b15a0a7d53adc42994 100755 (executable)
@@ -1670,7 +1670,7 @@ class TestDbusService(unittest.TestCase):
                for reserved in (
                                "_cdata", "_cmeta", "_corig", "_mimage", "_mlog",
                                "_pmspare", "_rimage", "_rmeta", "_tdata", "_tmeta",
-                               "_vorigin"):
+                               "_vorigin", "_vdata"):
                        with self.assertRaises(dbus.exceptions.DBusException):
                                self.handle_return(
                                        vg_proxy.Vg.LvCreateLinear(
This page took 0.03501 seconds and 5 git commands to generate.