From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:59373) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TVeii-0004Pm-OW for qemu-devel@nongnu.org; Tue, 06 Nov 2012 03:41:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TVeic-0007NU-1R for qemu-devel@nongnu.org; Tue, 06 Nov 2012 03:41:16 -0500 Received: from mail.profihost.ag ([85.158.179.208]:58456) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TVeib-0007N9-OE for qemu-devel@nongnu.org; Tue, 06 Nov 2012 03:41:09 -0500 Message-ID: <5098CD1F.6070806@profihost.ag> Date: Tue, 06 Nov 2012 09:41:03 +0100 From: Stefan Priebe - Profihost AG MIME-Version: 1.0 References: <98049832.51273913.1345534204336.JavaMail.root@redhat.com> In-Reply-To: <98049832.51273913.1345534204336.JavaMail.root@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] scsi-hd with discard_granularity and unmap results in Aborted Commands List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org Hello list, i wantes to use scsi unmap with rbd. rbd documention says you need to set discard_granularity=512 for the device. I'm using qemu 1.2. If i set this and send an UNMAP command i get this kernel output: Sense Key : Aborted Command [current] sd 2:0:0:1: [sdb] Add. Sense: I/O process terminated sd 2:0:0:1: [sdb] CDB: Write same(16): 93 08 00 00 00 00 00 00 00 00 00 7f ff ff 00 00 end_request: I/O error, dev sdb, sector 0 sd 2:0:0:1: [sdb] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE sd 2:0:0:1: [sdb] Sense Key : Aborted Command [current] sd 2:0:0:1: [sdb] Add. Sense: I/O process terminated sd 2:0:0:1: [sdb] CDB: Write same(16): 93 08 00 00 00 00 01 ff ff fc 00 7f ff ff 00 00 end_request: I/O error, dev sdb, sector 33554428 sd 2:0:0:1: [sdb] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE sd 2:0:0:1: [sdb] Sense Key : Aborted Command [current] sd 2:0:0:1: [sdb] Add. Sense: I/O process terminated sd 2:0:0:1: [sdb] CDB: Write same(16): 93 08 00 00 00 00 00 ff ff fe 00 7f ff ff 00 00 end_request: I/O error, dev sdb, sector 16777214 Greets, Stefan