[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] block: add logical_block_size property
From: |
Kevin Wolf |
Subject: |
Re: [Qemu-devel] [PATCH] block: add logical_block_size property |
Date: |
Fri, 05 Mar 2010 10:55:52 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.7) Gecko/20100120 Fedora/3.0.1-1.fc12 Thunderbird/3.0.1 |
Am 05.03.2010 10:32, schrieb Christoph Hellwig:
> On Fri, Mar 05, 2010 at 10:26:21AM +0100, Kevin Wolf wrote:
>> Is there a check anywhere that the user didn't give us an odd block
>> size? We could get an interesting bit mask otherwise.
>
> Not yet. I used to have such a check in the first incarnation of
> the block topology patches, but I have no idea how to do it in a
> centralized way using the qdev attributs.
>
> Does anyone know if there's a better way to do this than just
> duplicating the check in every driver?
We could probably introduce a new qdev property type that says "unsigned
16 bit integer, but only powers of two", and doing this looks quite
easy. On the other hand, having a new type for each possible restriction
sounds a bit silly...
Kevin
- [Qemu-devel] [PATCH] block: add logical_block_size property, Christoph Hellwig, 2010/03/04
- [Qemu-devel] Re: [PATCH] block: add logical_block_size property, Christian Borntraeger, 2010/03/04
- Re: [Qemu-devel] [PATCH] block: add logical_block_size property, Kevin Wolf, 2010/03/05
- Re: [Qemu-devel] [PATCH] block: add logical_block_size property, Christoph Hellwig, 2010/03/16
- Re: [Qemu-devel] [PATCH] block: add logical_block_size property, Anthony Liguori, 2010/03/17
- [Qemu-devel] Re: [PATCH] block: add logical_block_size property, Christian Borntraeger, 2010/03/18