|
|
|
@ -1,5 +1,3 @@ |
|
|
|
|
// +build ignore
|
|
|
|
|
|
|
|
|
|
package main |
|
|
|
|
|
|
|
|
|
import ( |
|
|
|
@ -8,7 +6,7 @@ import ( |
|
|
|
|
"os" |
|
|
|
|
"reflect" |
|
|
|
|
|
|
|
|
|
"github.com/minio-io/minio/pkg/storage/donut/v1" |
|
|
|
|
"github.com/minio-io/minio/pkg/storage/donut/frame/frame_v1" |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
func main() { |
|
|
|
@ -22,7 +20,7 @@ func main() { |
|
|
|
|
|
|
|
|
|
dataBuffer := bytes.NewBuffer(data) |
|
|
|
|
|
|
|
|
|
err = v1.Write(file, dataBuffer, uint64(dataBuffer.Len())) |
|
|
|
|
err = frame_v1.WriteFrame(file, dataBuffer, uint64(dataBuffer.Len())) |
|
|
|
|
if err != nil { |
|
|
|
|
panic(err) |
|
|
|
|
} |