Skip to content

Commit

Permalink
rename repo from cfs to chubaofs
Browse files Browse the repository at this point in the history
  • Loading branch information
awzhgw committed Apr 28, 2019
1 parent 803030a commit 97f2a18
Show file tree
Hide file tree
Showing 116 changed files with 327 additions and 313 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go:
- 1.12

env:
- CFS_BUILD_BASE="chubaofs/cfs-build:1.0"
- ChubaoFS_BUILD_BASE="chubaofs/chubaofs-build:1.0"

services: docker

Expand All @@ -14,8 +14,8 @@ notifications:
on_failure: never

before_install:
- docker pull ${CFS_BUILD_BASE}
- docker pull ${ChubaoFS_BUILD_BASE}

script:
- docker run --rm -v `pwd`:/go/src/github.com/chubaofs/cfs ${CFS_BUILD_BASE} /bin/bash -c "cd /go/src/github.com/chubaofs/cfs && make build"
- docker run --rm -v `pwd`:/go/src/github.com/chubaofs/cfs ${ChubaoFS_BUILD_BASE} /bin/bash -c "cd /go/src/github.com/chubaofs/chubaofs && make build"

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ ChubaoFS (储宝文件系统) is a distributed file system with the following fe

* POSIX-compatible

For more details, please refer to our SIGMOD 2019 paper "CFS: A Distributed File System for Large Scale Container Platforms".
For more details, please refer to our SIGMOD 2019 paper "ChubaoFS: A Distributed File System for Large Scale Container Platforms".


## Document
https://cfs.readthedocs.io/en/latest/
https://chubaofs.readthedocs.io/en/latest/

https://cfs.readthedocs.io/zh_CN/latest/
https://chubaofs.readthedocs.io/zh_CN/latest/

## License

