I imagine an operation similar to PGNLS could be sent that does the same thing, but performs deletes instead of returning the names.
David On 5/23/17 6:09 AM, John Spray wrote:
Soon, we'll probably be letting multiple CephFS filesystems use the same data and metadata pools, where the filesystems are separated by rados namespace. When removing filesystems, in the interests of robustness and speed, I'd like to be able to delete all objects in a namespace -- otherwise we would have to rely on a "rm -rf" and then some new code to explicitly enumerate and delete all metadata objects for that filesystem. I'm pondering whether this should just be a process that happens via normal client interfaces (where mon/mgr would be the client), or whether it would be feasible/desirable to implement something inside the OSD. Obviously the OSD ultimately has to do the same underlying enumeration, but at least it doesn't have to thrash through the whole request/response cycle for deleting each object individually -- might enable it to throttle internally in the OSD based on how busy it knows itself to be, rather than having the client apply some arbitrary "only issue N deletions at once" type limit that might make the deletion process unecessarily slow. I have a feeling we must have talked about this at some point but my memory is failing me... John -- 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