All of lore.kernel.org
 help / color / mirror / Atom feed
* downstream extensions
@ 2022-02-09 12:33 Vladimir Sementsov-Ogievskiy
  2022-02-10  7:48 ` Markus Armbruster
  0 siblings, 1 reply; 2+ messages in thread
From: Vladimir Sementsov-Ogievskiy @ 2022-02-09 12:33 UTC (permalink / raw)
  To: qemu block
  Cc: qemu-devel, Markus Armbruster, Eric Blake, Kevin Wolf,
	Hanna Reitz

Hi all!

We declare a kind of __com.redhat_drive-mirror syntax for downstream extensions of QAPI.

That's inconvenient:

Assume I want to merge now my keep-dirty option for Qcow2 driver "[PATCH v2 0/2] qcow2: add keep-dirty open option" to our downstream. To avoid possible conflicts with upstream in future, I should now call it __com.virtuozzo_keep-dirty. Not saying about this being too awkward, there is a real problem:

I want to support dot-object-notation syntax, i.e. something like

qemu-img check --image-opts driver=qcow2,keep-dirty=true,file.filename=img.qcow2

And this way, a period inside a name looks ambiguous, as it looks like subproperty of "__com" property.

I now tested, it still works somehow, and test from my series passes with

  keep_dirty_opts="driver=qcow2,__com.virtuozzo_keep-dirty=true,file.filename=$TEST_IMG"

But anyway, it looks ambiguous, and I don't want to use it and share with my colleagues.

In past, I used x-vz- prefix for downstream names (before I heard about __RFQDN_ notation declared in QAPI spec), that was more convenient. But still, that is not correct..

I now think to use just __vz_ prefix. Such name will never appear upstream, and unlikely to be used by Rhel downstream which is our base. And I don't care about any other downstreams.


Any thoughts? Should we change the recommendations somehow? I think allowing dots in names in the object model is a bad idea.

-- 
Best regards,
Vladimir


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

end of thread, other threads:[~2022-02-10  8:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-09 12:33 downstream extensions Vladimir Sementsov-Ogievskiy
2022-02-10  7:48 ` Markus Armbruster

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.