rbd: return an error when an invalid header is read
authorJosh Durgin <josh.durgin@dreamhost.com>
Tue, 15 Nov 2011 22:49:53 +0000 (14:49 -0800)
committerSage Weil <sage@newdream.net>
Wed, 7 Dec 2011 18:46:10 +0000 (10:46 -0800)
commit81e759fbf7715514c32e563789db1d9d47fd55fb
tree076296ce4a9c12c400e0a0de39d80844ced3aa14
parent2151937d7ce491bfbe269a1ae742c6686904474c
rbd: return an error when an invalid header is read

This protects against opening future rbd images that have incompatible format changes.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
drivers/block/rbd.c