1 From: Benjamin Kaduk <kaduk@mit.edu>
2 Date: Thu, 23 Oct 2014 17:28:43 -0400
3 Subject: Add dummy -exit command for afsd to do nothing
6 src/afsd/afsd.c | 6 ++++++
7 1 file changed, 6 insertions(+)
9 diff --git a/src/afsd/afsd.c b/src/afsd/afsd.c
10 index 2f0478d..a667719 100644
13 @@ -1919,6 +1919,11 @@ mainproc(struct cmd_syndesc *as, void *arock)
14 inumcalc = strdup(as->parms[39].items->data);
17 + if (as->parms[40].items) {
22 /* parse cacheinfo file if this is a diskcache */
23 if (ParseCacheInfoFile()) {
25 @@ -2629,6 +2634,7 @@ afsd_init(void)
27 cmd_AddParm(ts, "-inumcalc", CMD_SINGLE, CMD_OPTIONAL,
28 "Set inode number calculation method");
29 + cmd_AddParm(ts, "-exit", CMD_FLAG, CMD_OPTIONAL, "exit immediately");