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:
f0d6c97
)
Use /dev/mapper/vg-FOO-lv-BAR instead of /dev/dm-0 as PreferredDevice for LVM2
author
David Zeuthen
<davidz@redhat.com>
Mon, 14 Mar 2011 10:44:07 +0000
(06:44 -0400)
committer
David Zeuthen
<davidz@redhat.com>
Mon, 14 Mar 2011 10:44:07 +0000
(06:44 -0400)
Signed-off-by: David Zeuthen <davidz@redhat.com>
src/udiskslinuxblock.c
patch
|
blob
|
history
diff --git
a/src/udiskslinuxblock.c
b/src/udiskslinuxblock.c
index
1eaaa3d
..
a4d6591
100644
(file)
--- a/
src/udiskslinuxblock.c
+++ b/
src/udiskslinuxblock.c
@@
-619,6
+619,13
@@
block_device_update (UDisksLinuxBlock *block,
{
if (g_str_has_prefix (symlinks[n], "/dev/mapper/mpath"))
{
+ /* multipath */
+ preferred_device_file = symlinks[n];
+ break;
+ }
+ else if (g_str_has_prefix (symlinks[n], "/dev/mapper/vg_"))
+ {
+ /* LVM2 */
preferred_device_file = symlinks[n];
break;
}