2019-10-31 18:32:56 -04:00
|
|
|
try:
|
|
|
|
import dbus
|
|
|
|
has_mod = True
|
|
|
|
except ImportError:
|
|
|
|
# This is ineffecient; the native dbus module is preferred.
|
|
|
|
# In Arch, this can be installed via the 'extra' repository package "python-dbus".
|
|
|
|
import subprocess
|
|
|
|
has_mod = False
|
|
|
|
##
|
2019-10-31 23:20:05 -04:00
|
|
|
import aif.disk.block
|
|
|
|
import aif.disk.luks
|
|
|
|
import aif.disk.mdadm
|
2019-10-31 18:32:56 -04:00
|
|
|
|
|
|
|
|
2019-10-26 02:52:47 -04:00
|
|
|
class PV(object):
|
|
|
|
def __init__(self, partobj):
|
|
|
|
self.devpath = None
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
2019-10-31 18:32:56 -04:00
|
|
|
class VG(object):
|
2019-10-26 02:52:47 -04:00
|
|
|
def __init__(self, vg_xml, lv_objs):
|
|
|
|
self.devpath = None
|
|
|
|
pass
|
2019-10-31 18:32:56 -04:00
|
|
|
|
|
|
|
|
|
|
|
class LV(object):
|
|
|
|
def __init__(self, lv_xml, pv_objs):
|
|
|
|
pass
|