mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-22 23:32:39 +00:00
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:
1 parent
9051607e1e
commit
cc349fb3dd
2 files changed
+7
-2
No files matched your search
@@ -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>
|
2008-07-25 Robert Millan <rmh@aybabtu.com>
|
||||||
|
|
||||||
* util/getroot.c (find_root_device): Skip devices that match
|
* util/getroot.c (find_root_device): Skip devices that match
|
||||||
|
|||||||
+2
-2
@@ -230,8 +230,8 @@ find_root_device (const char *dir, dev_t dev)
|
|||||||
if (S_ISBLK (st.st_mode) && st.st_rdev == dev)
|
if (S_ISBLK (st.st_mode) && st.st_rdev == dev)
|
||||||
{
|
{
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
/* Skip useless device names like /dev/dm-0, which prevent us from
|
/* Skip device names like /dev/dm-0, which are short-hand aliases
|
||||||
finding /dev/mapper/*, /dev/evms/*, /dev/md*, etc. */
|
to more descriptive device names, e.g. those under /dev/mapper */
|
||||||
if (ent->d_name[0] == 'd' &&
|
if (ent->d_name[0] == 'd' &&
|
||||||
ent->d_name[1] == 'm' &&
|
ent->d_name[1] == 'm' &&
|
||||||
ent->d_name[2] == '-' &&
|
ent->d_name[2] == '-' &&
|
||||||
|
|||||||
Reference in new issue
Block a user