Minor touchups
This commit is contained in:
parent
42ed31b127
commit
ab519c54dc
10 changed files with 15 additions and 14 deletions
|
|
@ -158,7 +158,7 @@ func (fm *FileManager) Mount(devName string, mo MountOptions) error {
|
|||
return fmt.Errorf("device name is empty")
|
||||
}
|
||||
|
||||
// It does allow mapper/ prefix for mapped devices.
|
||||
// It does allow "mapper/" prefix for mapped devices.
|
||||
// This is to enable the support for LVM and LUKS.
|
||||
if !utils.ValidateDevName(devName) {
|
||||
return fmt.Errorf("bad device name")
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ type PortForwardingRule struct {
|
|||
VMPort uint16
|
||||
}
|
||||
|
||||
func ParsePortForwardString(s string) (PortForwardingRule, error) {
|
||||
func ParsePortForwardingRuleString(s string) (PortForwardingRule, error) {
|
||||
split := strings.Split(s, ":")
|
||||
switch len(split) {
|
||||
case 2:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue