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:
1e6ee09
)
Don't assign the Loop D-Bus interface to partitions of a loop device
author
David Zeuthen
<davidz@redhat.com>
Tue, 1 May 2012 22:01:34 +0000
(18:01 -0400)
committer
David Zeuthen
<davidz@redhat.com>
Tue, 1 May 2012 22:01:34 +0000
(18:01 -0400)
Signed-off-by: David Zeuthen <davidz@redhat.com>
src/udiskslinuxblockobject.c
patch
|
blob
|
history
diff --git
a/src/udiskslinuxblockobject.c
b/src/udiskslinuxblockobject.c
index
5d05d84
..
1de71d1
100644
(file)
--- a/
src/udiskslinuxblockobject.c
+++ b/
src/udiskslinuxblockobject.c
@@
-691,7
+691,8
@@
loop_check (UDisksLinuxBlockObject *object)
gboolean ret;
ret = FALSE;
- if (g_str_has_prefix (g_udev_device_get_name (object->device), "loop"))
+ if (g_str_has_prefix (g_udev_device_get_name (object->device), "loop") &&
+ g_strcmp0 (g_udev_device_get_devtype (object->device), "disk") == 0)
ret = TRUE;
return ret;