Skip to content

Commit

Permalink
Merge pull request #12 from AkihiroSuda/dev
Browse files Browse the repository at this point in the history
Fix misleading comments
  • Loading branch information
AkihiroSuda authored May 22, 2023
2 parents 22439be + fb6bcc2 commit 37ed194
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions image/qcow2/qcow2.go
Original file line number Diff line number Diff line change
Expand Up @@ -796,8 +796,8 @@ func (img *Qcow2) readAtAlignedStandard(p []byte, off int64, desc standardCluste
//
// TODO: read multiple subclusters at once
//
// clusterNo = LBA / clusterSize
// subclusterNo = (LBA % clusterSize) / subclusterSize
// clusterNo = offset / clusterSize
// subclusterNo = (offset % clusterSize) / subclusterSize
func (img *Qcow2) readAtAlignedStandardExtendedL2(p []byte, off int64, desc standardClusterDescriptor, extL2Entry extendedL2TableEntry) (int, error) {
var n int
subclusterSize := img.clusterSize / 32
Expand Down

0 comments on commit 37ed194

Please sign in to comment.