daemon: Add comment explaining why we remove 'p' character.

No code change, just a comment.

Updates commit 6fd2ddb350.
This commit is contained in:
Richard W.M. Jones
2017-01-19 12:06:25 +00:00
parent 5b02e7e6df
commit 1aefcbcc9b

View File

@@ -215,6 +215,7 @@ do_part_to_dev (const char *part)
return NULL;
}
/* Deal with <device>p<N> partition names such as /dev/md0p1. */
if (part[n-1] == 'p')
n--;