X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=utils%2Fmountd%2Fmountd.c;h=08f294d95ac71488d2ec2b71ecb1db43670d8559;hb=4a6502c0b61c0f5295706bee10728735f31139dd;hp=e151fa2246eee9c390a0aee88996be0a3b85b808;hpb=9e1aa7b9a04776bd43eb75bef50a53f41e17b813;p=nfs-utils.git diff --git a/utils/mountd/mountd.c b/utils/mountd/mountd.c index e151fa2..08f294d 100644 --- a/utils/mountd/mountd.c +++ b/utils/mountd/mountd.c @@ -37,6 +37,7 @@ static void usage(const char *, int exitcode); static exports get_exportlist(void); static struct nfs_fh_len *get_rootfh(struct svc_req *, dirpath *, mountstat3 *, int v3); +int reverse_resolve = 0; int new_cache = 0; /* PRC: a high-availability callout program can be specified with -H @@ -66,6 +67,7 @@ static struct option longopts[] = { "ha-callout", 1, 0, 'H' }, { "state-directory-path", 1, 0, 's' }, { "num-threads", 1, 0, 't' }, + { "reverse-lookup", 0, 0, 'r' }, { NULL, 0, 0, 0 } }; @@ -557,7 +559,7 @@ main(int argc, char **argv) /* Parse the command line options and arguments. */ opterr = 0; - while ((c = getopt_long(argc, argv, "o:nFd:f:p:P:hH:N:V:vs:t:", longopts, NULL)) != EOF) + while ((c = getopt_long(argc, argv, "o:nFd:f:p:P:hH:N:V:vrs:t:", longopts, NULL)) != EOF) switch (c) { case 'o': descriptors = atoi(optarg); @@ -597,6 +599,9 @@ main(int argc, char **argv) case 'n': _rpcfdtype = SOCK_DGRAM; break; + case 'r': + reverse_resolve = 1; + break; case 's': if ((state_dir = xstrdup(optarg)) == NULL) { fprintf(stderr, "%s: xstrdup(%s) failed!\n",