pkg/qcow2/qcow2.go
Method Writer.init
has 6 return statements (exceeds 4 allowed). Open
Open
func (w *Writer) init() error {
w.clusterSize = 0x10000
w.sectorsPerCluster = w.clusterSize / SectorSize
Method Writer.writeL1Table
has 5 return statements (exceeds 4 allowed). Open
Open
func (w *Writer) writeL1Table() error {
l2Capacity := w.clusterSize * (w.clusterSize / 8)
buf := new(bytes.Buffer)
TODO found Open
Open
L1Size: uint32(w.l2Blocks), // TODO: should this be divided by 8? (bytes per entry)
- Exclude checks
TODO found Open
Open
// TODO: check not writing into a forbidden cluster
- Exclude checks
exported type HolePredictor should have comment or be unexported Open
Open
type HolePredictor interface {
- Exclude checks
exported type Header should have comment or be unexported Open
Open
type Header struct {
- Exclude checks
exported const SectorSize should have comment (or a comment on this block) or be unexported Open
Open
SectorSize = 0x200
- Exclude checks
exported type Writer should have comment or be unexported Open
Open
type Writer struct {
- Exclude checks
exported method Writer.Seek should have comment or be unexported Open
Open
func (w *Writer) Seek(offset int64, whence int) (int64, error) {
- Exclude checks
exported function NewWriter should have comment or be unexported Open
Open
func NewWriter(w io.WriteSeeker, h HolePredictor) (*Writer, error) {
- Exclude checks
exported method Writer.Close should have comment or be unexported Open
Open
func (w *Writer) Close() error {
- Exclude checks