filesystem model for dmcrypt action

This commit is contained in:
Michael Hudson-Doyle 2019-02-19 15:48:59 +01:00
parent cd185db58c
commit 84a3800a18
1 changed files with 10 additions and 0 deletions

View File

@ -603,6 +603,7 @@ class LVM_VolGroup(_Device):
type = attr.ib(default="lvm_volgroup")
name = attr.ib(default=None)
devices = attr.ib(default=attr.Factory(set)) # set([_Formattable])
_passphrase = attr.ib(default=None)
@property
def size(self):
@ -696,6 +697,15 @@ class LVM_LogicalVolume(_Formattable):
ok_for_lvm_vg = False
@attr.s(cmp=False)
class DM_Crypt:
id = attr.ib(default=id_factory("crypt"))
type = attr.ib(default="dm_crypt")
dm_name = attr.ib(default=None)
volume = attr.ib(default=None) # _Formattable
key = attr.ib(default=None)
@attr.s(cmp=False)
class Filesystem: