]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Adds ionice command permutations to rootwrap filters
authorBryan D. Payne <bdpayne@acm.org>
Mon, 31 Mar 2014 22:50:43 +0000 (15:50 -0700)
committerBryan D. Payne <bdpayne@acm.org>
Tue, 1 Apr 2014 22:55:39 +0000 (15:55 -0700)
commitd5c74a954b260567874c45c39b92904f3756b806
tree4dc80a00708cc1baaba1737a0905dd76b5d5268c
parent6b3d177695ef360fce9454c890fd262d2429e0b8
Adds ionice command permutations to rootwrap filters

When setting volume_clear_ionice, the ionice command is prepended to a dd
command before executing it.  Previously, this would have failed because it
wasn't allowed through the default rootwrap filters.  This commit fixes this
problem.

Note that due to the way that the RegExpFilter works, we need three different
expressions to cover all cases.  This is because the various options result
in a different number of arguments.  And this filter will fail immediately
if the number of arguments is incorrect.

Change-Id: Ie29f7fa21b34982ed5394c2c8f38c3e066ef0112
Closes-Bug: #1300496
etc/cinder/rootwrap.d/volume.filters