+ qdisk = quote_string(diskp->name);
+ indexdir = vstralloc(conf_indexdir, "/",
+ host, "/",
+ disk, "/",
+ NULL);
+ qindexdir = quote_string(indexdir);
+
+ /* find all dles that use the same indexdir */
+ for (dp = diskl.head; dp != NULL; dp = dp->next) {
+ char *dp_host, *dp_disk;
+
+ dp_host = sanitise_filename(dp->host->hostname);
+ dp_disk = sanitise_filename(dp->name);
+ if (strcmp(host, dp_host) == 0 &&
+ strcmp(disk, dp_disk) == 0) {
+ matching_dp = g_slist_append(matching_dp, dp);
+ }
+ amfree(dp_host);
+ amfree(dp_disk);
+ }
+
+ dbprintf("%s %s -> %s\n", diskp->host->hostname,
+ qdisk, qindexdir);