9 #include <linux/module.h>
13 #include <linux/slab.h>
20 #define NFS_CACHE_UPCALL_PATHLEN 256
21 #define NFS_CACHE_UPCALL_TIMEOUT 15
24 "/sbin/nfs_cache_getent";
28 sizeof(nfs_cache_getent_prog), 0600);
32 "the cache upcall is assumed to have failed");
36 static char *envp[] = {
"HOME=/",
38 "PATH=/sbin:/usr/sbin:/bin:/usr/bin",
42 nfs_cache_getent_prog,
49 if (nfs_cache_getent_prog[0] ==
'\0')
51 ret = call_usermodehelper(argv[0], argv, envp,
UMH_WAIT_EXEC);
59 nfs_cache_getent_prog[0] =
'\0';
61 return ret > 0 ? 0 :
ret;
102 dreq->
req.defer = nfs_dns_cache_defer;
110 nfs_cache_getent_timeout *
HZ) == 0)