+nfs-utils (1:1.0.7-8) unstable; urgency=low
+
+ * Don't complain about missing sync/async for a read-only export.
+ (Closes: #265409)
+ * Implement --state-directory-path for rpc.mountd; most code borrowed
+ from rpc.statd. (Closes: #352387)
+ * Update mountd.man accordingly.
+
+ -- Steinar H. Gunderson <sesse@debian.org> Wed, 5 Apr 2006 22:54:09 +0200
+
nfs-utils (1:1.0.7-7) unstable; urgency=high
* urgency=high, fixes an RC bug.
ep->e_nsqgids = nsqgids;
out:
- if (warn && !had_sync_opt)
+ if (warn && !had_sync_opt && !(ep->e_flags & NFSEXP_READONLY))
xlog(L_WARNING, "%s [%d]: No 'sync' or 'async' option specified for export \"%s:%s\".\n"
" Assuming default behaviour ('sync').\n"
" NOTE: this default has changed from previous versions\n",
{ "port", 1, 0, 'p' },
{ "no-tcp", 0, 0, 'n' },
{ "ha-callout", 1, 0, 'H' },
+ { "state-directory-path", 1, 0, 's' },
{ NULL, 0, 0, 0 }
};
main(int argc, char **argv)
{
char *export_file = _PATH_EXPORTS;
+ char *state_dir = NFS_STATEDIR;
int foreground = 0;
int port = 0;
int descriptors = 0;
case 'n':
_rpcfdtype = SOCK_DGRAM;
break;
+ case 's':
+ if ((state_dir = xstrdup(optarg)) == NULL) {
+ fprintf(stderr, "%s: xstrdup(%s) failed!\n",
+ argv[0], optarg);
+ exit(1);
+ }
+ break;
case 'V':
nfs_version |= 1 << (atoi (optarg) - 1);
break;
if (optind != argc || !(nfs_version & 0x7))
usage(argv [0], 1);
- if (chdir(NFS_STATEDIR)) {
+ if (chdir(state_dir)) {
fprintf(stderr, "%s: chdir(%s) failed: %s\n",
- argv [0], NFS_STATEDIR, strerror(errno));
+ argv [0], state_dir, strerror(errno));
exit(1);
}
" [-o num|--descriptors num] [-f exports-file|--exports-file=file]\n"
" [-p|--port port] [-V version|--nfs-version version]\n"
" [-N version|--no-nfs-version version] [-n|--no-tcp]\n"
-" [-H ha-callout-prog]\n", prog);
+" [-H ha-callout-prog] [-s|--state-directory-path path]\n", prog);
exit(n);
}
The last is the number of concurrent mounts that we believe the client
has of that path.
.TP
+.BI "\-P," "" " \-\-state\-directory\-path " directory
+specify a directory in which to place statd state information.
+If this option is not specified the default of
+.BR /var/lib/nfs
+is used. (This is a Debian-specific extension.)
+.TP
.B \-V " or " \-\-nfs-version
This option can be used to request that
.B rpc.mountd