testing new directory structure

This commit is contained in:
Chris Lu 2013-02-10 03:31:40 -08:00
parent ab6fb13ad7
commit 55f2627fcf
23 changed files with 38 additions and 38 deletions

View file

@ -2,8 +2,8 @@ package directory
import ( import (
"encoding/hex" "encoding/hex"
"weed/storage" "code.google.com/p/weed-fs/weed/storage"
"weed/util" "code.google.com/p/weed-fs/weed/util"
"strings" "strings"
) )

View file

@ -7,8 +7,8 @@ import (
"log" "log"
"os" "os"
"path" "path"
"weed/directory" "code.google.com/p/weed-fs/weed/directory"
"weed/storage" "code.google.com/p/weed-fs/weed/storage"
"strconv" "strconv"
"strings" "strings"
"text/template" "text/template"

View file

@ -4,7 +4,7 @@ import (
"log" "log"
"os" "os"
"path" "path"
"weed/storage" "code.google.com/p/weed-fs/weed/storage"
"strconv" "strconv"
) )

View file

@ -5,9 +5,9 @@ import (
"errors" "errors"
"log" "log"
"net/http" "net/http"
"weed/replication" "code.google.com/p/weed-fs/weed/replication"
"weed/storage" "code.google.com/p/weed-fs/weed/storage"
"weed/topology" "code.google.com/p/weed-fs/weed/topology"
"runtime" "runtime"
"strconv" "strconv"
"strings" "strings"

View file

@ -4,9 +4,9 @@ import (
"encoding/json" "encoding/json"
"errors" "errors"
"net/url" "net/url"
"weed/storage" "code.google.com/p/weed-fs/weed/storage"
"weed/topology" "code.google.com/p/weed-fs/weed/topology"
"weed/util" "code.google.com/p/weed-fs/weed/util"
) )
type AllocateVolumeResult struct { type AllocateVolumeResult struct {

View file

@ -5,8 +5,8 @@ import (
"errors" "errors"
_ "fmt" _ "fmt"
"net/url" "net/url"
"weed/storage" "code.google.com/p/weed-fs/weed/storage"
"weed/util" "code.google.com/p/weed-fs/weed/util"
) )
type Location struct { type Location struct {

View file

@ -4,9 +4,9 @@ import (
"errors" "errors"
"fmt" "fmt"
"math/rand" "math/rand"
"weed/operation" "code.google.com/p/weed-fs/weed/operation"
"weed/storage" "code.google.com/p/weed-fs/weed/storage"
"weed/topology" "code.google.com/p/weed-fs/weed/topology"
"sync" "sync"
) )

View file

@ -4,8 +4,8 @@ import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"math/rand" "math/rand"
"weed/storage" "code.google.com/p/weed-fs/weed/storage"
"weed/topology" "code.google.com/p/weed-fs/weed/topology"
"testing" "testing"
"time" "time"
) )

View file

@ -3,7 +3,7 @@ package storage
import ( import (
"log" "log"
"os" "os"
"weed/util" "code.google.com/p/weed-fs/weed/util"
"testing" "testing"
) )

View file

@ -7,7 +7,7 @@ import (
"mime" "mime"
"net/http" "net/http"
"path" "path"
"weed/util" "code.google.com/p/weed-fs/weed/util"
"strconv" "strconv"
"strings" "strings"
) )

View file

@ -3,7 +3,7 @@ package storage
import ( import (
//"log" //"log"
"os" "os"
"weed/util" "code.google.com/p/weed-fs/weed/util"
) )
type NeedleMap struct { type NeedleMap struct {

View file

@ -5,7 +5,7 @@ import (
"fmt" "fmt"
"io" "io"
"os" "os"
"weed/util" "code.google.com/p/weed-fs/weed/util"
) )
const ( const (

View file

@ -6,7 +6,7 @@ import (
"io/ioutil" "io/ioutil"
"log" "log"
"net/url" "net/url"
"weed/util" "code.google.com/p/weed-fs/weed/util"
"strconv" "strconv"
"strings" "strings"
) )

View file

@ -2,7 +2,7 @@ package topology
import ( import (
_ "fmt" _ "fmt"
"weed/storage" "code.google.com/p/weed-fs/weed/storage"
"strconv" "strconv"
) )

View file

@ -2,7 +2,7 @@ package topology
import ( import (
"fmt" "fmt"
"weed/storage" "code.google.com/p/weed-fs/weed/storage"
) )
type NodeId string type NodeId string

View file

@ -3,7 +3,7 @@ package topology
import ( import (
"fmt" "fmt"
"math/rand" "math/rand"
"weed/storage" "code.google.com/p/weed-fs/weed/storage"
) )
type NodeList struct { type NodeList struct {

View file

@ -4,7 +4,7 @@ import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"math/rand" "math/rand"
"weed/storage" "code.google.com/p/weed-fs/weed/storage"
"testing" "testing"
"time" "time"
) )

View file

@ -4,9 +4,9 @@ import (
"errors" "errors"
"io/ioutil" "io/ioutil"
"math/rand" "math/rand"
"weed/directory" "code.google.com/p/weed-fs/weed/directory"
"weed/sequence" "code.google.com/p/weed-fs/weed/sequence"
"weed/storage" "code.google.com/p/weed-fs/weed/storage"
) )
type Topology struct { type Topology struct {

View file

@ -5,8 +5,8 @@ import (
"errors" "errors"
"fmt" "fmt"
"net/url" "net/url"
"weed/storage" "code.google.com/p/weed-fs/weed/storage"
"weed/util" "code.google.com/p/weed-fs/weed/util"
"time" "time"
) )

View file

@ -3,7 +3,7 @@ package topology
import ( import (
"fmt" "fmt"
"math/rand" "math/rand"
"weed/storage" "code.google.com/p/weed-fs/weed/storage"
"time" "time"
) )

View file

@ -4,7 +4,7 @@ import (
"errors" "errors"
"fmt" "fmt"
"math/rand" "math/rand"
"weed/storage" "code.google.com/p/weed-fs/weed/storage"
) )
type VolumeLayout struct { type VolumeLayout struct {

View file

@ -7,8 +7,8 @@ import (
"net/url" "net/url"
"os" "os"
"path" "path"
"weed/operation" "code.google.com/p/weed-fs/weed/operation"
"weed/util" "code.google.com/p/weed-fs/weed/util"
"strconv" "strconv"
) )

View file

@ -7,8 +7,8 @@ import (
"mime" "mime"
"net/http" "net/http"
"os" "os"
"weed/operation" "code.google.com/p/weed-fs/weed/operation"
"weed/storage" "code.google.com/p/weed-fs/weed/storage"
"runtime" "runtime"
"strconv" "strconv"
"strings" "strings"