2008-07-27 Pavel Roskin <proski@gnu.org>
* util/getroot.c (find_root_device): Rephrase a comment to avoid spurious warnings about a comment within a comment.
This commit is contained in:
parent
9051607e1e
commit
cc349fb3dd
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2008-07-27 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* util/getroot.c (find_root_device): Rephrase a comment to avoid
|
||||
spurious warnings about a comment within a comment.
|
||||
|
||||
2008-07-25 Robert Millan <rmh@aybabtu.com>
|
||||
|
||||
* util/getroot.c (find_root_device): Skip devices that match
|
||||
|
|
|
@ -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] == '-' &&
|
||||
|
|
Loading…
Reference in a new issue