Esempio n. 1
0
    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
Esempio n. 2
0
File: Fsck.py Progetto: thiell/shine
    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
Esempio n. 3
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
Esempio n. 4
0
 def __init__(self, target, **kwargs):
     FSAction.__init__(self, target, **kwargs)
     self.mount_options = kwargs.get('mount_options')
     self.mount_paths = kwargs.get('mount_paths')
Esempio n. 5
0
 def __init__(self, target, **kwargs):
     FSAction.__init__(self, target, **kwargs)
     self.mount_options = kwargs.get('mount_options')
     self.mount_paths = kwargs.get('mount_paths')