From e35820f7fd5dc2f155561b0a3d13352404b8a0a2 Mon Sep 17 00:00:00 2001 From: mchtech Date: Mon, 23 Apr 2018 15:12:31 +0800 Subject: [PATCH] VirtIO-SCSI-Ceph UNMAP --- kvmagent/kvmagent/plugins/vm_plugin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/kvmagent/kvmagent/plugins/vm_plugin.py b/kvmagent/kvmagent/plugins/vm_plugin.py index 24c4f6c191..9417a88fd5 100644 --- a/kvmagent/kvmagent/plugins/vm_plugin.py +++ b/kvmagent/kvmagent/plugins/vm_plugin.py @@ -788,6 +788,7 @@ def to_xmlobject(self): e(disk, 'target', None, {'dev': 'sd%s' % self.dev_letter, 'bus': 'scsi'}) e(disk, 'wwn', self.volume.wwn) e(disk, 'address', None, {'type': 'drive', 'controller': '0', 'unit': str(self.volume.deviceId)}) + e(disk, 'driver', None, {'discard': 'unmap'}) if self.volume.shareable: e(disk, 'shareable') return disk