mirror of
https://github.com/cubefs/cubefs.git
synced 2026-08-02 02:00:56 +00:00
update. go import path change from chubaofs to cubefs
Signed-off-by: leonrayang <chl696@sina.com>
This commit is contained in:
parent
3224ce8003
commit
2970e2c3d1
@ -20,12 +20,12 @@ import (
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/util/cryptoutil"
|
||||
"github.com/chubaofs/chubaofs/util/errors"
|
||||
"github.com/chubaofs/chubaofs/util/iputil"
|
||||
"github.com/chubaofs/chubaofs/util/keystore"
|
||||
"github.com/chubaofs/chubaofs/util/log"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/util/cryptoutil"
|
||||
"github.com/cubefs/cubefs/util/errors"
|
||||
"github.com/cubefs/cubefs/util/iputil"
|
||||
"github.com/cubefs/cubefs/util/keystore"
|
||||
"github.com/cubefs/cubefs/util/log"
|
||||
|
||||
"fmt"
|
||||
)
|
||||
|
||||
@ -18,7 +18,7 @@ import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/chubaofs/chubaofs/util/log"
|
||||
"github.com/cubefs/cubefs/util/log"
|
||||
"github.com/tiglabs/raft/proto"
|
||||
)
|
||||
|
||||
|
||||
@ -17,16 +17,16 @@ package authnode
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"github.com/chubaofs/chubaofs/util"
|
||||
"github.com/cubefs/cubefs/util"
|
||||
"time"
|
||||
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/raftstore"
|
||||
"github.com/chubaofs/chubaofs/util/caps"
|
||||
"github.com/chubaofs/chubaofs/util/cryptoutil"
|
||||
"github.com/chubaofs/chubaofs/util/errors"
|
||||
"github.com/chubaofs/chubaofs/util/keystore"
|
||||
"github.com/chubaofs/chubaofs/util/log"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/raftstore"
|
||||
"github.com/cubefs/cubefs/util/caps"
|
||||
"github.com/cubefs/cubefs/util/cryptoutil"
|
||||
"github.com/cubefs/cubefs/util/errors"
|
||||
"github.com/cubefs/cubefs/util/keystore"
|
||||
"github.com/cubefs/cubefs/util/log"
|
||||
)
|
||||
|
||||
// PKIKey defines the pki keys
|
||||
|
||||
@ -20,7 +20,7 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/chubaofs/chubaofs/raftstore"
|
||||
"github.com/cubefs/cubefs/raftstore"
|
||||
"github.com/tiglabs/raft/proto"
|
||||
)
|
||||
|
||||
|
||||
@ -19,9 +19,9 @@ import (
|
||||
"net/http"
|
||||
"net/http/httputil"
|
||||
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/util/cryptoutil"
|
||||
"github.com/chubaofs/chubaofs/util/log"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/util/cryptoutil"
|
||||
"github.com/cubefs/cubefs/util/log"
|
||||
)
|
||||
|
||||
func (m *Server) startHTTPService() {
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
package authnode
|
||||
|
||||
import (
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/util/keystore"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/util/keystore"
|
||||
)
|
||||
|
||||
// PutKey change keyInfo in keystore cache
|
||||
|
||||
@ -22,9 +22,9 @@ import (
|
||||
"strings"
|
||||
"sync"
|
||||
|
||||
"github.com/chubaofs/chubaofs/raftstore"
|
||||
"github.com/chubaofs/chubaofs/util/keystore"
|
||||
"github.com/chubaofs/chubaofs/util/log"
|
||||
"github.com/cubefs/cubefs/raftstore"
|
||||
"github.com/cubefs/cubefs/util/keystore"
|
||||
"github.com/cubefs/cubefs/util/log"
|
||||
"github.com/tiglabs/raft"
|
||||
"github.com/tiglabs/raft/proto"
|
||||
)
|
||||
|
||||
@ -21,8 +21,8 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/chubaofs/chubaofs/util/keystore"
|
||||
"github.com/chubaofs/chubaofs/util/log"
|
||||
"github.com/cubefs/cubefs/util/keystore"
|
||||
"github.com/cubefs/cubefs/util/log"
|
||||
"github.com/tiglabs/raft/proto"
|
||||
)
|
||||
|
||||
|
||||
@ -23,14 +23,14 @@ import (
|
||||
"strconv"
|
||||
"sync"
|
||||
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/raftstore"
|
||||
"github.com/chubaofs/chubaofs/util"
|
||||
"github.com/chubaofs/chubaofs/util/config"
|
||||
"github.com/chubaofs/chubaofs/util/cryptoutil"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/raftstore"
|
||||
"github.com/cubefs/cubefs/util"
|
||||
"github.com/cubefs/cubefs/util/config"
|
||||
"github.com/cubefs/cubefs/util/cryptoutil"
|
||||
|
||||
"github.com/chubaofs/chubaofs/util/errors"
|
||||
"github.com/chubaofs/chubaofs/util/log"
|
||||
"github.com/cubefs/cubefs/util/errors"
|
||||
"github.com/cubefs/cubefs/util/log"
|
||||
)
|
||||
|
||||
//
|
||||
|
||||
@ -12,10 +12,10 @@ import (
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/util/config"
|
||||
"github.com/chubaofs/chubaofs/util/cryptoutil"
|
||||
"github.com/chubaofs/chubaofs/util/keystore"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/util/config"
|
||||
"github.com/cubefs/cubefs/util/cryptoutil"
|
||||
"github.com/cubefs/cubefs/util/keystore"
|
||||
)
|
||||
|
||||
// requst path
|
||||
|
||||
@ -25,9 +25,9 @@ import (
|
||||
"time"
|
||||
|
||||
"bufio"
|
||||
"github.com/chubaofs/chubaofs/metanode"
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/util/log"
|
||||
"github.com/cubefs/cubefs/metanode"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/util/log"
|
||||
"io"
|
||||
)
|
||||
|
||||
|
||||
@ -11,10 +11,10 @@ TargetFile=${1:-$RootPath/cli/cfs-cli}
|
||||
|
||||
[[ "-$GOPATH" == "-" ]] && { echo "GOPATH not set"; exit 1; }
|
||||
|
||||
LDFlags="-X github.com/chubaofs/chubaofs/proto.Version=${Version} \
|
||||
-X github.com/chubaofs/chubaofs/proto.CommitID=${CommitID} \
|
||||
-X github.com/chubaofs/chubaofs/proto.BranchName=${BranchName} \
|
||||
-X 'github.com/chubaofs/chubaofs/proto.BuildTime=${BuildTime}' "
|
||||
LDFlags="-X github.com/cubefs/cubefs/proto.Version=${Version} \
|
||||
-X github.com/cubefs/cubefs/proto.CommitID=${CommitID} \
|
||||
-X github.com/cubefs/cubefs/proto.BranchName=${BranchName} \
|
||||
-X 'github.com/cubefs/cubefs/proto.BuildTime=${BuildTime}' "
|
||||
|
||||
go build \
|
||||
-ldflags "${LDFlags}" \
|
||||
|
||||
@ -18,9 +18,9 @@ import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/chubaofs/chubaofs/cli/cmd"
|
||||
"github.com/chubaofs/chubaofs/sdk/master"
|
||||
"github.com/chubaofs/chubaofs/util/log"
|
||||
"github.com/cubefs/cubefs/cli/cmd"
|
||||
"github.com/cubefs/cubefs/sdk/master"
|
||||
"github.com/cubefs/cubefs/util/log"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
|
||||
@ -18,8 +18,8 @@ import (
|
||||
"fmt"
|
||||
"strconv"
|
||||
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/sdk/master"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/sdk/master"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
|
||||
@ -16,9 +16,9 @@ package cmd
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/chubaofs/chubaofs/cli/api"
|
||||
"github.com/chubaofs/chubaofs/metanode"
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/cubefs/cubefs/cli/api"
|
||||
"github.com/cubefs/cubefs/metanode"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/spf13/cobra"
|
||||
"reflect"
|
||||
"strconv"
|
||||
|
||||
@ -18,8 +18,8 @@ import (
|
||||
"sort"
|
||||
"strings"
|
||||
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/sdk/master"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/sdk/master"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
|
||||
@ -16,8 +16,8 @@ package cmd
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/sdk/master"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/sdk/master"
|
||||
"github.com/spf13/cobra"
|
||||
"sort"
|
||||
"strconv"
|
||||
|
||||
@ -21,7 +21,7 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
)
|
||||
|
||||
func formatClusterView(cv *proto.ClusterView) string {
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/sdk/master"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/sdk/master"
|
||||
)
|
||||
|
||||
type clientHandler interface {
|
||||
|
||||
@ -18,8 +18,8 @@ import (
|
||||
"sort"
|
||||
"strings"
|
||||
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/sdk/master"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/sdk/master"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
|
||||
@ -16,8 +16,8 @@ package cmd
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/sdk/master"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/sdk/master"
|
||||
"github.com/spf13/cobra"
|
||||
"sort"
|
||||
"strconv"
|
||||
|
||||
@ -19,9 +19,9 @@ import (
|
||||
"os"
|
||||
"path"
|
||||
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/sdk/master"
|
||||
"github.com/chubaofs/chubaofs/util/log"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/sdk/master"
|
||||
"github.com/cubefs/cubefs/util/log"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
|
||||
@ -18,8 +18,8 @@ import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/sdk/master"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/sdk/master"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
|
||||
@ -15,8 +15,8 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
sdk "github.com/chubaofs/chubaofs/sdk/master"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
sdk "github.com/cubefs/cubefs/sdk/master"
|
||||
)
|
||||
|
||||
func validVols(client, complete interface{}) []string {
|
||||
|
||||
@ -22,8 +22,8 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/sdk/master"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/sdk/master"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
|
||||
@ -16,8 +16,8 @@ package cmd
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
sdk "github.com/chubaofs/chubaofs/sdk/master"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
sdk "github.com/cubefs/cubefs/sdk/master"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
|
||||
@ -7,8 +7,8 @@ BuildTime=`date +%Y-%m-%d\ %H:%M`
|
||||
[[ "-$GOPATH" == "-" ]] && { echo "GOPATH not set"; exit 1 ; }
|
||||
|
||||
go build -ldflags "\
|
||||
-X github.com/chubaofs/chubaofs/proto.Version=${Version} \
|
||||
-X github.com/chubaofs/chubaofs/proto.CommitID=${CommitID} \
|
||||
-X github.com/chubaofs/chubaofs/proto.BranchName=${BranchName} \
|
||||
-X 'github.com/chubaofs/chubaofs/proto.BuildTime=${BuildTime}'" \
|
||||
-X github.com/cubefs/cubefs/proto.Version=${Version} \
|
||||
-X github.com/cubefs/cubefs/proto.CommitID=${CommitID} \
|
||||
-X github.com/cubefs/cubefs/proto.BranchName=${BranchName} \
|
||||
-X 'github.com/cubefs/cubefs/proto.BuildTime=${BuildTime}'" \
|
||||
-o cfs-client
|
||||
|
||||
@ -20,7 +20,7 @@ import (
|
||||
|
||||
"bazil.org/fuse"
|
||||
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@ -26,9 +26,9 @@ import (
|
||||
"bazil.org/fuse/fs"
|
||||
"golang.org/x/net/context"
|
||||
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/util/exporter"
|
||||
"github.com/chubaofs/chubaofs/util/log"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/util/exporter"
|
||||
"github.com/cubefs/cubefs/util/log"
|
||||
)
|
||||
|
||||
// used to locate the position in parent
|
||||
|
||||
@ -25,9 +25,9 @@ import (
|
||||
|
||||
"sync"
|
||||
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/util/exporter"
|
||||
"github.com/chubaofs/chubaofs/util/log"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/util/exporter"
|
||||
"github.com/cubefs/cubefs/util/log"
|
||||
)
|
||||
|
||||
// File defines the structure of a file.
|
||||
|
||||
@ -19,7 +19,7 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@ -19,8 +19,8 @@ import (
|
||||
|
||||
"bazil.org/fuse"
|
||||
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/util/log"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/util/log"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@ -2,7 +2,7 @@ package fs
|
||||
|
||||
import (
|
||||
"container/list"
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"sync"
|
||||
"time"
|
||||
)
|
||||
|
||||
@ -28,12 +28,12 @@ import (
|
||||
"bazil.org/fuse"
|
||||
"bazil.org/fuse/fs"
|
||||
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/sdk/data/stream"
|
||||
"github.com/chubaofs/chubaofs/sdk/meta"
|
||||
"github.com/chubaofs/chubaofs/util/errors"
|
||||
"github.com/chubaofs/chubaofs/util/log"
|
||||
"github.com/chubaofs/chubaofs/util/ump"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/sdk/data/stream"
|
||||
"github.com/cubefs/cubefs/sdk/meta"
|
||||
"github.com/cubefs/cubefs/util/errors"
|
||||
"github.com/cubefs/cubefs/util/log"
|
||||
"github.com/cubefs/cubefs/util/ump"
|
||||
)
|
||||
|
||||
// Super defines the struct of a super block.
|
||||
|
||||
@ -38,20 +38,20 @@ import (
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
"github.com/chubaofs/chubaofs/sdk/master"
|
||||
"github.com/chubaofs/chubaofs/util"
|
||||
"github.com/cubefs/cubefs/sdk/master"
|
||||
"github.com/cubefs/cubefs/util"
|
||||
|
||||
sysutil "github.com/chubaofs/chubaofs/util/sys"
|
||||
sysutil "github.com/cubefs/cubefs/util/sys"
|
||||
|
||||
"bazil.org/fuse"
|
||||
"bazil.org/fuse/fs"
|
||||
cfs "github.com/chubaofs/chubaofs/client/fs"
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/util/config"
|
||||
"github.com/chubaofs/chubaofs/util/errors"
|
||||
"github.com/chubaofs/chubaofs/util/exporter"
|
||||
"github.com/chubaofs/chubaofs/util/log"
|
||||
"github.com/chubaofs/chubaofs/util/ump"
|
||||
cfs "github.com/cubefs/cubefs/client/fs"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/util/config"
|
||||
"github.com/cubefs/cubefs/util/errors"
|
||||
"github.com/cubefs/cubefs/util/exporter"
|
||||
"github.com/cubefs/cubefs/util/log"
|
||||
"github.com/cubefs/cubefs/util/ump"
|
||||
"github.com/jacobsa/daemonize"
|
||||
)
|
||||
|
||||
|
||||
@ -7,8 +7,8 @@ BuildTime=`date +%Y-%m-%d\ %H:%M`
|
||||
[[ "-$GOPATH" == "-" ]] && { echo "GOPATH not set"; exit 1; }
|
||||
|
||||
go build -ldflags "\
|
||||
-X github.com/chubaofs/chubaofs/proto.Version=${Version} \
|
||||
-X github.com/chubaofs/chubaofs/proto.CommitID=${CommitID} \
|
||||
-X github.com/chubaofs/chubaofs/proto.BranchName=${BranchName} \
|
||||
-X 'github.com/chubaofs/chubaofs/proto.BuildTime=${BuildTime}'" \
|
||||
-X github.com/cubefs/cubefs/proto.Version=${Version} \
|
||||
-X github.com/cubefs/cubefs/proto.CommitID=${CommitID} \
|
||||
-X github.com/cubefs/cubefs/proto.BranchName=${BranchName} \
|
||||
-X 'github.com/cubefs/cubefs/proto.BuildTime=${BuildTime}'" \
|
||||
-o cfs-server
|
||||
|
||||
26
cmd/cmd.go
26
cmd/cmd.go
@ -28,25 +28,25 @@ import (
|
||||
"strings"
|
||||
"syscall"
|
||||
|
||||
"github.com/chubaofs/chubaofs/util/errors"
|
||||
"github.com/cubefs/cubefs/util/errors"
|
||||
|
||||
"github.com/chubaofs/chubaofs/console"
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/cubefs/cubefs/console"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
|
||||
sysutil "github.com/chubaofs/chubaofs/util/sys"
|
||||
sysutil "github.com/cubefs/cubefs/util/sys"
|
||||
|
||||
"github.com/chubaofs/chubaofs/objectnode"
|
||||
"github.com/cubefs/cubefs/objectnode"
|
||||
|
||||
"github.com/jacobsa/daemonize"
|
||||
|
||||
"github.com/chubaofs/chubaofs/authnode"
|
||||
"github.com/chubaofs/chubaofs/cmd/common"
|
||||
"github.com/chubaofs/chubaofs/datanode"
|
||||
"github.com/chubaofs/chubaofs/master"
|
||||
"github.com/chubaofs/chubaofs/metanode"
|
||||
"github.com/chubaofs/chubaofs/util/config"
|
||||
"github.com/chubaofs/chubaofs/util/log"
|
||||
"github.com/chubaofs/chubaofs/util/ump"
|
||||
"github.com/cubefs/cubefs/authnode"
|
||||
"github.com/cubefs/cubefs/cmd/common"
|
||||
"github.com/cubefs/cubefs/datanode"
|
||||
"github.com/cubefs/cubefs/master"
|
||||
"github.com/cubefs/cubefs/metanode"
|
||||
"github.com/cubefs/cubefs/util/config"
|
||||
"github.com/cubefs/cubefs/util/log"
|
||||
"github.com/cubefs/cubefs/util/ump"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@ -4,7 +4,7 @@ import (
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
|
||||
"github.com/chubaofs/chubaofs/util/config"
|
||||
"github.com/cubefs/cubefs/util/config"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@ -2,8 +2,8 @@ package cutil
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/sdk/graphql/client/user"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/sdk/graphql/client/user"
|
||||
"github.com/google/uuid"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
@ -21,9 +21,9 @@ import (
|
||||
"net/http"
|
||||
"sync"
|
||||
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
client2 "github.com/chubaofs/chubaofs/sdk/graphql/client"
|
||||
"github.com/chubaofs/chubaofs/util/log"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
client2 "github.com/cubefs/cubefs/sdk/graphql/client"
|
||||
"github.com/cubefs/cubefs/util/log"
|
||||
"github.com/samsarahq/thunder/batch"
|
||||
"github.com/samsarahq/thunder/graphql"
|
||||
"github.com/samsarahq/thunder/reactive"
|
||||
|
||||
@ -8,12 +8,12 @@ import (
|
||||
"regexp"
|
||||
"strings"
|
||||
|
||||
"github.com/chubaofs/chubaofs/console/cutil"
|
||||
"github.com/chubaofs/chubaofs/console/service"
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/sdk/graphql/client"
|
||||
"github.com/chubaofs/chubaofs/util/config"
|
||||
"github.com/chubaofs/chubaofs/util/log"
|
||||
"github.com/cubefs/cubefs/console/cutil"
|
||||
"github.com/cubefs/cubefs/console/service"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/sdk/graphql/client"
|
||||
"github.com/cubefs/cubefs/util/config"
|
||||
"github.com/cubefs/cubefs/util/log"
|
||||
"github.com/gorilla/mux"
|
||||
"github.com/samsarahq/thunder/graphql"
|
||||
"github.com/samsarahq/thunder/graphql/introspection"
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
package console
|
||||
|
||||
import (
|
||||
"github.com/chubaofs/chubaofs/master"
|
||||
"github.com/chubaofs/chubaofs/util/config"
|
||||
"github.com/chubaofs/chubaofs/util/log"
|
||||
"github.com/cubefs/cubefs/master"
|
||||
"github.com/cubefs/cubefs/util/config"
|
||||
"github.com/cubefs/cubefs/util/log"
|
||||
"testing"
|
||||
)
|
||||
|
||||
|
||||
@ -13,12 +13,12 @@ import (
|
||||
"github.com/aws/aws-sdk-go/aws/credentials"
|
||||
"github.com/aws/aws-sdk-go/aws/session"
|
||||
"github.com/aws/aws-sdk-go/service/s3"
|
||||
"github.com/chubaofs/chubaofs/console/cutil"
|
||||
. "github.com/chubaofs/chubaofs/objectnode"
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/sdk/graphql/client"
|
||||
"github.com/chubaofs/chubaofs/sdk/graphql/client/user"
|
||||
"github.com/chubaofs/chubaofs/util/log"
|
||||
"github.com/cubefs/cubefs/console/cutil"
|
||||
. "github.com/cubefs/cubefs/objectnode"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/sdk/graphql/client"
|
||||
"github.com/cubefs/cubefs/sdk/graphql/client/user"
|
||||
"github.com/cubefs/cubefs/util/log"
|
||||
"github.com/samsarahq/thunder/graphql"
|
||||
"github.com/samsarahq/thunder/graphql/schemabuilder"
|
||||
)
|
||||
|
||||
@ -3,10 +3,10 @@ package service
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"github.com/chubaofs/chubaofs/console/cutil"
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/sdk/graphql/client"
|
||||
"github.com/chubaofs/chubaofs/sdk/graphql/client/user"
|
||||
"github.com/cubefs/cubefs/console/cutil"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/sdk/graphql/client"
|
||||
"github.com/cubefs/cubefs/sdk/graphql/client/user"
|
||||
"github.com/samsarahq/thunder/graphql"
|
||||
"github.com/samsarahq/thunder/graphql/schemabuilder"
|
||||
)
|
||||
|
||||
@ -25,12 +25,12 @@ import (
|
||||
"fmt"
|
||||
"hash/crc32"
|
||||
|
||||
"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/errors"
|
||||
"github.com/chubaofs/chubaofs/util/log"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/repl"
|
||||
"github.com/cubefs/cubefs/storage"
|
||||
"github.com/cubefs/cubefs/util"
|
||||
"github.com/cubefs/cubefs/util/errors"
|
||||
"github.com/cubefs/cubefs/util/log"
|
||||
)
|
||||
|
||||
// DataPartitionRepairTask defines the reapir task for the data partition.
|
||||
|
||||
@ -25,9 +25,9 @@ import (
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/util/exporter"
|
||||
"github.com/chubaofs/chubaofs/util/log"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/util/exporter"
|
||||
"github.com/cubefs/cubefs/util/log"
|
||||
"os"
|
||||
)
|
||||
|
||||
|
||||
@ -17,7 +17,7 @@ package datanode
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/chubaofs/chubaofs/util/exporter"
|
||||
"github.com/cubefs/cubefs/util/exporter"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@ -3,7 +3,7 @@ package datanode
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/chubaofs/chubaofs/util/log"
|
||||
"github.com/cubefs/cubefs/util/log"
|
||||
"golang.org/x/time/rate"
|
||||
)
|
||||
|
||||
|
||||
@ -32,13 +32,13 @@ import (
|
||||
"sort"
|
||||
"syscall"
|
||||
|
||||
"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/errors"
|
||||
"github.com/chubaofs/chubaofs/util/exporter"
|
||||
"github.com/chubaofs/chubaofs/util/log"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/raftstore"
|
||||
"github.com/cubefs/cubefs/repl"
|
||||
"github.com/cubefs/cubefs/storage"
|
||||
"github.com/cubefs/cubefs/util/errors"
|
||||
"github.com/cubefs/cubefs/util/exporter"
|
||||
"github.com/cubefs/cubefs/util/log"
|
||||
raftProto "github.com/tiglabs/raft/proto"
|
||||
)
|
||||
|
||||
|
||||
@ -19,11 +19,11 @@ import (
|
||||
"encoding/binary"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/repl"
|
||||
"github.com/chubaofs/chubaofs/storage"
|
||||
"github.com/chubaofs/chubaofs/util/exporter"
|
||||
"github.com/chubaofs/chubaofs/util/log"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/repl"
|
||||
"github.com/cubefs/cubefs/storage"
|
||||
"github.com/cubefs/cubefs/util/exporter"
|
||||
"github.com/cubefs/cubefs/util/log"
|
||||
"github.com/tiglabs/raft"
|
||||
"net"
|
||||
"strings"
|
||||
|
||||
@ -27,12 +27,12 @@ import (
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
"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/errors"
|
||||
"github.com/chubaofs/chubaofs/util/log"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/raftstore"
|
||||
"github.com/cubefs/cubefs/repl"
|
||||
"github.com/cubefs/cubefs/util/config"
|
||||
"github.com/cubefs/cubefs/util/errors"
|
||||
"github.com/cubefs/cubefs/util/log"
|
||||
raftproto "github.com/tiglabs/raft/proto"
|
||||
)
|
||||
|
||||
|
||||
@ -22,10 +22,10 @@ import (
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/storage"
|
||||
"github.com/chubaofs/chubaofs/util/exporter"
|
||||
"github.com/chubaofs/chubaofs/util/log"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/storage"
|
||||
"github.com/cubefs/cubefs/util/exporter"
|
||||
"github.com/cubefs/cubefs/util/log"
|
||||
"github.com/tiglabs/raft"
|
||||
raftproto "github.com/tiglabs/raft/proto"
|
||||
)
|
||||
|
||||
@ -30,15 +30,15 @@ import (
|
||||
"os"
|
||||
"syscall"
|
||||
|
||||
"github.com/chubaofs/chubaofs/cmd/common"
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/raftstore"
|
||||
"github.com/chubaofs/chubaofs/repl"
|
||||
masterSDK "github.com/chubaofs/chubaofs/sdk/master"
|
||||
"github.com/chubaofs/chubaofs/util"
|
||||
"github.com/chubaofs/chubaofs/util/config"
|
||||
"github.com/chubaofs/chubaofs/util/exporter"
|
||||
"github.com/chubaofs/chubaofs/util/log"
|
||||
"github.com/cubefs/cubefs/cmd/common"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/raftstore"
|
||||
"github.com/cubefs/cubefs/repl"
|
||||
masterSDK "github.com/cubefs/cubefs/sdk/master"
|
||||
"github.com/cubefs/cubefs/util"
|
||||
"github.com/cubefs/cubefs/util/config"
|
||||
"github.com/cubefs/cubefs/util/exporter"
|
||||
"github.com/cubefs/cubefs/util/log"
|
||||
|
||||
"smux"
|
||||
)
|
||||
|
||||
@ -21,8 +21,8 @@ import (
|
||||
"strconv"
|
||||
"sync/atomic"
|
||||
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/storage"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/storage"
|
||||
"github.com/tiglabs/raft"
|
||||
)
|
||||
|
||||
|
||||
@ -22,9 +22,9 @@ import (
|
||||
"math"
|
||||
"os"
|
||||
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/raftstore"
|
||||
"github.com/chubaofs/chubaofs/util/log"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/raftstore"
|
||||
"github.com/cubefs/cubefs/util/log"
|
||||
)
|
||||
|
||||
// SpaceManager manages the disk space.
|
||||
|
||||
@ -26,13 +26,13 @@ import (
|
||||
"hash/crc32"
|
||||
"strings"
|
||||
|
||||
"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/errors"
|
||||
"github.com/chubaofs/chubaofs/util/exporter"
|
||||
"github.com/chubaofs/chubaofs/util/log"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/repl"
|
||||
"github.com/cubefs/cubefs/storage"
|
||||
"github.com/cubefs/cubefs/util"
|
||||
"github.com/cubefs/cubefs/util/errors"
|
||||
"github.com/cubefs/cubefs/util/exporter"
|
||||
"github.com/cubefs/cubefs/util/log"
|
||||
"github.com/tiglabs/raft"
|
||||
raftProto "github.com/tiglabs/raft/proto"
|
||||
)
|
||||
|
||||
@ -17,8 +17,8 @@ package datanode
|
||||
import (
|
||||
"sync/atomic"
|
||||
|
||||
"github.com/chubaofs/chubaofs/repl"
|
||||
"github.com/chubaofs/chubaofs/storage"
|
||||
"github.com/cubefs/cubefs/repl"
|
||||
"github.com/cubefs/cubefs/storage"
|
||||
)
|
||||
|
||||
func (s *DataNode) Post(p *repl.Packet) error {
|
||||
|
||||
@ -20,9 +20,9 @@ import (
|
||||
"hash/crc32"
|
||||
"sync/atomic"
|
||||
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/repl"
|
||||
"github.com/chubaofs/chubaofs/storage"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/repl"
|
||||
"github.com/cubefs/cubefs/storage"
|
||||
)
|
||||
|
||||
func (s *DataNode) Prepare(p *repl.Packet) (err error) {
|
||||
|
||||
@ -3,8 +3,8 @@
|
||||
#write authkey to authnode.json
|
||||
cd ..
|
||||
cd ..
|
||||
cp ./build/bin/cfs-server /home/wuwenjia/gocode/src/github.com/chubaofs/chubaofs/docker/authnode/.
|
||||
cp ./build/bin/cfs-authtool /home/wuwenjia/gocode/src/github.com/chubaofs/chubaofs/docker/authnode/.
|
||||
cp ./build/bin/cfs-server /home/wuwenjia/gocode/src/github.com/cubefs/cubefs/docker/authnode/.
|
||||
cp ./build/bin/cfs-authtool /home/wuwenjia/gocode/src/github.com/cubefs/cubefs/docker/authnode/.
|
||||
cd docker/authnode
|
||||
./cfs-authtool authkey
|
||||
authnodeKey=$(sed -n '3p' authservice.json | sed 's/auth_key/authServiceKey/g')
|
||||
|
||||
@ -324,11 +324,11 @@ services:
|
||||
- "-c"
|
||||
- >-
|
||||
set -e;
|
||||
mkdir -p /go/src/github.com/chubaofs/chubaofs/docker/bin &&
|
||||
mkdir -p /go/src/github.com/cubefs/cubefs/docker/bin &&
|
||||
echo -n 'build server ' ;
|
||||
cd /go/src/github.com/chubaofs/chubaofs/cmd && bash ./build.sh && mv cfs-server /go/src/github.com/chubaofs/chubaofs/docker/bin/cfs-server && echo "success" || echo "failed" ;
|
||||
cd /go/src/github.com/cubefs/cubefs/cmd && bash ./build.sh && mv cfs-server /go/src/github.com/cubefs/cubefs/docker/bin/cfs-server && echo "success" || echo "failed" ;
|
||||
echo -n 'build client ' ;
|
||||
cd /go/src/github.com/chubaofs/chubaofs/client && bash ./build.sh && mv cfs-client /go/src/github.com/chubaofs/chubaofs/docker/bin/cfs-client && echo 'success' || echo "failed" ;
|
||||
cd /go/src/github.com/cubefs/cubefs/client && bash ./build.sh && mv cfs-client /go/src/github.com/cubefs/cubefs/docker/bin/cfs-client && echo 'success' || echo "failed" ;
|
||||
networks:
|
||||
authnode_extnetwork:
|
||||
|
||||
@ -341,7 +341,7 @@ services:
|
||||
- "-c"
|
||||
- >-
|
||||
set -e;
|
||||
mkdir -p /go/src/github.com/chubaofs/chubaofs/docker/bin &&
|
||||
mkdir -p /go/src/github.com/cubefs/cubefs/docker/bin &&
|
||||
cd /go/src/github.com/chubaofs/chubaofs && make test
|
||||
networks:
|
||||
authnode_extnetwork:
|
||||
@ -1,15 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
mkdir -p /go/src/github.com/chubaofs/chubaofs/docker/bin;
|
||||
mkdir -p /go/src/github.com/cubefs/cubefs/docker/bin;
|
||||
failed=0
|
||||
|
||||
export GO111MODULE=off
|
||||
|
||||
echo -n 'Building ChubaoFS Server ... ';
|
||||
cd /go/src/github.com/chubaofs/chubaofs/cmd;
|
||||
cd /go/src/github.com/cubefs/cubefs/cmd;
|
||||
bash ./build.sh &>> /tmp/cfs_build_output
|
||||
if [[ $? -eq 0 ]]; then
|
||||
echo -e "\033[32mdone\033[0m";
|
||||
mv cfs-server /go/src/github.com/chubaofs/chubaofs/docker/bin/cfs-server;
|
||||
mv cfs-server /go/src/github.com/cubefs/cubefs/docker/bin/cfs-server;
|
||||
else
|
||||
echo -e "\033[31mfail\033[0m";
|
||||
failed=1
|
||||
@ -17,33 +17,33 @@ fi
|
||||
|
||||
|
||||
echo -n 'Building ChubaoFS Client ... ' ;
|
||||
cd /go/src/github.com/chubaofs/chubaofs/client;
|
||||
cd /go/src/github.com/cubefs/cubefs/client;
|
||||
bash ./build.sh &>> /tmp/cfs_build_output
|
||||
if [[ $? -eq 0 ]]; then
|
||||
echo -e "\033[32mdone\033[0m";
|
||||
mv cfs-client /go/src/github.com/chubaofs/chubaofs/docker/bin/cfs-client;
|
||||
mv cfs-client /go/src/github.com/cubefs/cubefs/docker/bin/cfs-client;
|
||||
else
|
||||
echo -e "\033[31mfail\033[0m";
|
||||
failed=1
|
||||
fi
|
||||
|
||||
echo -n 'Building ChubaoFS CLI ... ';
|
||||
cd /go/src/github.com/chubaofs/chubaofs/cli;
|
||||
cd /go/src/github.com/cubefs/cubefs/cli;
|
||||
bash ./build.sh &>> /tmp/cfs_build_output;
|
||||
if [[ $? -eq 0 ]]; then
|
||||
echo -e "\033[32mdone\033[0m";
|
||||
mv cfs-cli /go/src/github.com/chubaofs/chubaofs/docker/bin/cfs-cli;
|
||||
mv cfs-cli /go/src/github.com/cubefs/cubefs/docker/bin/cfs-cli;
|
||||
else
|
||||
echo -e "\033[31mfail\033[0m";
|
||||
failed=1
|
||||
fi
|
||||
|
||||
echo -n 'Building ChubaoFS libsdk ... ';
|
||||
cd /go/src/github.com/chubaofs/chubaofs/libsdk;
|
||||
cd /go/src/github.com/cubefs/cubefs/libsdk;
|
||||
bash ./build.sh &>> /tmp/cfs_build_output;
|
||||
if [[ $? -eq 0 ]]; then
|
||||
echo -e "\033[32mdone\033[0m";
|
||||
mv libcfs.so /go/src/github.com/chubaofs/chubaofs/docker/bin/;
|
||||
mv libcfs.so /go/src/github.com/cubefs/cubefs/docker/bin/;
|
||||
else
|
||||
echo -e "\033[31mfail\033[0m";
|
||||
failed=1
|
||||
|
||||
@ -4,7 +4,7 @@ Contributing to ChubaoFS
|
||||
Bug Reports
|
||||
-----------
|
||||
|
||||
Please make sure the bug is not already reported by `searching the repository <https://github.com/chubaofs/chubaofs/search?q=&type=Issues&utf8=%E2%9C%93>`_ with reasonable keywords. Then, `open an issue <https://github.com/chubaofs/chubaofs/issues>`_ with steps to reproduce.
|
||||
Please make sure the bug is not already reported by `searching the repository <https://github.com/cubefs/cubefs/search?q=&type=Issues&utf8=%E2%9C%93>`_ with reasonable keywords. Then, `open an issue <https://github.com/cubefs/cubefs/issues>`_ with steps to reproduce.
|
||||
|
||||
Patch Guidelines
|
||||
----------------
|
||||
|
||||
@ -307,7 +307,7 @@ Upgrade
|
||||
|
||||
1. Steps
|
||||
|
||||
a. Download and unzip the latest binary file compression package from ChubaoFS official website https://github.com/chubaofs/chubaofs/releases
|
||||
a. Download and unzip the latest binary file compression package from ChubaoFS official website https://github.com/cubefs/cubefs/releases
|
||||
b. Freeze the cluster
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
@ -26,8 +26,8 @@ import (
|
||||
"unsafe"
|
||||
|
||||
"bazil.org/fuse/fs"
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/util"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/util"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@ -25,7 +25,7 @@ import (
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@ -26,10 +26,10 @@ import (
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/sdk/meta"
|
||||
"github.com/chubaofs/chubaofs/util/log"
|
||||
"github.com/chubaofs/chubaofs/util/ump"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/sdk/meta"
|
||||
"github.com/cubefs/cubefs/util/log"
|
||||
"github.com/cubefs/cubefs/util/ump"
|
||||
)
|
||||
|
||||
var gMetaWrapper *meta.MetaWrapper
|
||||
|
||||
@ -19,7 +19,7 @@ import (
|
||||
"os"
|
||||
"path"
|
||||
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
|
||||
@ -18,7 +18,7 @@ import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/chubaofs/chubaofs/fsck/cmd"
|
||||
"github.com/cubefs/cubefs/fsck/cmd"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
@ -19,10 +19,10 @@ esac
|
||||
|
||||
[[ "-$GOPATH" == "-" ]] && { echo "GOPATH not set"; exit 1; }
|
||||
|
||||
LDFlags="-X github.com/chubaofs/chubaofs/proto.Version=${Version} \
|
||||
-X github.com/chubaofs/chubaofs/proto.CommitID=${CommitID} \
|
||||
-X github.com/chubaofs/chubaofs/proto.BranchName=${BranchName} \
|
||||
-X 'github.com/chubaofs/chubaofs/proto.BuildTime=${BuildTime}' "
|
||||
LDFlags="-X github.com/cubefs/cubefs/proto.Version=${Version} \
|
||||
-X github.com/cubefs/cubefs/proto.CommitID=${CommitID} \
|
||||
-X github.com/cubefs/cubefs/proto.BranchName=${BranchName} \
|
||||
-X 'github.com/cubefs/cubefs/proto.BuildTime=${BuildTime}' "
|
||||
|
||||
go build \
|
||||
-ldflags "${LDFlags}" \
|
||||
|
||||
@ -57,7 +57,7 @@ struct cfs_summary_info {
|
||||
import "C"
|
||||
|
||||
import (
|
||||
"github.com/chubaofs/chubaofs/client/fs"
|
||||
"github.com/cubefs/cubefs/client/fs"
|
||||
"io"
|
||||
"os"
|
||||
gopath "path"
|
||||
@ -70,10 +70,10 @@ import (
|
||||
|
||||
"github.com/willf/bitset"
|
||||
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/sdk/data/stream"
|
||||
"github.com/chubaofs/chubaofs/sdk/meta"
|
||||
"github.com/chubaofs/chubaofs/util/log"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/sdk/data/stream"
|
||||
"github.com/cubefs/cubefs/sdk/meta"
|
||||
"github.com/cubefs/cubefs/util/log"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@ -22,10 +22,10 @@ import (
|
||||
"fmt"
|
||||
"net"
|
||||
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/util"
|
||||
"github.com/chubaofs/chubaofs/util/errors"
|
||||
"github.com/chubaofs/chubaofs/util/log"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/util"
|
||||
"github.com/cubefs/cubefs/util/errors"
|
||||
"github.com/cubefs/cubefs/util/log"
|
||||
)
|
||||
|
||||
//const
|
||||
|
||||
@ -27,11 +27,11 @@ import (
|
||||
"io/ioutil"
|
||||
"strings"
|
||||
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/util"
|
||||
"github.com/chubaofs/chubaofs/util/cryptoutil"
|
||||
"github.com/chubaofs/chubaofs/util/errors"
|
||||
"github.com/chubaofs/chubaofs/util/log"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/util"
|
||||
"github.com/cubefs/cubefs/util/cryptoutil"
|
||||
"github.com/cubefs/cubefs/util/errors"
|
||||
"github.com/cubefs/cubefs/util/log"
|
||||
)
|
||||
|
||||
// NodeView provides the view of the data or meta node.
|
||||
|
||||
@ -28,10 +28,10 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/chubaofs/chubaofs/master/mocktest"
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/util/config"
|
||||
"github.com/chubaofs/chubaofs/util/log"
|
||||
"github.com/cubefs/cubefs/master/mocktest"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/util/config"
|
||||
"github.com/cubefs/cubefs/util/log"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@ -6,9 +6,9 @@ import (
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/util/errors"
|
||||
"github.com/chubaofs/chubaofs/util/log"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/util/errors"
|
||||
"github.com/cubefs/cubefs/util/log"
|
||||
)
|
||||
|
||||
func (m *Server) createUser(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
@ -20,11 +20,11 @@ import (
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/raftstore"
|
||||
"github.com/chubaofs/chubaofs/util"
|
||||
"github.com/chubaofs/chubaofs/util/errors"
|
||||
"github.com/chubaofs/chubaofs/util/log"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/raftstore"
|
||||
"github.com/cubefs/cubefs/util"
|
||||
"github.com/cubefs/cubefs/util/errors"
|
||||
"github.com/cubefs/cubefs/util/log"
|
||||
)
|
||||
|
||||
// Cluster stores all the cluster-level information.
|
||||
|
||||
@ -18,9 +18,9 @@ import (
|
||||
"fmt"
|
||||
"strconv"
|
||||
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/util"
|
||||
"github.com/chubaofs/chubaofs/util/log"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/util"
|
||||
"github.com/cubefs/cubefs/util/log"
|
||||
"math"
|
||||
)
|
||||
|
||||
|
||||
@ -21,9 +21,9 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/util/errors"
|
||||
"github.com/chubaofs/chubaofs/util/log"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/util/errors"
|
||||
"github.com/cubefs/cubefs/util/log"
|
||||
)
|
||||
|
||||
func (c *Cluster) addDataNodeTasks(tasks []*proto.AdminTask) {
|
||||
|
||||
@ -5,7 +5,7 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
)
|
||||
|
||||
func buildPanicCluster() *Cluster {
|
||||
|
||||
@ -20,7 +20,7 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/chubaofs/chubaofs/raftstore"
|
||||
"github.com/cubefs/cubefs/raftstore"
|
||||
"github.com/tiglabs/raft/proto"
|
||||
)
|
||||
|
||||
|
||||
@ -17,8 +17,8 @@ package master
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/util"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/util"
|
||||
)
|
||||
|
||||
// Keys in the request
|
||||
|
||||
@ -19,10 +19,10 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/chubaofs/chubaofs/util/log"
|
||||
"github.com/cubefs/cubefs/util/log"
|
||||
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/util"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/util"
|
||||
)
|
||||
|
||||
// DataNode stores all the information about a data node
|
||||
|
||||
@ -2,7 +2,7 @@ package master
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"testing"
|
||||
"time"
|
||||
)
|
||||
|
||||
@ -21,10 +21,10 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/util"
|
||||
"github.com/chubaofs/chubaofs/util/errors"
|
||||
"github.com/chubaofs/chubaofs/util/log"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/util"
|
||||
"github.com/cubefs/cubefs/util/errors"
|
||||
"github.com/cubefs/cubefs/util/log"
|
||||
)
|
||||
|
||||
// DataPartition represents the structure of storing the file contents.
|
||||
|
||||
@ -19,9 +19,9 @@ import (
|
||||
"math"
|
||||
"time"
|
||||
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/util"
|
||||
"github.com/chubaofs/chubaofs/util/log"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/util"
|
||||
"github.com/cubefs/cubefs/util/log"
|
||||
)
|
||||
|
||||
func (partition *DataPartition) checkStatus(clusterName string, needLog bool, dpTimeOutSec int64) {
|
||||
|
||||
@ -21,8 +21,8 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/util/log"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/util/log"
|
||||
)
|
||||
|
||||
// DataPartitionMap stores all the data partitionMap
|
||||
|
||||
@ -5,8 +5,8 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/util"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/util"
|
||||
)
|
||||
|
||||
func TestDataPartition(t *testing.T) {
|
||||
|
||||
@ -17,7 +17,7 @@ package master
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
)
|
||||
|
||||
// DataReplica represents the replica of a data partition
|
||||
|
||||
@ -18,8 +18,8 @@ import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/chubaofs/chubaofs/util"
|
||||
"github.com/chubaofs/chubaofs/util/log"
|
||||
"github.com/cubefs/cubefs/util"
|
||||
"github.com/cubefs/cubefs/util/log"
|
||||
)
|
||||
|
||||
func (c *Cluster) scheduleToCheckDiskRecoveryProgress() {
|
||||
|
||||
@ -16,8 +16,8 @@ package master
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/chubaofs/chubaofs/storage"
|
||||
"github.com/chubaofs/chubaofs/util/log"
|
||||
"github.com/cubefs/cubefs/storage"
|
||||
"github.com/cubefs/cubefs/util/log"
|
||||
"sort"
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
@ -17,7 +17,7 @@ package master
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
)
|
||||
|
||||
// FileMetadata defines the file metadata on a dataNode
|
||||
|
||||
@ -5,8 +5,8 @@ import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/util/log"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/util/log"
|
||||
"github.com/samsarahq/thunder/graphql"
|
||||
"github.com/samsarahq/thunder/graphql/schemabuilder"
|
||||
"io/ioutil"
|
||||
|
||||
@ -3,8 +3,8 @@ package master
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/util/log"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/util/log"
|
||||
"github.com/samsarahq/thunder/graphql"
|
||||
"github.com/samsarahq/thunder/graphql/schemabuilder"
|
||||
"sort"
|
||||
|
||||
@ -7,8 +7,8 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/util/log"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/util/log"
|
||||
"github.com/samsarahq/thunder/graphql"
|
||||
"github.com/samsarahq/thunder/graphql/schemabuilder"
|
||||
)
|
||||
|
||||
@ -26,10 +26,10 @@ import (
|
||||
|
||||
"github.com/gorilla/mux"
|
||||
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/util/config"
|
||||
"github.com/chubaofs/chubaofs/util/exporter"
|
||||
"github.com/chubaofs/chubaofs/util/log"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/util/config"
|
||||
"github.com/cubefs/cubefs/util/exporter"
|
||||
"github.com/cubefs/cubefs/util/log"
|
||||
)
|
||||
|
||||
func (m *Server) startHTTPService(modulename string, cfg *config.Config) {
|
||||
|
||||
@ -16,8 +16,8 @@ package master
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/chubaofs/chubaofs/raftstore"
|
||||
"github.com/chubaofs/chubaofs/util/log"
|
||||
"github.com/cubefs/cubefs/raftstore"
|
||||
"github.com/cubefs/cubefs/util/log"
|
||||
"strconv"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
|
||||
@ -18,8 +18,8 @@ import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
cfsProto "github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/util/log"
|
||||
cfsProto "github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/util/log"
|
||||
"github.com/tiglabs/raft/proto"
|
||||
)
|
||||
|
||||
|
||||
@ -6,8 +6,8 @@ import (
|
||||
"net/http"
|
||||
"testing"
|
||||
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/raftstore"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/raftstore"
|
||||
rproto "github.com/tiglabs/raft/proto"
|
||||
)
|
||||
|
||||
|
||||
@ -19,7 +19,7 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
)
|
||||
|
||||
// MetaNode defines the structure of a meta node
|
||||
|
||||
@ -2,7 +2,7 @@ package master
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"testing"
|
||||
"time"
|
||||
)
|
||||
|
||||
@ -22,9 +22,9 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/chubaofs/chubaofs/proto"
|
||||
"github.com/chubaofs/chubaofs/util/errors"
|
||||
"github.com/chubaofs/chubaofs/util/log"
|
||||
"github.com/cubefs/cubefs/proto"
|
||||
"github.com/cubefs/cubefs/util/errors"
|
||||
"github.com/cubefs/cubefs/util/log"
|
||||
)
|
||||
|
||||
// MetaReplica defines the replica of a meta partition
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user