'Update information about a pool from its volume_node info.'

def update_from_volume_capability(self, capability, service=None):

    self.update_capabilities(capability, service)
    if capability:
        if (self.updated and (self.updated > capability['timestamp'])):
            return
        self.update_backend(capability)
        self.total_capacity_gb = capability.get('total_capacity_gb', 0)
        self.free_capacity_gb = capability.get('free_capacity_gb', 0)
        self.allocated_capacity_gb = capability.get('allocated_capacity_gb', 0)
        self.QoS_support = capability.get('QoS_support', False)
        self.reserved_percentage = capability.get('reserved_percentage', 0)
        self.provisioned_capacity_gb = capability.get('provisioned_capacity_gb', self.allocated_capacity_gb)
        self.max_over_subscription_ratio = capability.get('max_over_subscription_ratio', CONF.max_over_subscription_ratio)
        self.thin_provisioning_support = capability.get('thin_provisioning_support', False)
        self.thick_provisioning_support = capability.get('thick_provisioning_support', False)
        self.multiattach = capability.get('multiattach', False)
