mirror of
https://github.com/minio/minio.git
synced 2025-11-09 05:34:56 -05:00
Remove donut_gen binary and update crc32c function
This commit is contained in:
2
pkg/storage/donut/v1/donut_gen_v1/.gitignore
vendored
Normal file
2
pkg/storage/donut/v1/donut_gen_v1/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
donut_gen
|
||||
hello
|
||||
Binary file not shown.
@@ -12,7 +12,7 @@ import (
|
||||
func main() {
|
||||
fmt.Println("--start")
|
||||
|
||||
file, err := os.OpenFile("newfile", os.O_WRONLY|os.O_CREATE, 0666)
|
||||
file, err := os.OpenFile("hello", os.O_WRONLY|os.O_CREATE, 0666)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
@@ -30,10 +30,10 @@ func main() {
|
||||
fmt.Println("--closed")
|
||||
|
||||
fmt.Println("--verify")
|
||||
stat, _ := os.Stat("newfile")
|
||||
stat, _ := os.Stat("hello")
|
||||
fileSize := stat.Size()
|
||||
|
||||
rfile, _ := os.OpenFile("newfile", os.O_RDONLY, 0666)
|
||||
rfile, _ := os.OpenFile("hello", os.O_RDONLY, 0666)
|
||||
blockStart := make([]byte, 4)
|
||||
blockStartCheck := []byte{'M', 'I', 'N', 'I'}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user