]> git.proxmox.com Git - mirror_lxc.git/commit
Refactor lxc-snapshot
authorChristian Brauner <christianvanbrauner@gmail.com>
Thu, 6 Aug 2015 12:54:25 +0000 (14:54 +0200)
committerChristian Brauner <christianvanbrauner@gmail.com>
Fri, 7 Aug 2015 21:40:38 +0000 (23:40 +0200)
commit5d5da49be4dc5603c56042bf6f4393151e27c321
tree84c31b5702fc75fceb00a8d8abbc26175ba78db8
parentf20b99d3de79df61b31b4f3563b1d9b64abf13f0
Refactor lxc-snapshot

- lxc_snapshot.c lacked necessary members in the associated lxc_arguments struct
  in arguments.h. This commit extends the lxc_arguments struct to include
  several parameters used by lxc-snapshot which allows a rewrite that is more
  consistent with the rest of the lxc-* executables.
- All tests have been moved beyond the call to lxc_log_init() to allow for the
  messages to be printed or saved.
- Some small changes to the my_args struct. (The enum task is set to
  SNAP (for snapshot) per default and variables illustrating the usage of the
  command line flags are written in all caps.)
- arguments.h has been extended to accommodate a rewrite of lxc-clone

Signed-off-by: Christian Brauner <christianvanbrauner@gmail.com>
src/lxc/arguments.h
src/lxc/lxc_snapshot.c