Add error check after parseStorageOpt
Signed-off-by: Ken Herner <kherner@progress.com>
This commit is contained in:
parent
e918340431
commit
373654f43e
1 changed files with 3 additions and 0 deletions
|
@ -275,6 +275,9 @@ func (d *Driver) Create(id string, parent string, mountLabel string, storageOpt
|
|||
func (d *Driver) create(id, parent string, storageOpt map[string]string) error {
|
||||
name := d.zfsPath(id)
|
||||
quota, err := parseStorageOpt(storageOpt)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if parent == "" {
|
||||
mountoptions := map[string]string{"mountpoint": "legacy"}
|
||||
fs, err := zfs.CreateFilesystem(name, mountoptions)
|
||||
|
|
Loading…
Reference in a new issue