Skip to content

Commit

Permalink
Merge pull request #16642 from vdemeester/remove-question-make-in-pkg…
Browse files Browse the repository at this point in the history
…-devicemapper

Remove "(?)" from comments in pkg/devicemapper
  • Loading branch information
cpuguy83 committed Sep 30, 2015
2 parents c300978 + 1dcb7d9 commit 31b882e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions pkg/devicemapper/devmapper.go
Expand Up @@ -109,7 +109,7 @@ type (
}
// TaskType represents a type of task
TaskType int
// AddNodeType represents a type of node to be added (?)
// AddNodeType represents a type of node to be added
AddNodeType int
)

Expand Down Expand Up @@ -309,7 +309,7 @@ func FindLoopDeviceFor(file *os.File) *os.File {
return nil
}

// UdevWait wakes any processes that are waiting for udev to complete the specified cookie. (?)
// UdevWait waits for any processes that are waiting for udev to complete the specified cookie.
func UdevWait(cookie *uint) error {
if res := DmUdevWait(*cookie); res != 1 {
logrus.Debugf("Failed to wait on udev cookie %d", *cookie)
Expand All @@ -318,7 +318,7 @@ func UdevWait(cookie *uint) error {
return nil
}

// LogInitVerbose is an interface to initialize the verbose logger for the device mapper library. (?)
// LogInitVerbose is an interface to initialize the verbose logger for the device mapper library.
func LogInitVerbose(level int) {
DmLogInitVerbose(level)
}
Expand Down Expand Up @@ -706,7 +706,7 @@ func ResumeDevice(name string) error {
return nil
}

// CreateDevice creates a device with the specified poolName with the specified device id. (?)
// CreateDevice creates a device with the specified poolName with the specified device id.
func CreateDevice(poolName string, deviceID int) error {
logrus.Debugf("[devmapper] CreateDevice(poolName=%v, deviceID=%v)", poolName, deviceID)
task, err := TaskCreateNamed(deviceTargetMsg, poolName)
Expand Down Expand Up @@ -735,7 +735,7 @@ func CreateDevice(poolName string, deviceID int) error {
return nil
}

// DeleteDevice deletes a device with the specified poolName with the specified device id. (?)
// DeleteDevice deletes a device with the specified poolName with the specified device id.
func DeleteDevice(poolName string, deviceID int) error {
task, err := TaskCreateNamed(deviceTargetMsg, poolName)
if task == nil {
Expand Down Expand Up @@ -763,7 +763,7 @@ func ActivateDevice(poolName string, name string, deviceID int, size uint64) err
}

// ActivateDeviceWithExternal activates the device identified by the specified
// poolName, name and deviceID with the specified size. (?)
// poolName, name and deviceID with the specified size.
func ActivateDeviceWithExternal(poolName string, name string, deviceID int, size uint64, external string) error {
return activateDevice(poolName, name, deviceID, size, external)
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/devicemapper/devmapper_log.go
Expand Up @@ -11,7 +11,7 @@ import (
// Due to the way cgo works this has to be in a separate file, as devmapper.go has
// definitions in the cgo block, which is incompatible with using "//export"

// DevmapperLogCallback exports the devmapper log callback for cgo. (?)
// DevmapperLogCallback exports the devmapper log callback for cgo.
//export DevmapperLogCallback
func DevmapperLogCallback(level C.int, file *C.char, line C.int, dmErrnoOrClass C.int, message *C.char) {
msg := C.GoString(message)
Expand Down
4 changes: 2 additions & 2 deletions pkg/devicemapper/devmapper_wrapper.go
Expand Up @@ -77,7 +77,7 @@ const (
LoopSetCapacity = C.LOOP_SET_CAPACITY
)

// LOOP consts. (?)
// LOOP consts.
const (
LoFlagsAutoClear = C.LO_FLAGS_AUTOCLEAR
LoFlagsReadOnly = C.LO_FLAGS_READ_ONLY
Expand All @@ -86,7 +86,7 @@ const (
LoNameSize = C.LO_NAME_SIZE
)

// DeviceMapper Udev consts. (?)
// Devicemapper cookie flags.
const (
DmUdevDisableSubsystemRulesFlag = C.DM_UDEV_DISABLE_SUBSYSTEM_RULES_FLAG
DmUdevDisableDiskRulesFlag = C.DM_UDEV_DISABLE_DISK_RULES_FLAG
Expand Down

0 comments on commit 31b882e

Please sign in to comment.