On Wed, Sep 5, 2012 at 10:05 AM, Wido den Hollander <wido@xxxxxxxxx> wrote: >> For example, rbd:?id=admin&secret=s3kr1t&mon=1.2.3.4&mon=5.6.7.8&pool=rbd >> is perfectly legal. >> >> Whether some Java library fails to implement generic URIs is another >> concern.. > It is indeed a Java library in this case: > http://docs.oracle.com/javase/6/docs/api/java/net/URI.html I don't see anything on that page to prevent you from doing u.getQuery() and using the fields from that (and then living with Java lack of good stdlib and using something like http://stackoverflow.com/questions/1667278/parsing-query-strings-in-java to actually parse the string into key=value pairs). Or, use *exactly* what the QEmu RBD code is doing, by getting the data our of the URI with getSchemeSpecificPart -- that'll work as long as you don't start the part with a slash ("rbd:/"). I see no reason here why the rbd:poolname/devicename[@snapshotname][:option1=value1[:option2=value2...]] syntax from QEmu wouldn't work, just as is. -- 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