filesystem: zpool type improvements

This commit is contained in:
Dan Bungert 2023-07-17 17:29:48 -06:00
parent 4e1a7b40c6
commit 4d28f305f4
1 changed files with 14 additions and 0 deletions

View File

@ -1072,6 +1072,20 @@ class ZPool:
# default dataset options for the zfses in the pool
fs_properties: Optional[dict] = None
component_name = "vdev"
@property
def fstype(self):
return 'zfs'
@property
def name(self):
return self.pool
@property
def mount(self):
return self.mountpoint
async def pre_shutdown(self, command_runner):
await command_runner.run(['zpool', 'export', self.pool])