From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754074Ab2GQSpr (ORCPT ); Tue, 17 Jul 2012 14:45:47 -0400 Received: from sabe.cs.wisc.edu ([128.105.6.20]:36468 "EHLO sabe.cs.wisc.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751318Ab2GQSpo (ORCPT ); Tue, 17 Jul 2012 14:45:44 -0400 Message-ID: <5005B2AC.6020102@cs.wisc.edu> Date: Tue, 17 Jul 2012 12:45:00 -0600 From: Mike Christie User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 MIME-Version: 1.0 To: Paolo Bonzini CC: Christoph Hellwig , James Bottomley , linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org Subject: Re: [PATCH] sd: do not set changed flag on all unit attention conditions References: <1342454772-9018-1-git-send-email-pbonzini@redhat.com> <1342455503.3176.42.camel@dabdike.int.hansenpartnership.com> <50044D56.6000400@redhat.com> <1342511100.3039.9.camel@dabdike.int.hansenpartnership.com> <50052390.7030908@redhat.com> <1342514444.3039.23.camel@dabdike.int.hansenpartnership.com> <5005285E.8060706@redhat.com> <1342516317.3039.35.camel@dabdike.int.hansenpartnership.com> <20120717163612.GA15995@infradead.org> <50059713.7090606@redhat.com> In-Reply-To: <50059713.7090606@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/17/2012 10:47 AM, Paolo Bonzini wrote: > Il 17/07/2012 18:36, Christoph Hellwig ha scritto: >>>> There's no such thing in the market today as a removable disk that's >>>> resizeable. Removable disks are for things like backup cartridges and >>>> ageing jazz drives. Worse: most removeable devices today are USB card >>>> readers whose standards compliance varies from iffy to non existent. >>>> Resizeable disks are currently the province of storage arrays. >> The virtual disks exported by aacraid are both marked removable and >> can be resized. > > Do they report resizing via unit attention? I can skip this part on > removable virtio-scsi disks if that's what real hardware does, it would > also work. > Not sure if we are talking about the same thing. So can virtio-scsi send a UA with asc/ascq that indicates the lun changed size? Other drivers do this. I updated Hannes's patches the other day to support UAs like those in userspace. I just saw the code in the patch where virtio-scsi gets that event.