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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue