Merge branch 'master' of ssh://brick.kernel.dk/data/git/fio
[fio.git] / diskutil.c
index 3cbd6fc3b04e1d2f7dba60375dcf1c5d65683583..62149d915558713554a40e801bcda7d38b219472 100644 (file)
@@ -9,6 +9,7 @@
 
 #include "fio.h"
 #include "smalloc.h"
+#include "diskutil.h"
 
 static int last_majdev, last_mindev;
 static struct disk_util *last_du;
@@ -220,6 +221,13 @@ static void find_add_disk_slaves(struct thread_data *td, char *path,
                        return;
                }
 
+               /*
+                * See if this maj,min already exists
+                */
+               slavedu = disk_util_exists(majdev, mindev);
+               if (slavedu)
+                       continue;
+
                sprintf(temppath, "%s/%s", slavesdir, slavepath);
                __init_per_file_disk_util(td, majdev, mindev, temppath);
                slavedu = disk_util_exists(majdev, mindev);