#477238 xen-tools: Please, remove /domains directory creation.

#477238#5
Date:
2008-04-21 23:27:02 UTC
From:
To:
Hello,

$ xen-create-image --help states :
"...
--dir         Specify where the output images should go.
              Subdirectories will be created for each guest
              If you do not wish to use loopback images specify --lvm
             or --evms.  (These three options are mutually exclusive.)"
"

The same information is in the manual page.

In fact xen-create-image and friend is adding a "domains" subdirectory
to the provided path.

It is unusfull and annoying. It does not let the user have a layout
like (unless I miss some documentation ) :
/svn/xen-domains/domain_foo1
/svn/xen-domains/domain_bar1
etc...

I would appreciate if this could be fixed in a next upload/release.

Removing "/domains/" on any line matching the following grep seems a
quick way to fix this :
$ grep domains /usr/bin/{xen,xt}-*

@+,
	Fab

#477238#10
Date:
2009-01-26 17:41:12 UTC
From:
To:
+1 from here; to enforce the 'domains' namespace is stupid and very
annoying.

#477238#15
Date:
2009-12-27 09:29:12 UTC
From:
To:
You filled the bug http://bugs.debian.org/477238 in Debian BTS
against the package xen-tools. I'm closing it at *unstable*, but it will
remain open for older distributions.

For more information about this package's removal, read
http://bugs.debian.org/561667. That bug might give the reasons why
this package was removed and suggestions of possible replacements.

Don't hesitate to reply to this mail if you have any question.

Thank you for your contribution to Debian.

#477238#26
Date:
2010-05-26 21:50:47 UTC
From:
To:
Hi,

Although I don't want to break backward compatibility, I think this
should be fixed, too.

Yeah, but it breaks backward compatibility. My solution is to add a
new option named --domaindir which works exactly as --dir, it just
doesn't add "/domains" to it. In fact, using --dir=foo would just be
setting --domaindir=foo/domains.

I created an experimental branch where this feature is committed:

http://gitorious.org/xen-tools/xen-tools/commits/domaindir

The actual commit is:

http://gitorious.org/xen-tools/xen-tools/commit/7d9ee76da361132509a2d188a1d35eced43826da

But before I merge this back in the master branch, I'd like to get
some feedback about the proposed solution for this, preferably some
testing.

	Regards, Axel (new xen-tools upstream since January)