https://github.com/holoplot/go-bmap
bmap sparse file writer implementation, written in Go
https://github.com/holoplot/go-bmap
bmap go golang
Last synced: 4 months ago
JSON representation
bmap sparse file writer implementation, written in Go
- Host: GitHub
- URL: https://github.com/holoplot/go-bmap
- Owner: holoplot
- License: mit
- Created: 2021-03-18T09:01:02.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-06-24T09:16:52.000Z (almost 5 years ago)
- Last Synced: 2024-06-20T12:38:19.928Z (almost 2 years ago)
- Topics: bmap, go, golang
- Language: Go
- Homepage:
- Size: 23.4 KB
- Stars: 1
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://godoc.org/github.com/holoplot/go-bmap)
# bmap sparse file writer implementation, written in Go
go-bmap is a pure Go implementation of a reader of the [bmap file format](https://github.com/intel/bmap-tools).
It can be used to efficiently write sparse file images to disk when the input files are transported by mechanisms
or file-systems that are unaware of holes in block allocations.
For more information on the file format and use cases, please refer to the reference implementation linked to above.
# Installation
Install the package like this:
```
go get github.com/holoplot/go-bmap/pkg/bmap
```
And then use it in your source code.
```
import "github.com/holoplot/go-bmap/pkg/bmap"
```
# Example
For a standalone example of this package, check out the code in [cmd/bmaptool](./cmd/bmaptool/main.go).
```
go run ./cmd/bmaptool/main.go -bmap test/data/input.bmap -input test/data/input.bz2 -output out
diff out test/data/output.bin
```
# License
MIT