projects
/
platform
/
upstream
/
udisks2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50a4df8
)
Make Block:PreferredDevice work for partitions of RAID arrays
author
David Zeuthen
<zeuthen@gmail.com>
Thu, 13 Sep 2012 22:58:40 +0000
(18:58 -0400)
committer
David Zeuthen
<zeuthen@gmail.com>
Thu, 13 Sep 2012 22:58:40 +0000
(18:58 -0400)
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
src/udiskslinuxblock.c
patch
|
blob
|
history
diff --git
a/src/udiskslinuxblock.c
b/src/udiskslinuxblock.c
index
10b20ae
..
5038e78
100644
(file)
--- a/
src/udiskslinuxblock.c
+++ b/
src/udiskslinuxblock.c
@@
-828,7
+828,7
@@
udisks_linux_block_update (UDisksLinuxBlock *block,
md_name_dev_file = g_strdup_printf ("/dev/md/%s", md_name);
for (n = 0; symlinks != NULL && symlinks[n] != NULL; n++)
{
- if (g_str
cmp0 (symlinks[n], md_name_dev_file) == 0
)
+ if (g_str
_has_prefix (symlinks[n], md_name_dev_file)
)
{
md_name_dev_file_as_symlink = symlinks[n];
}