Blame SOURCES/autofs-5.1.2-add-the-mount-requestor-s-pid-to-pending_args.patch

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