mirror of
https://github.com/zellyn/diskii.git
synced 2025-01-02 23:30:36 +00:00
Rename dos33 to dos3
This commit is contained in:
parent
e9f2791676
commit
9991af82bc
@ -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"
|
||||
)
|
||||
|
||||
|
@ -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"
|
||||
)
|
||||
|
||||
|
@ -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)
|
@ -1,4 +1,4 @@
|
||||
package dos33
|
||||
package dos3
|
||||
|
||||
import (
|
||||
"crypto/rand"
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user