Browse Source

formatting

pull/2/head
Chris Lu 12 years ago
parent
commit
97556f6023
  1. 6
      weed-fs/src/cmd/weed/export.go

6
weed-fs/src/cmd/weed/export.go

@ -27,12 +27,11 @@ var cmdExport = &Command{
}
var (
exportVolumePath = cmdExport.Flag.String("dir", "/tmp", "data directory to store files")
exportVolumePath = cmdExport.Flag.String("dir", "/tmp", "input data directory to store volume data files")
exportVolumeId = cmdExport.Flag.Int("volumeId", -1, "a volume id. The volume should already exist in the dir. The volume index file should not exist.")
dest = cmdExport.Flag.String("o", "", "output tar file name")
tarFh *tar.Writer
tarHeader tar.Header
counter int
)
func runExport(cmd *Command, args []string) bool {
@ -113,8 +112,5 @@ func walker(vid storage.VolumeId, n *storage.Needle) (err error) {
n.Mime,
)
}
if err == nil {
counter++
}
return
}
Loading…
Cancel
Save