]> Pileus Git - ~andy/linux/commit
rbd: fix up the layering warning message
authorAlex Elder <elder@inktank.com>
Tue, 30 Apr 2013 05:44:32 +0000 (00:44 -0500)
committerSage Weil <sage@inktank.com>
Thu, 2 May 2013 04:20:10 +0000 (21:20 -0700)
commit96882f55c40dcb4cd80b81a4374fdd297109ec98
tree68a83f8542a659aa6e5f398f0448d538ce999deb
parent812164f8c3f6f5348aa69003a2f81775c2872ac0
rbd: fix up the layering warning message

A warning gets spewed for any image being probed, including parent
images.  Set up a condition such that the warning message only gets
printed for the image being mapped, not any of its parents.

Also, I didn't like the way the warning ended up being so long.
Make it a terse warning instead.  People experimenting with layering
will know what the message means.

This is part of:
    http://tracker.ceph.com/issues/4867

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
drivers/block/rbd.c