]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: resize/flatten should validate image is R/W
authorJason Dillaman <dillaman@redhat.com>
Mon, 9 Mar 2015 23:48:45 +0000 (19:48 -0400)
committerJosh Durgin <jdurgin@redhat.com>
Tue, 10 Mar 2015 22:41:46 +0000 (15:41 -0700)
commit286b38527f717d386610d6f2baeac8c36aebf752
tree53343f382bf7afb4ad08acea438fa63256912658
parent9dcd517ff9495ff917b83a761a03ec01cf9f2932
librbd: resize/flatten should validate image is R/W

When proxying resize/flatten requests, the current image
R/W state is not validated.  Also ensure the proper locks
are held when reading image metadata.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/internal.cc