QEMU-Devel Archive on lore.kernel.org
 help / color / Atom feed
* [Qemu-devel] [Bug 1819182] [NEW] info does not recognize file format of vpc with subformat=fixed
@ 2019-03-08 15:34 Scott Moser
  2019-03-08 15:35 ` [Qemu-devel] [Bug 1819182] " Scott Moser
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Scott Moser @ 2019-03-08 15:34 UTC (permalink / raw)
  To: qemu-devel

Public bug reported:

After creating or converting an image to vpc with 'subformat=fixed'
'qemu-img info' incorrectly identifies the image as 'raw' format.

$ qemu-img --version
qemu-img version 2.11.1(Debian 1:2.11+dfsg-1ubuntu7.10)
Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers

$ qemu-img create -f vpc -o subformat=fixed my.vpc 2G
Formatting 'my.vpc', fmt=vpc size=2147483648 subformat=fixed

$ qemu-img info my.vpc
image: my.vpc
file format: raw
virtual size: 2.0G (2147992064 bytes)
disk size: 4.0K

$ qemu-img info -f vpc my.vpc
image: my.vpc
file format: vpc
virtual size: 2.0G (2147991552 bytes)
disk size: 4.0K

** Affects: qemu
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1819182

Title:
  info does not recognize file format of vpc with subformat=fixed

Status in QEMU:
  New

Bug description:
  After creating or converting an image to vpc with 'subformat=fixed'
  'qemu-img info' incorrectly identifies the image as 'raw' format.

  $ qemu-img --version
  qemu-img version 2.11.1(Debian 1:2.11+dfsg-1ubuntu7.10)
  Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers

  $ qemu-img create -f vpc -o subformat=fixed my.vpc 2G
  Formatting 'my.vpc', fmt=vpc size=2147483648 subformat=fixed

  $ qemu-img info my.vpc
  image: my.vpc
  file format: raw
  virtual size: 2.0G (2147992064 bytes)
  disk size: 4.0K

  $ qemu-img info -f vpc my.vpc
  image: my.vpc
  file format: vpc
  virtual size: 2.0G (2147991552 bytes)
  disk size: 4.0K

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1819182/+subscriptions

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Qemu-devel] [Bug 1819182] Re: info does not recognize file format of vpc with subformat=fixed
  2019-03-08 15:34 [Qemu-devel] [Bug 1819182] [NEW] info does not recognize file format of vpc with subformat=fixed Scott Moser
@ 2019-03-08 15:35 ` Scott Moser
  2021-04-20 12:31 ` Thomas Huth
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Scott Moser @ 2019-03-08 15:35 UTC (permalink / raw)
  To: qemu-devel

$ ./go-create
#version: 2.11.1                                                                
qcow: PASS fmt=qcow auto=qcow exp=qcow [name=my-img.qcow opts=]                 
qcow2: PASS fmt=qcow2 auto=qcow2 exp=qcow2 [name=my-img.qcow2 opts=]            
qed: PASS fmt=qed auto=qed exp=qed [name=my-img.qed opts=]                      
raw: PASS fmt=raw auto=raw exp=raw [name=my-img.raw opts=]                      
vdi: PASS fmt=vdi auto=vdi exp=vdi [name=my-img.vdi opts=]                      
vhdx: PASS fmt=vhdx auto=vhdx exp=vhdx [name=my-img.vhdx opts=]                 
vmdk: PASS fmt=vmdk auto=vmdk exp=vmdk [name=my-img.vmdk opts=]                 
vpc: PASS fmt=vpc auto=vpc exp=vpc [name=my-img.vpc opts=]                      
vpc-fixed: FAIL fmt=vpc auto=raw exp=vpc [name=my-img.vpc-fixed opts=-o subformat=fixed]                                                                        
vpc-fforce: FAIL fmt=vpc auto=raw exp=vpc [name=my-img.vpc-fforce opts=-o subformat=fixed,force_size]                                                           
FAIL [2]    

** Attachment added: "shell script reproducing and testing different types."
   https://bugs.launchpad.net/qemu/+bug/1819182/+attachment/5244750/+files/go-create

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1819182

Title:
  info does not recognize file format of vpc with subformat=fixed

Status in QEMU:
  New

Bug description:
  After creating or converting an image to vpc with 'subformat=fixed'
  'qemu-img info' incorrectly identifies the image as 'raw' format.

  $ qemu-img --version
  qemu-img version 2.11.1(Debian 1:2.11+dfsg-1ubuntu7.10)
  Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers

  $ qemu-img create -f vpc -o subformat=fixed my.vpc 2G
  Formatting 'my.vpc', fmt=vpc size=2147483648 subformat=fixed

  $ qemu-img info my.vpc
  image: my.vpc
  file format: raw
  virtual size: 2.0G (2147992064 bytes)
  disk size: 4.0K

  $ qemu-img info -f vpc my.vpc
  image: my.vpc
  file format: vpc
  virtual size: 2.0G (2147991552 bytes)
  disk size: 4.0K

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1819182/+subscriptions

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug 1819182] Re: info does not recognize file format of vpc with subformat=fixed
  2019-03-08 15:34 [Qemu-devel] [Bug 1819182] [NEW] info does not recognize file format of vpc with subformat=fixed Scott Moser
  2019-03-08 15:35 ` [Qemu-devel] [Bug 1819182] " Scott Moser
