def __init__(self, target, **kwargs): FSAction.__init__(self, target, **kwargs) # e2fsck send its progression on stderr self.stderr = True # As stderr msgtree is disabled, we have to track output ourselves. self._output = [] # Logging self.logger = logging.getLogger(__name__) # To track message rate self._last_progress = 0
def __init__(self, target, **kwargs): FSAction.__init__(self, target, **kwargs) # Hack to work aroung cross-dependency with Target self.comp_is_mgs = (self.comp.TYPE == Shine.Lustre.Target.MGT.TYPE) self.comp_is_mdt = (self.comp.TYPE == Shine.Lustre.Target.MDT.TYPE) self.comp_is_ost = (self.comp.TYPE == Shine.Lustre.Target.OST.TYPE) self.stripecount = kwargs.get('stripecount') self.stripesize = kwargs.get('stripesize') self.format_params = kwargs.get('format_params') # Quota if kwargs.get('quota', False): self.quota_type = kwargs['quota_type'] else: self.quota_type = None
def __init__(self, target, **kwargs): FSAction.__init__(self, target, **kwargs) self.mount_options = kwargs.get('mount_options') self.mount_paths = kwargs.get('mount_paths')