Merge pull request #15 from aszxqw/upstream_master

Changing to github !!! Thanks!
This commit is contained in:
chrislusf 2014-09-25 21:24:08 -07:00
commit 348a50052e
71 changed files with 148 additions and 138 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
weed

View File

@ -5,10 +5,19 @@ weed-fs
[![GoDoc](https://godoc.org/github.com/chrislusf/weed-fs/go?status.svg)](https://godoc.org/github.com/chrislusf/weed-fs/go)
[![RTD](https://readthedocs.org/projects/weed-fs/badge/?version=latest)](http://weed-fs.readthedocs.org/en/latest/)
## Introduction
An official mirror of code.google.com/p/weed-fs.
Moving to github.com to make cooperations easier.
This repo and the google code repo will be kept synchronized.
## Usage
```
go get github.com/chrislusf/weed-fs/go/weed
```
## Reference
For documents and bug reporting, Please visit
http://weed-fs.googlecode.com

View File

@ -3,7 +3,7 @@ package filer
import ()
import (
"code.google.com/p/weed-fs/go/util"
"github.com/chrislusf/weed-fs/go/util"
"encoding/json"
"errors"
"fmt"

View File

@ -2,7 +2,7 @@ package filer
import (
"bufio"
"code.google.com/p/weed-fs/go/util"
"github.com/chrislusf/weed-fs/go/util"
"fmt"
"io"
"os"

View File

@ -1,7 +1,7 @@
package filer
import (
"code.google.com/p/weed-fs/go/operation"
"github.com/chrislusf/weed-fs/go/operation"
"errors"
"fmt"
"path/filepath"

View File

@ -2,7 +2,7 @@ package filer
import (
"bytes"
"code.google.com/p/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/glog"
"github.com/syndtr/goleveldb/leveldb"
"github.com/syndtr/goleveldb/leveldb/util"
)

View File

@ -1,8 +1,8 @@
package operation
import (
"code.google.com/p/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/util"
"github.com/chrislusf/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/util"
"encoding/json"
"errors"
"net/url"

View File

@ -1,7 +1,7 @@
package operation
import (
"code.google.com/p/weed-fs/go/util"
"github.com/chrislusf/weed-fs/go/util"
"encoding/json"
"errors"
"net/url"

View File

@ -1,8 +1,8 @@
package operation
import (
"code.google.com/p/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/util"
"github.com/chrislusf/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/util"
"encoding/json"
)

View File

@ -1,7 +1,7 @@
package operation
import (
"code.google.com/p/weed-fs/go/util"
"github.com/chrislusf/weed-fs/go/util"
"encoding/json"
"errors"
_ "fmt"

View File

@ -2,7 +2,7 @@ package operation
import (
"bytes"
"code.google.com/p/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/glog"
"io"
"mime"
"os"

View File

@ -2,7 +2,7 @@ package operation
import (
"bytes"
"code.google.com/p/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/glog"
"encoding/json"
"errors"
"fmt"

View File

@ -1,7 +1,7 @@
package storage
import (
"code.google.com/p/weed-fs/go/util"
"github.com/chrislusf/weed-fs/go/util"
"encoding/json"
"errors"
"fmt"

View File

@ -1,7 +1,7 @@
package storage
import (
"code.google.com/p/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/glog"
"math/rand"
"os"
"runtime"

View File

@ -1,8 +1,8 @@
package storage
import (
"code.google.com/p/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/util"
"github.com/chrislusf/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/util"
"log"
"os"
"testing"

View File

@ -2,7 +2,7 @@ package storage
import (
"bytes"
"code.google.com/p/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/glog"
"compress/flate"
"compress/gzip"
"io/ioutil"

View File

@ -1,7 +1,7 @@
package storage
import (
"code.google.com/p/weed-fs/go/util"
"github.com/chrislusf/weed-fs/go/util"
"fmt"
"hash/crc32"
)

View File

@ -1,8 +1,8 @@
package storage
import (
"code.google.com/p/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/util"
"github.com/chrislusf/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/util"
"encoding/hex"
"errors"
"strings"

View File

@ -1,9 +1,9 @@
package storage
import (
"code.google.com/p/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/images"
"code.google.com/p/weed-fs/go/util"
"github.com/chrislusf/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/images"
"github.com/chrislusf/weed-fs/go/util"
"encoding/hex"
"errors"
"io/ioutil"

View File

@ -1,8 +1,8 @@
package storage
import (
"code.google.com/p/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/util"
"github.com/chrislusf/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/util"
"fmt"
"io"
"os"

View File

@ -1,8 +1,8 @@
package storage
import (
"code.google.com/p/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/util"
"github.com/chrislusf/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/util"
"errors"
"fmt"
"io"

View File

@ -2,9 +2,9 @@ package storage
import (
proto "code.google.com/p/goprotobuf/proto"
"code.google.com/p/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/operation"
"code.google.com/p/weed-fs/go/util"
"github.com/chrislusf/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/operation"
"github.com/chrislusf/weed-fs/go/util"
"encoding/json"
"errors"
"fmt"

View File

@ -1,7 +1,7 @@
package storage
import (
"code.google.com/p/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/glog"
"fmt"
"strconv"
)

View File

@ -2,7 +2,7 @@ package storage
import (
"bytes"
"code.google.com/p/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/glog"
"errors"
"fmt"
"io"

View File

@ -1,7 +1,7 @@
package storage
import (
"code.google.com/p/weed-fs/go/operation"
"github.com/chrislusf/weed-fs/go/operation"
)
type VolumeInfo struct {

View File

@ -1,7 +1,7 @@
package storage
import (
"code.google.com/p/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/glog"
"fmt"
"os"
)

View File

@ -1,7 +1,7 @@
package storage
import (
"code.google.com/p/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/glog"
"fmt"
"os"
"time"

View File

@ -1,7 +1,7 @@
package main
import (
"code.google.com/p/weed-fs/go/storage"
"github.com/chrislusf/weed-fs/go/storage"
"flag"
"fmt"
"log"

View File

@ -1,8 +1,8 @@
package topology
import (
"code.google.com/p/weed-fs/go/storage"
"code.google.com/p/weed-fs/go/util"
"github.com/chrislusf/weed-fs/go/storage"
"github.com/chrislusf/weed-fs/go/util"
"encoding/json"
"errors"
"net/url"

View File

@ -1,8 +1,8 @@
package topology
import (
"code.google.com/p/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/storage"
"github.com/chrislusf/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/storage"
"github.com/goraft/raft"
)

View File

@ -1,7 +1,7 @@
package topology
import (
"code.google.com/p/weed-fs/go/storage"
"github.com/chrislusf/weed-fs/go/storage"
)
type Collection struct {

View File

@ -1,8 +1,8 @@
package topology
import (
"code.google.com/p/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/storage"
"github.com/chrislusf/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/storage"
"strconv"
)

View File

@ -1,8 +1,8 @@
package topology
import (
"code.google.com/p/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/storage"
"github.com/chrislusf/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/storage"
"errors"
"math/rand"
"strings"

View File

@ -2,10 +2,10 @@ package topology
import (
"bytes"
"code.google.com/p/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/operation"
"code.google.com/p/weed-fs/go/storage"
"code.google.com/p/weed-fs/go/util"
"github.com/chrislusf/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/operation"
"github.com/chrislusf/weed-fs/go/storage"
"github.com/chrislusf/weed-fs/go/util"
"net/http"
"strconv"
)

View File

@ -1,10 +1,10 @@
package topology
import (
"code.google.com/p/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/operation"
"code.google.com/p/weed-fs/go/sequence"
"code.google.com/p/weed-fs/go/storage"
"github.com/chrislusf/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/operation"
"github.com/chrislusf/weed-fs/go/sequence"
"github.com/chrislusf/weed-fs/go/storage"
"errors"
"github.com/goraft/raft"
"io/ioutil"

View File

@ -1,8 +1,8 @@
package topology
import (
"code.google.com/p/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/storage"
"github.com/chrislusf/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/storage"
"math/rand"
"time"
)

View File

@ -1,9 +1,9 @@
package topology
import (
"code.google.com/p/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/storage"
"code.google.com/p/weed-fs/go/util"
"github.com/chrislusf/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/storage"
"github.com/chrislusf/weed-fs/go/util"
"encoding/json"
"errors"
"net/url"

View File

@ -1,8 +1,8 @@
package topology
import (
"code.google.com/p/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/storage"
"github.com/chrislusf/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/storage"
"fmt"
"math/rand"
"sync"

View File

@ -1,8 +1,8 @@
package topology
import (
"code.google.com/p/weed-fs/go/sequence"
"code.google.com/p/weed-fs/go/storage"
"github.com/chrislusf/weed-fs/go/sequence"
"github.com/chrislusf/weed-fs/go/storage"
"encoding/json"
"fmt"
"testing"

View File

@ -1,8 +1,8 @@
package topology
import (
"code.google.com/p/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/storage"
"github.com/chrislusf/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/storage"
"errors"
"math/rand"
"sync"

View File

@ -10,7 +10,7 @@ package util
import (
"bytes"
"code.google.com/p/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/glog"
"encoding/json"
"os"
)

View File

@ -2,7 +2,7 @@ package util
import (
"bufio"
"code.google.com/p/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/glog"
"errors"
"os"
)

View File

@ -1,7 +1,7 @@
package util
import (
"code.google.com/p/weed-fs/go/stats"
"github.com/chrislusf/weed-fs/go/stats"
"net"
"time"
)

View File

@ -2,9 +2,9 @@ package main
import (
"bufio"
"code.google.com/p/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/operation"
"code.google.com/p/weed-fs/go/util"
"github.com/chrislusf/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/operation"
"github.com/chrislusf/weed-fs/go/util"
"fmt"
"io"
"math"

View File

@ -1,8 +1,8 @@
package main
import (
"code.google.com/p/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/storage"
"github.com/chrislusf/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/storage"
)
func init() {

View File

@ -1,8 +1,8 @@
package main
import (
"code.google.com/p/weed-fs/go/operation"
"code.google.com/p/weed-fs/go/util"
"github.com/chrislusf/weed-fs/go/operation"
"github.com/chrislusf/weed-fs/go/util"
"fmt"
"io"
"io/ioutil"

View File

@ -3,8 +3,8 @@ package main
import (
"archive/tar"
"bytes"
"code.google.com/p/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/storage"
"github.com/chrislusf/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/storage"
"fmt"
"os"
"path"

View File

@ -1,9 +1,9 @@
package main
import (
"code.google.com/p/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/util"
"code.google.com/p/weed-fs/go/weed/weed_server"
"github.com/chrislusf/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/util"
"github.com/chrislusf/weed-fs/go/weed/weed_server"
"net/http"
"os"
"strconv"

View File

@ -1,8 +1,8 @@
package main
import (
"code.google.com/p/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/storage"
"github.com/chrislusf/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/storage"
"os"
"path"
"strconv"

View File

@ -1,9 +1,9 @@
package main
import (
"code.google.com/p/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/util"
"code.google.com/p/weed-fs/go/weed/weed_server"
"github.com/chrislusf/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/util"
"github.com/chrislusf/weed-fs/go/weed/weed_server"
"github.com/gorilla/mux"
"net/http"
"os"

View File

@ -5,10 +5,10 @@ package main
import (
"bazil.org/fuse"
"bazil.org/fuse/fs"
"code.google.com/p/weed-fs/go/filer"
"code.google.com/p/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/storage"
"code.google.com/p/weed-fs/go/util"
"github.com/chrislusf/weed-fs/go/filer"
"github.com/chrislusf/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/storage"
"github.com/chrislusf/weed-fs/go/util"
"fmt"
"os"
"runtime"

View File

@ -1,9 +1,9 @@
package main
import (
"code.google.com/p/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/util"
"code.google.com/p/weed-fs/go/weed/weed_server"
"github.com/chrislusf/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/util"
"github.com/chrislusf/weed-fs/go/weed/weed_server"
"github.com/gorilla/mux"
"net/http"
"os"

View File

@ -2,7 +2,7 @@ package main
import (
"bufio"
"code.google.com/p/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/glog"
"fmt"
"os"
)

View File

@ -1,7 +1,7 @@
package main
import (
"code.google.com/p/weed-fs/go/operation"
"github.com/chrislusf/weed-fs/go/operation"
"encoding/json"
"fmt"
"os"

View File

@ -1,7 +1,7 @@
package main
import (
"code.google.com/p/weed-fs/go/util"
"github.com/chrislusf/weed-fs/go/util"
"fmt"
"runtime"
)

View File

@ -1,9 +1,9 @@
package main
import (
"code.google.com/p/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/util"
"code.google.com/p/weed-fs/go/weed/weed_server"
"github.com/chrislusf/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/util"
"github.com/chrislusf/weed-fs/go/weed/weed_server"
"net/http"
"os"
"runtime"

View File

@ -1,7 +1,7 @@
package main
import (
"code.google.com/p/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/glog"
"net/http"
"testing"
"time"

View File

@ -1,7 +1,7 @@
package main
import (
"code.google.com/p/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/glog"
"flag"
"fmt"
"io"

View File

@ -2,11 +2,11 @@ package weed_server
import (
"bytes"
"code.google.com/p/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/operation"
"code.google.com/p/weed-fs/go/stats"
"code.google.com/p/weed-fs/go/storage"
"code.google.com/p/weed-fs/go/util"
"github.com/chrislusf/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/operation"
"github.com/chrislusf/weed-fs/go/stats"
"github.com/chrislusf/weed-fs/go/storage"
"github.com/chrislusf/weed-fs/go/util"
"encoding/json"
"fmt"
"net"

View File

@ -1,8 +1,8 @@
package weed_server
import (
"code.google.com/p/weed-fs/go/filer"
"code.google.com/p/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/filer"
"github.com/chrislusf/weed-fs/go/glog"
"net/http"
"strconv"
)

View File

@ -1,9 +1,9 @@
package weed_server
import (
"code.google.com/p/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/operation"
"code.google.com/p/weed-fs/go/util"
"github.com/chrislusf/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/operation"
"github.com/chrislusf/weed-fs/go/util"
"encoding/json"
"errors"
"github.com/syndtr/goleveldb/leveldb"

View File

@ -1,7 +1,7 @@
package weed_server
import (
"code.google.com/p/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/glog"
"net/http"
)

View File

@ -1,10 +1,10 @@
package weed_server
import (
"code.google.com/p/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/sequence"
"code.google.com/p/weed-fs/go/topology"
"code.google.com/p/weed-fs/go/util"
"github.com/chrislusf/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/sequence"
"github.com/chrislusf/weed-fs/go/topology"
"github.com/chrislusf/weed-fs/go/util"
"github.com/goraft/raft"
"github.com/gorilla/mux"
"net/http"

View File

@ -1,9 +1,9 @@
package weed_server
import (
"code.google.com/p/weed-fs/go/operation"
"code.google.com/p/weed-fs/go/stats"
"code.google.com/p/weed-fs/go/storage"
"github.com/chrislusf/weed-fs/go/operation"
"github.com/chrislusf/weed-fs/go/stats"
"github.com/chrislusf/weed-fs/go/storage"
"net/http"
"strconv"
"strings"

View File

@ -2,11 +2,11 @@ package weed_server
import (
proto "code.google.com/p/goprotobuf/proto"
"code.google.com/p/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/operation"
"code.google.com/p/weed-fs/go/storage"
"code.google.com/p/weed-fs/go/topology"
"code.google.com/p/weed-fs/go/util"
"github.com/chrislusf/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/operation"
"github.com/chrislusf/weed-fs/go/storage"
"github.com/chrislusf/weed-fs/go/topology"
"github.com/chrislusf/weed-fs/go/util"
"encoding/json"
"errors"
"io/ioutil"

View File

@ -2,8 +2,8 @@ package weed_server
import (
"bytes"
"code.google.com/p/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/topology"
"github.com/chrislusf/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/topology"
"encoding/json"
"errors"
"fmt"

View File

@ -1,8 +1,8 @@
package weed_server
import (
"code.google.com/p/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/operation"
"github.com/chrislusf/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/operation"
"encoding/json"
"github.com/goraft/raft"
"io/ioutil"

View File

@ -1,8 +1,8 @@
package weed_server
import (
"code.google.com/p/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/storage"
"github.com/chrislusf/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/storage"
"math/rand"
"net/http"
"strconv"

View File

@ -1,12 +1,12 @@
package weed_server
import (
"code.google.com/p/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/images"
"code.google.com/p/weed-fs/go/operation"
"code.google.com/p/weed-fs/go/stats"
"code.google.com/p/weed-fs/go/storage"
"code.google.com/p/weed-fs/go/topology"
"github.com/chrislusf/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/images"
"github.com/chrislusf/weed-fs/go/operation"
"github.com/chrislusf/weed-fs/go/stats"
"github.com/chrislusf/weed-fs/go/storage"
"github.com/chrislusf/weed-fs/go/topology"
"io"
"mime"
"mime/multipart"

View File

@ -1,9 +1,9 @@
package weed_server
import (
"code.google.com/p/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/stats"
"code.google.com/p/weed-fs/go/util"
"github.com/chrislusf/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/stats"
"github.com/chrislusf/weed-fs/go/util"
"net/http"
"path/filepath"
)

View File

@ -1,7 +1,7 @@
package weed_server
import (
"code.google.com/p/weed-fs/go/glog"
"github.com/chrislusf/weed-fs/go/glog"
"net/http"
)