nbd icon indicating copy to clipboard operation
nbd copied to clipboard

There is no way to declare a preferred block size for Loopback

Open Merovius opened this issue 6 years ago • 0 comments

The convenience function nbd.Loopback does not yet allow to pass in a preferred block size. It would make sense to allow that - an *os.File backend for example, could derive that from syscall.Stat_t.Blksize. This should either be part of the Device interface, an extra parameter, or a separate struct with options passed to Loopback.

Merovius avatar Nov 19 '18 22:11 Merovius