Hi, all
 
I have a question about the value of bdm.volume_size.
 
Here[1] I have seen that nova-api uses the volume's size as bdm.volume_size. But, if I have specified a volume_size in bdm, the way[1] will override the volume's size. 
 
Here[2], in snapshot scenario, if there is a volume_size in bdm, it will use bdm's volume_size first and secondly use the volume's size.
 
Why the behaviors are different between the snapshot scenario and the volume scenario? 
 
Could anyone give me some advice?
 
Thanks
Zhi Chang
 
 
[1].  https://github.com/openstack/nova/blob/master/nova/compute/api.py#L1754
[2].  https://github.com/openstack/nova/blob/master/nova/compute/api.py#L1768