Rename dos33 to dos3

This commit is contained in:
Zellyn Hunter 2016-11-16 21:42:18 -05:00
parent e9f2791676
commit 9991af82bc
6 changed files with 11 additions and 10 deletions

View File

@ -8,7 +8,7 @@ import (
"github.com/spf13/cobra"
"github.com/zellyn/diskii/lib/disk"
_ "github.com/zellyn/diskii/lib/dos33"
_ "github.com/zellyn/diskii/lib/dos3"
_ "github.com/zellyn/diskii/lib/supermon"
)

View File

@ -8,7 +8,7 @@ import (
"github.com/spf13/cobra"
"github.com/zellyn/diskii/lib/disk"
_ "github.com/zellyn/diskii/lib/dos33"
_ "github.com/zellyn/diskii/lib/dos3"
_ "github.com/zellyn/diskii/lib/supermon"
)

View File

@ -1,7 +1,8 @@
// Copyright © 2016 Zellyn Hunter <zellyn@gmail.com>
// Package dos33 contains routines for working with the on-disk structures of DOS 3.3.
package dos33
// Package dos3 contains routines for working with the on-disk
// structures of Apple DOS 3.
package dos3
import (
"encoding/binary"
@ -465,8 +466,8 @@ type operator struct {
var _ disk.Operator = operator{}
// operatorName is the keyword name for the operator that undestands
// dos33 disks.
const operatorName = "dos33"
// dos3 disks.
const operatorName = "dos3"
// Name returns the name of the operator.
func (o operator) Name() string {
@ -504,7 +505,7 @@ func (o operator) GetFile(filename string) (disk.FileInfo, error) {
return disk.FileInfo{}, fmt.Errorf("%s does not yet implement `GetFile`", operatorName)
}
// operatorFactory is the factory that returns dos33 operators given
// operatorFactory is the factory that returns dos3 operators given
// disk images.
func operatorFactory(sd disk.SectorDisk) (disk.Operator, error) {
lsd, err := disk.NewMappedDisk(sd, disk.Dos33LogicalToPhysicalSectorMap)

View File

@ -1,4 +1,4 @@
package dos33
package dos3
import (
"crypto/rand"

View File

@ -325,8 +325,8 @@ func (o operator) GetFile(filename string) (disk.FileInfo, error) {
}, nil
}
// operatorFactory is the factory that returns dos33 operators given
// disk images.
// operatorFactory is the factory that returns supermon operators
// given disk images.
func operatorFactory(sd disk.SectorDisk) (disk.Operator, error) {
sm, err := LoadSectorMap(sd)
if err != nil {