The method XenStorage._format_disk_dev() generates the xml config for a device. It is not specific to the Xen file storage implementation. It can and must be reused by other storage implementations