@ 2021-04-20 12:31 ` Thomas Huth
  2021-04-20 14:40 ` Scott Moser
  2021-04-20 16:11 ` Thomas Huth
  3 siblings, 0 replies; 5+ messages in thread
From: Thomas Huth @ 2021-04-20 12:31 UTC (permalink / raw)
  To: qemu-devel

Suggested patch:
https://lists.gnu.org/archive/html/qemu-devel/2021-03/msg09422.html

** Changed in: qemu
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1819182

Title:
  info does not recognize file format of vpc with subformat=fixed

Status in QEMU:
  Confirmed

Bug description:
  After creating or converting an image to vpc with 'subformat=fixed'
  'qemu-img info' incorrectly identifies the image as 'raw' format.

  $ qemu-img --version
  qemu-img version 2.11.1(Debian 1:2.11+dfsg-1ubuntu7.10)
  Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers

  $ qemu-img create -f vpc -o subformat=fixed my.vpc 2G
  Formatting 'my.vpc', fmt=vpc size=2147483648 subformat=fixed

  $ qemu-img info my.vpc
  image: my.vpc
  file format: raw
  virtual size: 2.0G (2147992064 bytes)
  disk size: 4.0K

  $ qemu-img info -f vpc my.vpc
  image: my.vpc
  file format: vpc
  virtual size: 2.0G (2147991552 bytes)
  disk size: 4.0K

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1819182/+subscriptions


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug 1819182] Re: info does not recognize file format of vpc with subformat=fixed
  2019-03-08 15:34 [Qemu-devel] [Bug 1819182] [NEW] info does not recognize file format of vpc with subformat=fixed Scott Moser
  2019-03-08 15:35 ` [Qemu-devel] [Bug 1819182] " Scott Moser
  2021-04-20 12:31 ` Thomas Huth
@ 2021-04-20 14:40 ` Scott Moser
  2021-04-20 16:11 ` Thomas Huth
  3 siblings, 0 replies; 5+ messages in thread
From: Scott Moser @ 2021-04-20 14:40 UTC (permalink / raw)
  To: qemu-devel

@Thomas,

Is there really no way to detect the format other than relying on
extension? :-(

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1819182

Title:
  info does not recognize file format of vpc with subformat=fixed

Status in QEMU:
  Confirmed

Bug description:
  After creating or converting an image to vpc with 'subformat=fixed'
  'qemu-img info' incorrectly identifies the image as 'raw' format.

  $ qemu-img --version
  qemu-img version 2.11.1(Debian 1:2.11+dfsg-1ubuntu7.10)
  Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers

  $ qemu-img create -f vpc -o subformat=fixed my.vpc 2G
  Formatting 'my.vpc', fmt=vpc size=2147483648 subformat=fixed

  $ qemu-img info my.vpc
  image: my.vpc
  file format: raw
  virtual size: 2.0G (2147992064 bytes)
  disk size: 4.0K

  $ qemu-img info -f vpc my.vpc
  image: my.vpc
  file format: vpc
  virtual size: 2.0G (2147991552 bytes)
  disk size: 4.0K

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1819182/+subscriptions


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug 1819182] Re: info does not recognize file format of vpc with subformat=fixed
  2019-03-08 15:34 [Qemu-devel] [Bug 1819182] [NEW] info does not recognize file format of vpc with subformat=fixed Scott Moser
                   ` (2 preceding siblings ...)
  2021-04-20 14:40 ` Scott Moser
@ 2021-04-20 16:11 ` Thomas Huth
  3 siblings, 0 replies; 5+ messages in thread
From: Thomas Huth @ 2021-04-20 16:11 UTC (permalink / raw)
  To: qemu-devel

@smoser : fixed-size VHD images don't have a header, and there is AFAIK
currently no way for probing a footer in the QEMU code, so relying on
the extension seems to be the only way right now, as far as I can tell.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1819182

Title:
  info does not recognize file format of vpc with subformat=fixed

Status in QEMU:
  Confirmed

Bug description:
  After creating or converting an image to vpc with 'subformat=fixed'
  'qemu-img info' incorrectly identifies the image as 'raw' format.

  $ qemu-img --version
  qemu-img version 2.11.1(Debian 1:2.11+dfsg-1ubuntu7.10)
  Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers

  $ qemu-img create -f vpc -o subformat=fixed my.vpc 2G
  Formatting 'my.vpc', fmt=vpc size=2147483648 subformat=fixed

  $ qemu-img info my.vpc
  image: my.vpc
  file format: raw
  virtual size: 2.0G (2147992064 bytes)
  disk size: 4.0K

  $ qemu-img info -f vpc my.vpc
  image: my.vpc
  file format: vpc
  virtual size: 2.0G (2147991552 bytes)
  disk size: 4.0K

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1819182/+subscriptions


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, back to index

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-08 15:34 [Qemu-devel] [Bug 1819182] [NEW] info does not recognize file format of vpc with subformat=fixed Scott Moser
2019-03-08 15:35 ` [Qemu-devel] [Bug 1819182] " Scott Moser
2021-04-20 12:31 ` Thomas Huth
2021-04-20 14:40 ` Scott Moser
2021-04-20 16:11 ` Thomas Huth

QEMU-Devel Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/qemu-devel/0 qemu-devel/git/0.git
	git clone --mirror https://lore.kernel.org/qemu-devel/1 qemu-devel/git/1.git
	git clone --mirror https://lore.kernel.org/qemu-devel/2 qemu-devel/git/2.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 qemu-devel qemu-devel/ https://lore.kernel.org/qemu-devel \
		qemu-devel@nongnu.org
	public-inbox-index qemu-devel

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.nongnu.qemu-devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git