From: Josh Durgin Date: Tue, 22 Nov 2011 02:14:25 +0000 (-0800) Subject: rbd: return errors for mapped but deleted snapshot X-Git-Tag: v3.6-rc1~36^2~46 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e88a36ec961b8c1899c59c5e4ae35a318c0209d3;p=pandora-kernel.git rbd: return errors for mapped but deleted snapshot When a snapshot is deleted, the OSD will return ENOENT when reading from it. This is normally interpreted as a hole by rbd, which will return zeroes. To minimize the time in which this can happen, stop requests early when we are notified that our snapshot no longer exists. [elder@inktank.com: updated __rbd_init_snaps_header() logic] Signed-off-by: Josh Durgin Reviewed-by: Alex Elder --- Reading git-diff-tree failed