From cc349fb3dd8a08cec9014235a9f3beaa37c08fa2 Mon Sep 17 00:00:00 2001 From: proski Date: Sun, 27 Jul 2008 05:57:10 +0000 Subject: [PATCH] 2008-07-27 Pavel Roskin * util/getroot.c (find_root_device): Rephrase a comment to avoid spurious warnings about a comment within a comment. --- ChangeLog | 5 +++++ util/getroot.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 09e2225c4..3e0a6eddf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-07-27 Pavel Roskin + + * util/getroot.c (find_root_device): Rephrase a comment to avoid + spurious warnings about a comment within a comment. + 2008-07-25 Robert Millan * util/getroot.c (find_root_device): Skip devices that match diff --git a/util/getroot.c b/util/getroot.c index 744d5effd..c8d31ede2 100644 --- a/util/getroot.c +++ b/util/getroot.c @@ -230,8 +230,8 @@ find_root_device (const char *dir, dev_t dev) if (S_ISBLK (st.st_mode) && st.st_rdev == dev) { #ifdef __linux__ - /* Skip useless device names like /dev/dm-0, which prevent us from - finding /dev/mapper/*, /dev/evms/*, /dev/md*, etc. */ + /* Skip device names like /dev/dm-0, which are short-hand aliases + to more descriptive device names, e.g. those under /dev/mapper */ if (ent->d_name[0] == 'd' && ent->d_name[1] == 'm' && ent->d_name[2] == '-' &&