chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
c858849
)
automount: show who's triggering an automount
author
Lennart Poettering
<lennart@poettering.net>
Thu, 28 Oct 2010 20:20:01 +0000
(22:20 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 28 Oct 2010 20:20:01 +0000
(22:20 +0200)
src/automount.c
patch
|
blob
|
history
diff --git
a/src/automount.c
b/src/automount.c
index c557b6ebb212050066461b455d6abda0ccfeb75e..da66630fd6b083bc2e1bc769ffdce0b6ec8b1926 100644
(file)
--- a/
src/automount.c
+++ b/
src/automount.c
@@
-760,7
+760,16
@@
static void automount_fd_event(Unit *u, int fd, uint32_t events, Watch *w) {
switch (packet.hdr.type) {
case autofs_ptype_missing_direct:
switch (packet.hdr.type) {
case autofs_ptype_missing_direct:
- log_debug("Got direct mount request for %s", packet.v5_packet.name);
+
+ if (packet.v5_packet.pid > 0) {
+ char *p = NULL;
+
+ get_process_name(packet.v5_packet.pid, &p);
+ log_debug("Got direct mount request for %s, triggered by %lu (%s)", packet.v5_packet.name, (unsigned long) packet.v5_packet.pid, strna(p));
+ free(p);
+
+ } else
+ log_debug("Got direct mount request for %s", packet.v5_packet.name);
if (!a->tokens)
if (!(a->tokens = set_new(trivial_hash_func, trivial_compare_func))) {
if (!a->tokens)
if (!(a->tokens = set_new(trivial_hash_func, trivial_compare_func))) {