-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathblock.go
More file actions
33 lines (26 loc) · 699 Bytes
/
block.go
File metadata and controls
33 lines (26 loc) · 699 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Copyright 2016 The go-qcow2 Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//
// QCow2 image format specifications is under the QEMU license.
package qcow2
import (
"bytes"
"os"
)
// BlockOption represents a block options.
type BlockOption struct {
Driver BlockDriver
}
// BlockBackend represents a backend of the QCow2 image format block driver.
type BlockBackend struct {
File *os.File
Header Header
allowBeyondEOF bool
BlockDriverState *BlockDriverState
buf bytes.Buffer
Error error
}
func (blk *BlockBackend) bs() *BlockDriverState {
return blk.BlockDriverState
}