mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
lvmdbusd: Add check for reserved name '_vdata'
Added for vdo support.
This commit is contained in:
parent
b7c64fe8e2
commit
bafe5d15b1
@ -455,7 +455,7 @@ _ALLOWABLE_CH_SET = set(_ALLOWABLE_CH)
|
|||||||
_ALLOWABLE_VG_LV_CH = string.ascii_letters + string.digits + '.-_+'
|
_ALLOWABLE_VG_LV_CH = string.ascii_letters + string.digits + '.-_+'
|
||||||
_ALLOWABLE_VG_LV_CH_SET = set(_ALLOWABLE_VG_LV_CH)
|
_ALLOWABLE_VG_LV_CH_SET = set(_ALLOWABLE_VG_LV_CH)
|
||||||
_LV_NAME_RESERVED = ("_cdata", "_cmeta", "_corig", "_mimage", "_mlog",
|
_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
|
# Tags can have the characters, based on the code
|
||||||
# a-zA-Z0-9._-+/=!:&#
|
# a-zA-Z0-9._-+/=!:&#
|
||||||
|
@ -1670,7 +1670,7 @@ class TestDbusService(unittest.TestCase):
|
|||||||
for reserved in (
|
for reserved in (
|
||||||
"_cdata", "_cmeta", "_corig", "_mimage", "_mlog",
|
"_cdata", "_cmeta", "_corig", "_mimage", "_mlog",
|
||||||
"_pmspare", "_rimage", "_rmeta", "_tdata", "_tmeta",
|
"_pmspare", "_rimage", "_rmeta", "_tdata", "_tmeta",
|
||||||
"_vorigin"):
|
"_vorigin", "_vdata"):
|
||||||
with self.assertRaises(dbus.exceptions.DBusException):
|
with self.assertRaises(dbus.exceptions.DBusException):
|
||||||
self.handle_return(
|
self.handle_return(
|
||||||
vg_proxy.Vg.LvCreateLinear(
|
vg_proxy.Vg.LvCreateLinear(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user