Test if 'fid' creation failed and report stack trace,
break the loop and do not pass NULL fid further.
Version 2.02.99 -
===================================
+ Add check for created fid in _scan_file.
Log output also to syslog when abort_on_internal_error is set.
Add LV snapshot support to liblvm and python-lvm.
Avoid a global lock in pvs when lvmetad is in use.
/* FIXME: Check this fid is OK! */
fic.type = FMT_INSTANCE_PRIVATE_MDAS;
fic.context.private = NULL;
- fid = _text_create_text_instance(fmt, &fic);
+ if (!(fid = _text_create_text_instance(fmt, &fic))) {
+ stack;
+ break;
+ }
if ((vg = _vg_read_file_name(fid, scanned_vgname,
path))) {
/* FIXME Store creation host in vg */