old_suppress = log_suppress(1);
- /* FIXME Detect case of both merging_store and cow_store supplied */
- if ((cow_name = find_config_str(sn, "merging_store", NULL)))
+ if ((cow_name = find_config_str(sn, "merging_store", NULL))) {
+ if (find_config_str(sn, "cow_store", NULL)) {
+ log_suppress(old_suppress);
+ log_error("Both snapshot cow and merging storage were specified.");
+ return 0;
+ }
merge = 1;
+ }
else if (!(cow_name = find_config_str(sn, "cow_store", NULL))) {
log_suppress(old_suppress);
log_error("Snapshot cow storage not specified.");