Skip to content

threez/go-sparsebundle

Repository files navigation

go-sparsebundle Go Reference

Direct access to the sparse bundle format using golang using cgo.

This library is a wrapper on top of the already existing

https://github.com/gyf304/sparsebundle-fuse due to that the software is GPLv2.

How to use

bbundle, err := Open("./tests/test.sparsebundle", 16)
if err != nil {
    panic(err)
}
defer b.Close()

// bundle implements:
// * io.ReadWriteSeeker
// * io.ReaderAt
// * io.WriterAt
// * io.Closer

Test

There are a few test files

  • tests/empty.sparsebundle an almost empty file with only 10 bytes written
  • tests/FAT10.sparsebundle a 10 MB GPT FAT file
  • tests/test.sparsebundle an encrypted sparse bundle with a single file in it

About

direct access to the sparse bundle format using golang

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors