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

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