|
|
306fa1 |
autofs-5.1.2 - add the mount requestor's pid to pending_args
|
|
|
306fa1 |
|
|
|
306fa1 |
From: Lars R. Damerow <lars@pixar.com>
|
|
|
306fa1 |
|
|
|
306fa1 |
This will make it easier to log more information about the requesting
|
|
|
306fa1 |
process as the mount request proceeds.
|
|
|
306fa1 |
|
|
|
306fa1 |
Signed-off-by: Lars R. Damerow <lars@pixar.com>
|
|
|
306fa1 |
Signed-off-by: Ian Kent <raven@themaw.net>
|
|
|
306fa1 |
---
|
|
|
306fa1 |
CHANGELOG | 1 +
|
|
|
306fa1 |
daemon/direct.c | 1 +
|
|
|
306fa1 |
daemon/indirect.c | 1 +
|
|
|
306fa1 |
include/automount.h | 1 +
|
|
|
306fa1 |
4 files changed, 4 insertions(+)
|
|
|
306fa1 |
|
|
|
306fa1 |
--- autofs-5.0.7.orig/CHANGELOG
|
|
|
306fa1 |
+++ autofs-5.0.7/CHANGELOG
|
|
|
306fa1 |
@@ -235,6 +235,7 @@
|
|
|
306fa1 |
- handle amd cache option all in amd type auto mounts.
|
|
|
306fa1 |
- fix bogus check in expire_cleanup().
|
|
|
306fa1 |
- delay submount exit for amd submounts.
|
|
|
306fa1 |
+- add the mount requestor's pid to pending_args.
|
|
|
306fa1 |
|
|
|
306fa1 |
25/07/2012 autofs-5.0.7
|
|
|
306fa1 |
=======================
|
|
|
306fa1 |
--- autofs-5.0.7.orig/daemon/direct.c
|
|
|
306fa1 |
+++ autofs-5.0.7/daemon/direct.c
|
|
|
306fa1 |
@@ -1465,6 +1465,7 @@ int handle_packet_missing_direct(struct
|
|
|
306fa1 |
mt->type = NFY_MOUNT;
|
|
|
306fa1 |
mt->uid = pkt->uid;
|
|
|
306fa1 |
mt->gid = pkt->gid;
|
|
|
306fa1 |
+ mt->pid = pkt->pid;
|
|
|
306fa1 |
mt->wait_queue_token = pkt->wait_queue_token;
|
|
|
306fa1 |
|
|
|
306fa1 |
status = pthread_create(&thid, &th_attr_detached, do_mount_direct, mt);
|
|
|
306fa1 |
--- autofs-5.0.7.orig/daemon/indirect.c
|
|
|
306fa1 |
+++ autofs-5.0.7/daemon/indirect.c
|
|
|
306fa1 |
@@ -860,6 +860,7 @@ int handle_packet_missing_indirect(struc
|
|
|
306fa1 |
mt->dev = pkt->dev;
|
|
|
306fa1 |
mt->uid = pkt->uid;
|
|
|
306fa1 |
mt->gid = pkt->gid;
|
|
|
306fa1 |
+ mt->pid = pkt->pid;
|
|
|
306fa1 |
mt->wait_queue_token = pkt->wait_queue_token;
|
|
|
306fa1 |
|
|
|
306fa1 |
status = pthread_create(&thid, &th_attr_detached, do_mount_indirect, mt);
|
|
|
306fa1 |
--- autofs-5.0.7.orig/include/automount.h
|
|
|
306fa1 |
+++ autofs-5.0.7/include/automount.h
|
|
|
306fa1 |
@@ -425,6 +425,7 @@ struct pending_args {
|
|
|
306fa1 |
unsigned int len; /* Name field len */
|
|
|
306fa1 |
uid_t uid; /* uid of requestor */
|
|
|
306fa1 |
gid_t gid; /* gid of requestor */
|
|
|
306fa1 |
+ pid_t pid; /* pid of requestor */
|
|
|
306fa1 |
unsigned long wait_queue_token; /* Associated kernel wait token */
|
|
|
306fa1 |
};
|
|
|
306fa1 |
|