simplify volume id printing

This commit is contained in:
Chris Lu committed 2012-08-23 23:14:54 -07:00
1 parent 868e47f994
commit 0c32e2e965
4 files changed
+9 -10

No files matched your search

+1 -1
View File
@@ -37,7 +37,7 @@ type Volume struct {
func NewVolume(dirname string, id VolumeId) (v *Volume) {
var e error
v = &Volume{dir: dirname, Id: id}
fileName := strconv.FormatUint(uint64(v.Id), 10)
fileName := id.String()
v.dataFile, e = os.OpenFile(path.Join(v.dir, fileName+".dat"), os.O_RDWR|os.O_CREATE, 0644)
if e != nil {
log.Fatalf("New Volume [ERROR] %s\n", e)