@ -7,8 +7,8 @@ import (
"log"
"os"
"path"
"code.google.com/p/weed-fs/weed/directory"
"code.google.com/p/weed-fs/weed/storage"
"code.google.com/p/weed-fs/go/directory"
"code.google.com/p/weed-fs/go/storage"
"strconv"
"strings"
"text/template"
@ -4,7 +4,7 @@ import (
)
@ -5,9 +5,9 @@ import (
"errors"
"net/http"
"code.google.com/p/weed-fs/weed/replication"
"code.google.com/p/weed-fs/weed/topology"
"code.google.com/p/weed-fs/go/replication"
"code.google.com/p/weed-fs/go/topology"
"runtime"
"net/url"
"code.google.com/p/weed-fs/weed/operation"
"code.google.com/p/weed-fs/weed/util"
"code.google.com/p/weed-fs/go/operation"
"code.google.com/p/weed-fs/go/util"
"mime"
@ -2,8 +2,8 @@ package directory
import (
"encoding/hex"
@ -4,9 +4,9 @@ import (
"encoding/json"
type AllocateVolumeResult struct {
@ -5,8 +5,8 @@ import (
_ "fmt"
type Location struct {
"fmt"
"math/rand"
"sync"
@ -4,8 +4,8 @@ import (
"testing"
"time"
@ -3,13 +3,13 @@ package storage
func TestMemoryUsage(t *testing.T) {
indexFile, ie := os.OpenFile("sample.idx", os.O_RDWR|os.O_RDONLY, 0644)
indexFile, ie := os.OpenFile("../../test/sample.idx", os.O_RDWR|os.O_RDONLY, 0644)
if ie != nil {
log.Fatalln(ie)
}
@ -7,7 +7,7 @@ import (
@ -3,7 +3,7 @@ package storage
//"log"
type NeedleMap struct {
@ -5,7 +5,7 @@ import (
"io"
const (
@ -6,7 +6,7 @@ import (
"io/ioutil"
@ -2,7 +2,7 @@ package topology
type NodeId string
@ -3,7 +3,7 @@ package topology
type NodeList struct {
"code.google.com/p/weed-fs/weed/sequence"
"code.google.com/p/weed-fs/go/sequence"
type Topology struct {
type VolumeLayout struct {