xen-org/xen-api — pull request #861 by johnelse (2012-09-11 11:13:26+00:00)
Title: CA-84305: Allow SR.destroy if an SR contains only unmanaged VDIs.

This was originally fixed as CA-79059, but the fix was lost when the SR.allowed_operations code was moved to xapi_sr_operations.ml.

This changeset also removes a lot of duplicated code from xapi_sr.ml.