go-losetup icon indicating copy to clipboard operation
go-losetup copied to clipboard

A losetup implementation for go-lang

Results 5 go-losetup issues
Sort by recently updated
recently updated
newest added

Signed-off-by: Leslie Qi Wang Close https://github.com/freddierice/go-losetup/issues/7

Thanks for the great package! I use the example program to attach one device, but seems like unable to mount it. Can you help with it? ``` # losetup NAME...

See https://lkml.org/lkml/2021/6/15/185, w/ the upstream util-linux maintainer agreeing to do likewise for the command-line `losetup` tool. This error can also happen while changing the block size. It's not unreasonable to...

Because every error we currently return is generated by `fmt.Errorf()`, they can't be programatically checked except with string matching to determine the underlying failure. As of Go 1.13, `fmt.Errorf()` added...

This PR allows the ability for the `Info` struct to be configured by the caller and pass any additional bits on info to the `setInfo` method