def init_volume(self, fstype=None):
        """Initializes a single volume. You should use this method instead of :func:`mount` if you want some sane checks
        before mounting.
        """

        logger.debug("Initializing volume {0}".format(self))

        if not self._should_mount():
            return False

        if self.flag != 'alloc':
            return False

        if self.info.get('raid_status') == 'waiting':
            logger.info("RAID array %s not ready for mounting", self)
            return False

        if self.is_mounted:
            logger.info("%s is currently mounted, not mounting it again", self)
            return False

        logger.info("Mounting volume {0}".format(self))
        self.mount(fstype=fstype)
        self.detect_mountpoint()

        return True
def init_volume ( self , fstype = None ) : logger . debug ( "Initializing volume {0}" . format ( self ) ) if not self . _should_mount ( ) : return False if self . flag != 'alloc' : return False if self . info . get ( 'raid_status' ) == 'waiting' : logger . info ( "RAID array %s not ready for mounting" , self ) return False if self . is_mounted : logger . info ( "%s is currently mounted, not mounting it again" , self ) return False logger . info ( "Mounting volume {0}" . format ( self ) ) self . mount ( fstype = fstype ) self . detect_mountpoint ( ) return True
Initializes a single volume. You should use this method instead of :func:`mount` if you want some sane checks
        before mounting.