mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
lvmdbusd: WS, imports, grammar
This commit is contained in:
parent
b0c7220dbb
commit
2918994873
@ -88,7 +88,6 @@ class AutomatedProperties(dbus.service.Object):
|
|||||||
cb, cbe, False)
|
cb, cbe, False)
|
||||||
cfg.worker_q.put(r)
|
cfg.worker_q.put(r)
|
||||||
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _get_all_prop(obj, interface_name):
|
def _get_all_prop(obj, interface_name):
|
||||||
if interface_name in obj.interface(True):
|
if interface_name in obj.interface(True):
|
||||||
|
@ -7,16 +7,13 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import subprocess
|
|
||||||
from . import cfg
|
from . import cfg
|
||||||
from .cmdhandler import options_to_cli_args, LvmExecutionMeta, call_lvm
|
from .cmdhandler import options_to_cli_args, LvmExecutionMeta, call_lvm
|
||||||
import dbus
|
import dbus
|
||||||
from .utils import pv_range_append, pv_dest_ranges, log_error, log_debug,\
|
from .utils import pv_range_append, pv_dest_ranges, log_error, log_debug
|
||||||
mt_async_call
|
|
||||||
from .request import RequestEntry
|
from .request import RequestEntry
|
||||||
import threading
|
import threading
|
||||||
import time
|
import time
|
||||||
import traceback
|
|
||||||
|
|
||||||
|
|
||||||
def pv_move_lv_cmd(move_options, lv_full_name,
|
def pv_move_lv_cmd(move_options, lv_full_name,
|
||||||
|
@ -26,7 +26,6 @@ try:
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
import json
|
import json
|
||||||
|
|
||||||
SEP = '{|}'
|
|
||||||
|
|
||||||
total_time = 0.0
|
total_time = 0.0
|
||||||
total_count = 0
|
total_count = 0
|
||||||
@ -177,7 +176,6 @@ def call_lvm(command, debug=False, line_cb=None,
|
|||||||
return -errno.EINTR, "", "operation interrupted"
|
return -errno.EINTR, "", "operation interrupted"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# The actual method which gets called to invoke the lvm command, can vary
|
# The actual method which gets called to invoke the lvm command, can vary
|
||||||
# from forking a new process to using lvm shell
|
# from forking a new process to using lvm shell
|
||||||
_t_call = call_lvm
|
_t_call = call_lvm
|
||||||
|
@ -58,7 +58,7 @@ class DataStore(object):
|
|||||||
c_lookup = {}
|
c_lookup = {}
|
||||||
c_pvs_in_vgs = {}
|
c_pvs_in_vgs = {}
|
||||||
|
|
||||||
# Each item item in the report is a collection of information pertaining
|
# Each item in the report is a collection of information pertaining
|
||||||
# to the vg
|
# to the vg
|
||||||
for r in _all['report']:
|
for r in _all['report']:
|
||||||
tmp_pv = []
|
tmp_pv = []
|
||||||
|
Loading…
Reference in New Issue
Block a user