Il 05/03/2012 15:47, Anthony Liguori ha scritto: >> How about coupling the types with independently available commands for >> now? We would rename 'snapshot' to 'blockdev-snapshot-sync', which does >> the same thing outside of transactions. The mirror patches would then >> introduce a 'drive-mirror' top-level command at the same time as they >> introduce a 'drive-mirror' transaction type. > > I think it's reasonable but we need to make sure to document the > relationship here explicitly in the schema.
We can easily add a query-commands-transaction that returns the commands that can be placed in a transaction. Paolo