def _zfs_storagepool(reactor, pool=FLOCKER_POOL, mount_root=None, volume_config_path=None):
 if (mount_root is None):
  mount_root = FLOCKER_MOUNTPOINT
 else:
  mount_root = FilePath(mount_root)
 if (volume_config_path is None):
  config_path = DEFAULT_CONFIG_PATH
 else:
  config_path = FilePath(volume_config_path)
 pool = zfs.StoragePool(reactor=reactor, name=pool, mount_root=mount_root)
 api = VolumeService(config_path=config_path, pool=pool, reactor=reactor)
 api.startService()
 return api

def _zfs_storagepool ( reactor , pool = FLOCKER_POOL , mount_root = None , volume_config_path = None ) : if ( mount_root is None ) : mount_root = FLOCKER_MOUNTPOINT else : mount_root = FilePath ( mount_root ) if ( volume_config_path is None ) : config_path = DEFAULT_CONFIG_PATH else : config_path = FilePath ( volume_config_path ) pool = zfs . StoragePool ( reactor = reactor , name = pool , mount_root = mount_root ) api = VolumeService ( config_path = config_path , pool = pool , reactor = reactor ) api . startService ( ) return api
create a volumeservice with a zfs .