瀏覽代碼

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

Solomon Hykes 12 年之前
父節點
當前提交
2f781f2128
共有 1 個文件被更改,包括 0 次插入4 次删除
  1. 0 4
      commands.go

+ 0 - 4
commands.go

@@ -555,13 +555,9 @@ func (srv *Server) CmdExport(stdin io.ReadCloser, stdout io.Writer, args ...stri
 	cmd := rcli.Subcmd(stdout,
 	cmd := rcli.Subcmd(stdout,
 		"export", "CONTAINER",
 		"export", "CONTAINER",
 		"Export the contents of a filesystem as a tar archive")
 		"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 {
 	if err := cmd.Parse(args); err != nil {
 		return nil
 		return nil
 	}
 	}
-	if *fl_sparse {
-		return errors.New("Sparse mode not yet implemented") // FIXME
-	}
 	name := cmd.Arg(0)
 	name := cmd.Arg(0)
 	if container := srv.runtime.Get(name); container != nil {
 	if container := srv.runtime.Get(name); container != nil {
 		data, err := container.Export()
 		data, err := container.Export()