projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48894cd
)
device: never act on mount events for devices if device support is not available
author
Lennart Poettering
<lennart@poettering.net>
Thu, 21 May 2015 18:43:21 +0000
(20:43 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 21 May 2015 18:49:24 +0000
(20:49 +0200)
src/core/device.c
patch
|
blob
|
history
diff --git
a/src/core/device.c
b/src/core/device.c
index
c784cab
..
e7efcf0
100644
(file)
--- a/
src/core/device.c
+++ b/
src/core/device.c
@@
-771,6
+771,9
@@
int device_found_node(Manager *m, const char *node, bool add, DeviceFound found,
assert(m);
assert(node);
+ if (!device_supported())
+ return 0;
+
/* This is called whenever we find a device referenced in
* /proc/swaps or /proc/self/mounts. Such a device might be
* mounted/enabled at a time where udev has not finished