Add error check after parseStorageOpt
Signed-off-by: Ken Herner <kherner@progress.com> Upstream-commit: 373654f43e87a2e0bd5388ca4ab1852fd51a7199 Component: engine
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user