Expand Down
2 changes: 1 addition & 1 deletion client/fs/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (

"bazil.org/fuse"

"github.com/chubaofs/cfs/proto"
"github.com/chubaofs/chubaofs/proto"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions client/fs/dir.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import (
"bazil.org/fuse/fs"
"golang.org/x/net/context"

"github.com/chubaofs/cfs/proto"
"github.com/chubaofs/cfs/util/log"
"github.com/chubaofs/chubaofs/proto"
"github.com/chubaofs/chubaofs/util/log"
)

// Dir defines the structure of a directory
Expand Down
4 changes: 2 additions & 2 deletions client/fs/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import (
"bazil.org/fuse/fs"
"golang.org/x/net/context"

"github.com/chubaofs/cfs/proto"
"github.com/chubaofs/cfs/util/log"
"github.com/chubaofs/chubaofs/proto"
"github.com/chubaofs/chubaofs/util/log"
"sync"
)

Expand Down
4 changes: 2 additions & 2 deletions client/fs/inode.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (

"bazil.org/fuse"

"github.com/chubaofs/cfs/proto"
"github.com/chubaofs/cfs/util/log"
"github.com/chubaofs/chubaofs/proto"
"github.com/chubaofs/chubaofs/util/log"
)

const (
Expand Down
6 changes: 3 additions & 3 deletions client/fs/super.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ import (

"bazil.org/fuse"
"bazil.org/fuse/fs"
"github.com/chubaofs/cfs/sdk/data/stream"
"github.com/chubaofs/cfs/sdk/meta"
"github.com/chubaofs/cfs/util/log"
"github.com/chubaofs/chubaofs/sdk/data/stream"
"github.com/chubaofs/chubaofs/sdk/meta"
"github.com/chubaofs/chubaofs/util/log"
)

// Super defines the struct of a super block.
Expand Down
14 changes: 7 additions & 7 deletions client/fuse.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ import (

"bazil.org/fuse"
"bazil.org/fuse/fs"
cfs "github.com/chubaofs/cfs/client/fs"
"github.com/chubaofs/cfs/util/config"
"github.com/chubaofs/cfs/util/exporter"
"github.com/chubaofs/cfs/util/log"
cfs "github.com/chubaofs/chubaofs/client/fs"
"github.com/chubaofs/chubaofs/util/config"
"github.com/chubaofs/chubaofs/util/exporter"
"github.com/chubaofs/chubaofs/util/log"
)

const (
Expand Down Expand Up @@ -67,7 +67,7 @@ func main() {
flag.Parse()

if *configVersion {
fmt.Printf("CFS client verson: %s\n", Version)
fmt.Printf("ChubaoFS client verson: %s\n", Version)
os.Exit(0)
}

Expand Down Expand Up @@ -118,9 +118,9 @@ func Mount(cfg *config.Config) (err error) {
fuse.MaxReadahead(MaxReadAhead),
fuse.AsyncRead(),
fuse.AutoInvalData(autoInvalData),
fuse.FSName("cfs-"+volname),
fuse.FSName("chubaofs-"+volname),
fuse.LocalVolume(),
fuse.VolumeName("cfs-"+volname))
fuse.VolumeName("chubaofs-"+volname))

if err != nil {
return err
Expand Down
14 changes: 7 additions & 7 deletions cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ package main
import (
"strings"

"github.com/chubaofs/cfs/datanode"
"github.com/chubaofs/cfs/master"
"github.com/chubaofs/cfs/metanode"
"github.com/chubaofs/cfs/util/log"
"github.com/chubaofs/chubaofs/datanode"
"github.com/chubaofs/chubaofs/master"
"github.com/chubaofs/chubaofs/metanode"
"github.com/chubaofs/chubaofs/util/log"

"flag"
"fmt"
"github.com/chubaofs/cfs/util/config"
"github.com/chubaofs/chubaofs/util/config"
"net/http"
_ "net/http/pprof"
"os"
Expand Down Expand Up @@ -112,7 +112,7 @@ func main() {
flag.Parse()

if *configVersion {
fmt.Printf("CFS server version: %s\n", Version)
fmt.Printf("ChubaoFS server version: %s\n", Version)
os.Exit(0)
}

Expand All @@ -121,7 +121,7 @@ func main() {
panic(err.Error())
}

log.LogInfof("Hello, CFS Storage, Current Version: %s", Version)
log.LogInfof("Hello, ChubaoFS Storage, Current Version: %s", Version)
cfg := config.LoadConfigFile(*configFile)
role := cfg.GetString(ConfigKeyRole)
logDir := cfg.GetString(ConfigKeyLogDir)
Expand Down
8 changes: 4 additions & 4 deletions datanode/data_partition_repair.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ import (
"time"

"fmt"
"github.com/chubaofs/cfs/proto"
"github.com/chubaofs/cfs/repl"
"github.com/chubaofs/cfs/storage"
"github.com/chubaofs/cfs/util/log"
"github.com/chubaofs/chubaofs/proto"
"github.com/chubaofs/chubaofs/repl"
"github.com/chubaofs/chubaofs/storage"
"github.com/chubaofs/chubaofs/util/log"
"github.com/juju/errors"
"hash/crc32"
)
Expand Down
4 changes: 2 additions & 2 deletions datanode/disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import (
"syscall"
"time"

"github.com/chubaofs/cfs/proto"
"github.com/chubaofs/cfs/util/log"
"github.com/chubaofs/chubaofs/proto"
"github.com/chubaofs/chubaofs/util/log"
)

var (
Expand Down
12 changes: 6 additions & 6 deletions datanode/partition.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ import (
"sync"
"time"

"github.com/chubaofs/cfs/master"
"github.com/chubaofs/cfs/proto"
"github.com/chubaofs/cfs/raftstore"
"github.com/chubaofs/cfs/repl"
"github.com/chubaofs/cfs/storage"
"github.com/chubaofs/cfs/util/log"
"github.com/chubaofs/chubaofs/master"
"github.com/chubaofs/chubaofs/proto"
"github.com/chubaofs/chubaofs/raftstore"
"github.com/chubaofs/chubaofs/repl"
"github.com/chubaofs/chubaofs/storage"
"github.com/chubaofs/chubaofs/util/log"
"github.com/juju/errors"
raftProto "github.com/tiglabs/raft/proto"
"hash/crc32"
Expand Down
8 changes: 4 additions & 4 deletions datanode/partition_op_by_raft.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ import (
"net"

"fmt"
"github.com/chubaofs/cfs/proto"
"github.com/chubaofs/cfs/repl"
"github.com/chubaofs/cfs/storage"
"github.com/chubaofs/cfs/util/log"
"github.com/chubaofs/chubaofs/proto"
"github.com/chubaofs/chubaofs/repl"
"github.com/chubaofs/chubaofs/storage"
"github.com/chubaofs/chubaofs/util/log"
"strings"
"sync/atomic"
)
Expand Down
10 changes: 5 additions & 5 deletions datanode/partition_raft.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ import (
"strings"
"time"

"github.com/chubaofs/cfs/proto"
"github.com/chubaofs/cfs/raftstore"
"github.com/chubaofs/cfs/repl"
"github.com/chubaofs/cfs/util/config"
"github.com/chubaofs/cfs/util/log"
"github.com/chubaofs/chubaofs/proto"
"github.com/chubaofs/chubaofs/raftstore"
"github.com/chubaofs/chubaofs/repl"
"github.com/chubaofs/chubaofs/util/config"
"github.com/chubaofs/chubaofs/util/log"
"github.com/juju/errors"
raftproto "github.com/tiglabs/raft/proto"
)
Expand Down
6 changes: 3 additions & 3 deletions datanode/partition_raftfsm.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ import (
"fmt"
"sync/atomic"

"github.com/chubaofs/cfs/proto"
"github.com/chubaofs/cfs/util/exporter"
"github.com/chubaofs/cfs/util/log"
"github.com/chubaofs/chubaofs/proto"
"github.com/chubaofs/chubaofs/util/exporter"
"github.com/chubaofs/chubaofs/util/log"
"github.com/juju/errors"
"github.com/tiglabs/raft"
raftproto "github.com/tiglabs/raft/proto"
Expand Down
16 changes: 8 additions & 8 deletions datanode/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ import (
"time"

"errors"
"github.com/chubaofs/cfs/proto"
"github.com/chubaofs/cfs/raftstore"
"github.com/chubaofs/cfs/repl"
"github.com/chubaofs/cfs/util"
"github.com/chubaofs/cfs/util/config"
"github.com/chubaofs/cfs/util/exporter"
"github.com/chubaofs/cfs/util/log"
"github.com/chubaofs/chubaofs/proto"
"github.com/chubaofs/chubaofs/raftstore"
"github.com/chubaofs/chubaofs/repl"
"github.com/chubaofs/chubaofs/util"
"github.com/chubaofs/chubaofs/util/config"
"github.com/chubaofs/chubaofs/util/exporter"
"github.com/chubaofs/chubaofs/util/log"
"os"
"syscall"
)
Expand All @@ -50,7 +50,7 @@ var (
)

const (
DefaultRackName = "cfs_rack1"
DefaultRackName = "chubaofs_rack1"
DefaultRaftDir = "raft"
DefaultRaftLogsToRetain = 20000 // Count of raft logs per data partition
DefaultDiskMaxErr = 20
Expand Down
4 changes: 2 additions & 2 deletions datanode/server_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
"net/http"
"strconv"

"github.com/chubaofs/cfs/proto"
"github.com/chubaofs/cfs/storage"
"github.com/chubaofs/chubaofs/proto"
"github.com/chubaofs/chubaofs/storage"
)

func (s *DataNode) getDiskAPI(w http.ResponseWriter, r *http.Request) {
Expand Down
6 changes: 3 additions & 3 deletions datanode/space_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ import (

"os"

"github.com/chubaofs/cfs/proto"
"github.com/chubaofs/cfs/raftstore"
"github.com/chubaofs/cfs/util/log"
"github.com/chubaofs/chubaofs/proto"
"github.com/chubaofs/chubaofs/raftstore"
"github.com/chubaofs/chubaofs/util/log"
)

// SpaceManager manages the disk space.
Expand Down
12 changes: 6 additions & 6 deletions datanode/wrap_operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ import (

"strings"

"github.com/chubaofs/cfs/proto"
"github.com/chubaofs/cfs/repl"
"github.com/chubaofs/cfs/storage"
"github.com/chubaofs/cfs/util"
"github.com/chubaofs/cfs/util/exporter"
"github.com/chubaofs/cfs/util/log"
"github.com/chubaofs/chubaofs/proto"
"github.com/chubaofs/chubaofs/repl"
"github.com/chubaofs/chubaofs/storage"
"github.com/chubaofs/chubaofs/util"
"github.com/chubaofs/chubaofs/util/exporter"
"github.com/chubaofs/chubaofs/util/log"
"github.com/juju/errors"
"github.com/tiglabs/raft"
raftProto "github.com/tiglabs/raft/proto"
Expand Down
6 changes: 3 additions & 3 deletions datanode/wrap_post.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
package datanode

import (
"github.com/chubaofs/cfs/proto"
"github.com/chubaofs/cfs/repl"
"github.com/chubaofs/cfs/storage"
"github.com/chubaofs/chubaofs/proto"
"github.com/chubaofs/chubaofs/repl"
"github.com/chubaofs/chubaofs/storage"
"sync/atomic"
)

Expand Down
6 changes: 3 additions & 3 deletions datanode/wrap_prepare.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ package datanode
import (
"encoding/json"
"fmt"
"github.com/chubaofs/cfs/proto"
"github.com/chubaofs/cfs/repl"
"github.com/chubaofs/cfs/storage"
"github.com/chubaofs/chubaofs/proto"
"github.com/chubaofs/chubaofs/repl"
"github.com/chubaofs/chubaofs/storage"
"github.com/juju/errors"
"hash/crc32"
)
Expand Down
Loading

0 comments on commit 97f2a18

Please sign in to comment.