[lxc-devel] RFC: aliases

Dwight Engen dwight.engen at oracle.com
Wed Aug 21 15:44:47 UTC 2013


On Wed, 21 Aug 2013 07:59:11 -0500
Serge Hallyn <serge.hallyn at ubuntu.com> wrote:

> Quoting Christian Seiler (christian at iwakd.de):
[...]
> To implement that, we would rename lxc_container_new() to
> lxc_container_new_ln() which takes an extra boolean and dereferences
> the symlink if the boolean is true, have lxc_container_new() call
> that, and have lxc-destroy call lxc_container_new_ln() with the
> boolean false.
> 
> > - When showing names (mostly lxc-ls), always show the
> >    real name by default, never the alias. So if /var/lib/lxc
> >    contains the following contents
> >            foo/
> >            bar/
> >            baz -> bar
> >    then lxc-ls should only show foo and bar. An additional
> >    option for also showing aliases (or only showing aliases)
> >    may be useful here.
> 
> Yes, that might require a trivial tweak to the listing logic
> to ignore symlinks.

Hmm, if lxc-ls is the analog of ls, then by default maybe we should
do what it does: show links. I do agree though it'd be nice to
have an option to differentiate that a name is an alias and not the
actual thing, maybe in --fancy?.

So would pretty much everything except destroy deref? (ie. info, wait,
etc...) Would the glob in monitor apply to the link or the deref'ed
name?




More information about the lxc-devel mailing list