From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:47768) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWAoy-0006zo-UI for qemu-devel@nongnu.org; Wed, 07 Nov 2012 13:57:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TWAox-00088f-F2 for qemu-devel@nongnu.org; Wed, 07 Nov 2012 13:57:52 -0500 Received: from mail.profihost.ag ([85.158.179.208]:52135) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWAox-000884-4c for qemu-devel@nongnu.org; Wed, 07 Nov 2012 13:57:51 -0500 Message-ID: <509AAF27.5060506@profihost.ag> Date: Wed, 07 Nov 2012 19:57:43 +0100 From: Stefan Priebe MIME-Version: 1.0 References: <589082222.7272963.1352241778123.JavaMail.root@redhat.com> In-Reply-To: <589082222.7272963.1352241778123.JavaMail.root@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [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 Am 06.11.2012 23:42, schrieb Paolo Bonzini: > >> 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: > > The discard request is failing. Please check why with a breakpoint on > rbd_aio_discard_wrapper or scsi_handle_rw_error for example. I've no idea about setting breakpoints and analyse what happens... no C coder just perl. I can for sure modify code and compile... but i don't know how todo that. Greets, Stefan