mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +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_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._-+/=!:&#
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user