This looks like a typo in lxc_copy.c

static const struct option my_longopts[] = {
        { "newname", required_argument, 0, 'N'},
        { "newpath", required_argument, 0, 'p'},
        { "rename", no_argument, 0, 'R'},
        { "snapshot", no_argument, 0, 's'},
        { "foreground", no_argument, 0, 'F'},
        { "daemon", no_argument, 0, 'd'},
        { "ephemeral", no_argument, 0, 'e'},
        { "mount", required_argument, 0, 'm'},
        { "backingstore", required_argument, 0, 'B'},

Should be "backingstorage" here. Which can be verified with
--backingstore=dir

** Changed in: lxc (Ubuntu)
     Assignee: (unassigned) => Po-Hsu Lin (cypressyew)

** Changed in: lxc (Ubuntu)
       Status: Confirmed => In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1591510

Title:
  lxc-copy: unrecognized option '--backingstorage'

Status in lxc package in Ubuntu:
  In Progress

Bug description:
  Description:    Ubuntu 16.04 LTS
  Release:        16.04

  lxc:
    Installed: 2.0.1-0ubuntu1~16.04.1
  linux-image-virtual:
    Installed: 4.4.0.24.25

  Man ref:
  http://manpages.ubuntu.com/manpages/xenial/man1/lxc-copy.1.html

  Problem:
  The man package references '-B' and '--backingstorage' as aliases of one 
another, but when the following command is executed:

  lxc-copy --name=cache --newname container1 --backingstorage=dir
  # as a test I also tried
  lxc-copy --name=cache --newname container1 --backingstorage dir

  The result is:
  lxc-copy: unrecognized option '--backingstorage'

  Expected result:
  '--backingstorage' and '-B' should be aliases and both execute correctly

  Existing workaround:
  #Use '-B' instead.
  lxc-copy --name=cache --newname container1 -B dir

  Steps to recreate:
  apt-get update && apt-get install -y lxc
  lxc-create --name=cache --template=download -- --dist ubuntu --release trusty 
--arch amd64
  lxc-copy --name=cache --newname container1 --backingstorage=dir

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1591510/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to