]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
rbd: implement get_volume_stats()
authorJosh Durgin <josh.durgin@inktank.com>
Wed, 20 Feb 2013 01:11:41 +0000 (17:11 -0800)
committerJosh Durgin <josh.durgin@inktank.com>
Wed, 20 Feb 2013 07:15:18 +0000 (23:15 -0800)
commitcbf3bfcf6339fe4d1fe4e279363db4f899e170d3
treef4daa7d71907b6d4e133716165e418bcadc5069f
parent452ed59e51850c0498365fdf6354bc5a4f71c15e
rbd: implement get_volume_stats()

Report raw capacity because replication level may change, and the
cluster may be used by more than one service. If the command fails for
any reason, return unknown capacity.

Change-Id: If6871124301b51e4768ea64c4d8e5109e0804db8
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
cinder/tests/test_rbd.py
cinder/volume/drivers/rbd.py