Re: [Qemu-devel] qemu-img problem when create a file larger than fs's size

2013-05-09 Thread yuxh
On 05/09/2013 03:44 PM, Stefan Hajnoczi wrote: On Wed, May 08, 2013 at 01:18:17PM +0800, yuxh wrote: I have to consult you a qemu-img's problem. Is this reasonable to create a file which is larger than the available size of the fs by qemu-img cmd ? When I use qemu-img create a file whi

Re: [Qemu-devel] qemu-img problem when create a file larger than fs's size

2013-05-08 Thread yuxh
On 05/08/2013 04:20 PM, Fam Zheng wrote: On Wed, 05/08 15:34, yuxh wrote: Thank you for your reply. I agreed what you said. And do you think we shall print a prompt to user when the size user specified is larger than available space ? Might be nice, but it's hard to define "avail

Re: [Qemu-devel] qemu-img problem when create a file larger than fs's size

2013-05-08 Thread yuxh
# ls -l /tmp/a -rw-rw-r--. 1 fam fam 1099511627776 May 8 14:33 /tmp/a [1]: http://en.wikipedia.org/wiki/Sparse_file On Wed, 05/08 13:18, yuxh wrote: Hello all, I have to consult you a qemu-img's problem. Is this reasonable to create a file which is larger than the available

[Qemu-devel] qemu-img problem when create a file larger than fs's size

2013-05-07 Thread yuxh
Hello all, I have to consult you a qemu-img's problem. Is this reasonable to create a file which is larger than the available size of the fs by qemu-img cmd ? When I use qemu-img create a file which is larger than the available size of the fs, the creation is completed succesfully. However