Whamcloud - gitweb
LU-9292 utils: handle partitioned MD arrays correctly
[fs/lustre-release.git] / lustre / utils / mount_utils_ldiskfs.c
index 2620238..f8999db 100644 (file)
@@ -1146,7 +1146,7 @@ static int set_blockdev_tunables(char *source, struct mount_opts *mop)
                while (--dev > real_path && isdigit(*dev))
                        *dev = 0;
 
-               if (strncmp(real_path, "/dev/md_", 8) == 0)
+               if (strncmp(real_path, "/dev/md", 7) == 0 && dev[0] == 'p')
                        *dev = 0;
        }