When formatting an inactive or migratable XML we will need to suppress
backing chain members which were detected from the disk to keep
semantics straight. This means we need to record, whether a
virStorageSource originates from autodetection.
ret->haveTLS = src->haveTLS;
ret->tlsFromConfig = src->tlsFromConfig;
ret->tlsVerify = src->tlsVerify;
+ ret->detected = src->detected;
/* storage driver metadata are not copied */
ret->drv = NULL;
/* copy parent's labelling and other top level stuff */
if (virStorageSourceInitChainElement(ret, parent, true) < 0)
goto error;
+
+ ret->detected = true;
}
return ret;
char *tlsAlias;
char *tlsCertdir;
bool tlsVerify;
+
+ bool detected; /* true if this entry was not provided by the user */
};