Re: [Qemu-devel] [RFC] Block device size rounding

2015-10-16 Thread Peter Crosthwaite
On Fri, Oct 16, 2015 at 10:04 AM, John Snow wrote: > > > On 10/14/2015 04:36 AM, Kevin Wolf wrote: >> Am 13.10.2015 um 17:51 hat John Snow geschrieben: >>> >>> >>> On 10/13/2015 11:30 AM, Peter Crosthwaite wrote: On Tue, Oct 13, 2015 at 2:14 AM, Kevin Wolf wrote: > Am 12.10.2015 um 20:26

Re: [Qemu-devel] [RFC] Block device size rounding

2015-10-16 Thread John Snow
On 10/14/2015 04:36 AM, Kevin Wolf wrote: > Am 13.10.2015 um 17:51 hat John Snow geschrieben: >> >> >> On 10/13/2015 11:30 AM, Peter Crosthwaite wrote: >>> On Tue, Oct 13, 2015 at 2:14 AM, Kevin Wolf wrote: Am 12.10.2015 um 20:26 hat John Snow geschrieben: > > > On 10/12/2015 02

Re: [Qemu-devel] [RFC] Block device size rounding

2015-10-14 Thread Kevin Wolf
Am 13.10.2015 um 17:51 hat John Snow geschrieben: > > > On 10/13/2015 11:30 AM, Peter Crosthwaite wrote: > > On Tue, Oct 13, 2015 at 2:14 AM, Kevin Wolf wrote: > >> Am 12.10.2015 um 20:26 hat John Snow geschrieben: > >>> > >>> > >>> On 10/12/2015 02:09 PM, Peter Crosthwaite wrote: > On Mon,

Re: [Qemu-devel] [RFC] Block device size rounding

2015-10-13 Thread John Snow
On 10/13/2015 11:30 AM, Peter Crosthwaite wrote: > On Tue, Oct 13, 2015 at 2:14 AM, Kevin Wolf wrote: >> Am 12.10.2015 um 20:26 hat John Snow geschrieben: >>> >>> >>> On 10/12/2015 02:09 PM, Peter Crosthwaite wrote: On Mon, Oct 12, 2015 at 9:26 AM, Eric Blake wrote: > On 10/12/2015 09:

Re: [Qemu-devel] [RFC] Block device size rounding

2015-10-13 Thread Peter Crosthwaite
On Tue, Oct 13, 2015 at 2:14 AM, Kevin Wolf wrote: > Am 12.10.2015 um 20:26 hat John Snow geschrieben: >> >> >> On 10/12/2015 02:09 PM, Peter Crosthwaite wrote: >> > On Mon, Oct 12, 2015 at 9:26 AM, Eric Blake wrote: >> >> On 10/12/2015 09:56 AM, John Snow wrote: >> >> >> What is the correct

Re: [Qemu-devel] [RFC] Block device size rounding

2015-10-13 Thread Kevin Wolf
Am 12.10.2015 um 20:26 hat John Snow geschrieben: > > > On 10/12/2015 02:09 PM, Peter Crosthwaite wrote: > > On Mon, Oct 12, 2015 at 9:26 AM, Eric Blake wrote: > >> On 10/12/2015 09:56 AM, John Snow wrote: > >> > What is the correct action here though? If the file is writeable should >

Re: [Qemu-devel] [RFC] Block device size rounding

2015-10-13 Thread Markus Armbruster
John Snow writes: > On 10/12/2015 02:09 PM, Peter Crosthwaite wrote: >> On Mon, Oct 12, 2015 at 9:26 AM, Eric Blake wrote: >>> On 10/12/2015 09:56 AM, John Snow wrote: >>> > What is the correct action here though? If the file is writeable should > we just allow the device to extend its s

Re: [Qemu-devel] [RFC] Block device size rounding

2015-10-12 Thread John Snow
On 10/12/2015 02:09 PM, Peter Crosthwaite wrote: > On Mon, Oct 12, 2015 at 9:26 AM, Eric Blake wrote: >> On 10/12/2015 09:56 AM, John Snow wrote: >> What is the correct action here though? If the file is writeable should we just allow the device to extend its size? Is that possible alr

Re: [Qemu-devel] [RFC] Block device size rounding

2015-10-12 Thread Peter Crosthwaite
On Mon, Oct 12, 2015 at 9:26 AM, Eric Blake wrote: > On 10/12/2015 09:56 AM, John Snow wrote: > >>> What is the correct action here though? If the file is writeable should >>> we just allow the device to extend its size? Is that possible already? >>> Just zero-pad read-only? >>> >> >> Read-only se

Re: [Qemu-devel] [RFC] Block device size rounding

2015-10-12 Thread John Snow
On 10/09/2015 11:01 PM, Peter Crosthwaite wrote: > I have in interesting problem with SD cards, where if you pass a block > device that is not multiple-of-512k size the last bit gets chopped off. > The problem is the card can only report a 512kX size to the guest, so > a significant rounding is n

Re: [Qemu-devel] [RFC] Block device size rounding

2015-10-12 Thread Eric Blake
On 10/12/2015 09:56 AM, John Snow wrote: >> What is the correct action here though? If the file is writeable should >> we just allow the device to extend its size? Is that possible already? >> Just zero-pad read-only? >> > > Read-only seems like an easy case of append zeroes. Yes, allowing read-