]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rbd/kernel.sh: quit looking for snapshot sysfs entries
authorAlex Elder <elder@inktank.com>
Thu, 30 May 2013 23:10:46 +0000 (18:10 -0500)
committerAlex Elder <elder@inktank.com>
Thu, 30 May 2013 23:38:53 +0000 (18:38 -0500)
commit6bac8ac06cca064d52e3c1157ce255dadf2b83a3
tree1934f9ab4bc3c6ac5f07115cbfc096b833b9f52c
parentd1b3eebdedae0196d79fd18b4dc68f0b735d169f
rbd/kernel.sh: quit looking for snapshot sysfs entries

The sysfs entries for snapshots went away a while ago, and this
script used them to verify sizes matched what was expected.

Instead, look at the mapped size of the snapshot in the places
that used to look for the image's snapshot sysfs files.

Also, switch over to using "udevadm settle" rather than a delay to
wait for udev to do its thing.  Insert them at more appropriate
places--right after "rmd map" commands and before and after the
"rbd unmap" calls.

Stop doing the manual refresh calls as well.  The osd will trigger
refreshes whenever the image size or shapshot context changes.

Finally, the cleanup routine is called initially, when there really
isn't expected to be anything to clean up.  Change the rbd commands
to run there conditionally, only if the target of the command
already exists.

Signed-off-by: Alex Elder <elder@inktank.com>
qa/workunits/rbd/kernel.sh