mirror of
https://codeberg.org/scip/io-exporter.git
synced 2025-12-18 04:51:02 +01:00
fix linter error, mv const to config
This commit is contained in:
@@ -7,17 +7,10 @@ import (
|
|||||||
"github.com/ncw/directio"
|
"github.com/ncw/directio"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
|
||||||
O_R = iota
|
|
||||||
O_W
|
|
||||||
O_RW
|
|
||||||
)
|
|
||||||
|
|
||||||
// aligned allocs used for testing
|
// aligned allocs used for testing
|
||||||
type Alloc struct {
|
type Alloc struct {
|
||||||
writeBlock []byte
|
writeBlock []byte
|
||||||
readBlock []byte
|
readBlock []byte
|
||||||
mode int
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// zero the memory blocks
|
// zero the memory blocks
|
||||||
|
|||||||
@@ -28,6 +28,10 @@ Options:
|
|||||||
-d --debug Enable debug log level
|
-d --debug Enable debug log level
|
||||||
-h --help Show help
|
-h --help Show help
|
||||||
-v --version Show program version`
|
-v --version Show program version`
|
||||||
|
|
||||||
|
O_R = iota
|
||||||
|
O_W
|
||||||
|
O_RW
|
||||||
)
|
)
|
||||||
|
|
||||||
// config via commandline flags
|
// config via commandline flags
|
||||||
|
|||||||
Reference in New Issue
Block a user