Skip to content

Commit 37ed194

Browse files
authored
Merge pull request #12 from AkihiroSuda/dev
Fix misleading comments
2 parents 22439be + fb6bcc2 commit 37ed194

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

image/qcow2/qcow2.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -796,8 +796,8 @@ func (img *Qcow2) readAtAlignedStandard(p []byte, off int64, desc standardCluste
796796
//
797797
// TODO: read multiple subclusters at once
798798
//
799-
// clusterNo = LBA / clusterSize
800-
// subclusterNo = (LBA % clusterSize) / subclusterSize
799+
// clusterNo = offset / clusterSize
800+
// subclusterNo = (offset % clusterSize) / subclusterSize
801801
func (img *Qcow2) readAtAlignedStandardExtendedL2(p []byte, off int64, desc standardClusterDescriptor, extL2Entry extendedL2TableEntry) (int, error) {
802802
var n int
803803
subclusterSize := img.clusterSize / 32

0 commit comments

Comments
 (0)