Removed 'sparse export' mode, it is deprecated by the new diff-based transfer protocol

Upstream-commit: 2f781f21288d9e579cf18fcf08a0750ce7b0ac38
Component: engine
This commit is contained in:
Solomon Hykes
2013-03-21 01:24:12 -07:00
parent ff15c16c54
commit 013fc3d292

View File

@ -555,13 +555,9 @@ func (srv *Server) CmdExport(stdin io.ReadCloser, stdout io.Writer, args ...stri
cmd := rcli.Subcmd(stdout,
"export", "CONTAINER",
"Export the contents of a filesystem as a tar archive")
fl_sparse := cmd.Bool("s", false, "Generate a sparse tar stream (top layer + reference to bottom layers)")
if err := cmd.Parse(args); err != nil {
return nil
}
if *fl_sparse {
return errors.New("Sparse mode not yet implemented") // FIXME
}
name := cmd.Arg(0)
if container := srv.runtime.Get(name); container != nil {
data, err := container.Export()