]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Ensure disk names follow the disk name regex
authorNitesh Konkar <niteshkonkar.libvirt@gmail.com>
Wed, 15 Feb 2017 11:14:58 +0000 (16:44 +0530)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 16 Feb 2017 08:59:13 +0000 (09:59 +0100)
commit5729746543cf4df5c7b1adea877b4fe45bf67e51
tree27297db3f0b86d465b07ef061cca769faea06008
parent2dc1cf19dbaf648662fbf3c810db65ddcf5d0444
Ensure disk names follow the disk name regex

Currently disk names do not follow the
(regex) /^[fhv]d[a-z]+[0-9]*$/ completely
and hence one can assign disk names like
vd2 etc. This patch ensures that the
disk names follow the regex mentioned.
This patch also adds a testcase.

Signed-off-by: Nitesh Konkar <nitkon12@linux.vnet.ibm.com>
src/util/virutil.c
tests/utiltest.c