Applied, thanks! On Thu, 10 Nov 2011, Stratos Psomadakis wrote: > If the rbd showmapped cmd is given any extra arguments, rbd will fail > with "assert(0)". Fix it by exiting with "usage_exit()", if any > arguments are present, instead of failing. > > Signed-off-by: Stratos Psomadakis <psomas@xxxxxxxx> > --- > src/rbd.cc | 3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) > > diff --git a/src/rbd.cc b/src/rbd.cc > index 30f045f..47b556d 100644 > --- a/src/rbd.cc > +++ b/src/rbd.cc > @@ -986,6 +986,9 @@ int main(int argc, const char **argv) > case OPT_RENAME: > set_conf_param(v, &imgname, &destname); > break; > + case OPT_SHOWMAPPED: > + usage_exit(); > + break; > default: > assert(0); > break; > -- > 1.7.2.5 > > -- > To unsubscribe from this list: send the line "unsubscribe ceph-devel" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html > > -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html