]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Add patch to allow afsd to do nothing and exit(0)
authorBenjamin Kaduk <kaduk@mit.edu>
Thu, 23 Oct 2014 21:30:17 +0000 (17:30 -0400)
committerBenjamin Kaduk <kaduk@mit.edu>
Fri, 24 Oct 2014 04:07:53 +0000 (00:07 -0400)
debian/patches/0003-Add-dummy-exit-command-for-afsd-to-do-nothing.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/0003-Add-dummy-exit-command-for-afsd-to-do-nothing.patch b/debian/patches/0003-Add-dummy-exit-command-for-afsd-to-do-nothing.patch
new file mode 100644 (file)
index 0000000..5f1534e
--- /dev/null
@@ -0,0 +1,31 @@
+From: Benjamin Kaduk <kaduk@mit.edu>
+Date: Thu, 23 Oct 2014 17:28:43 -0400
+Subject: Add dummy -exit command for afsd to do nothing
+
+---
+ src/afsd/afsd.c | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/src/afsd/afsd.c b/src/afsd/afsd.c
+index 141dc69..ab8e560 100644
+--- a/src/afsd/afsd.c
++++ b/src/afsd/afsd.c
+@@ -1909,6 +1909,10 @@ mainproc(struct cmd_syndesc *as, void *arock)
+       /* -rxmaxfrags */
+       rxmaxfrags = atoi(as->parms[38].items->data);
+     }
++    if (as->parms[39].items) {
++      /* -exit */
++      exit(0);
++    }
+     /* parse cacheinfo file if this is a diskcache */
+     if (ParseCacheInfoFile()) {
+@@ -2588,6 +2592,7 @@ afsd_init(void)
+     cmd_AddParm(ts, "-rxmaxfrags", CMD_SINGLE, CMD_OPTIONAL,
+                 "Set the maximum number of UDP fragments Rx should send/receive"
+                 " per Rx packet");
++    cmd_AddParm(ts, "-exit", CMD_FLAG, CMD_OPTIONAL, "exit immediately");
+ }
+ int
index 5d00dbe02eb5ccb1d166c5d454315fa1b56bab08..a55c8fbc1d5d972605a15ba15ad1a971a40612c3 100644 (file)
@@ -1,2 +1,3 @@
 0001-userok.c-Fix-fixed-size-on-stack-path-buffers.patch
 0002-Tweak-AFSDIR_PATH_MAX-definition.patch
+0003-Add-dummy-exit-command-for-afsd-to-do-nothing.patch