Skip to contentSkip to conversation

ANNOUNCE: nfs-utils 1.0.11

DISCUSSION Neil Brown 3 participants 4 messages Feb 22, 2007 – Feb 27, 2007

Subsystems (2)
lore
Share & tools
lore

Neil Brown

author
#0 lore raw

I have just made a release of nfs-utils 1.0.11

It can be downloaded from
http://sourceforge.net/project/showfiles.php?group_id=14
or
cc=country.
http://www.{cc}kernel.org/pub/linux/utils/nfs/
or
git://linux-nfs.org/nfs-utils

This should be the last 1.0 release.
I hope to do a 1.1.0 soonish that flips the default for subtree_check to no_subtree_check, and removes "rpc.lockd" which is not needed by any but two very old kernel releases.

There are various bugfixes and improvements. Read through the log at

http://linux-nfs.org/cgi-bin/gitweb.cgi?p=nfs-utils;a=log

for details.

NeilBrown 22-Feb-2007

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#1 lore raw

Hey Neil,

Quoted 2 lines · Neil Brown

I have just made a release of nfs-utils 1.0.11

Unfortunately there are some problems with the
FS-Location patches you used... namely they don't
compile... So attached is the patch that takes
care of the compile problems...

The correction patch came from CITI, with a few tweaks of my own... namely turning the syslog calls in the mountd code to xlog calls..

The commit blob is relative to:
git://git.infradead.org/~steved/nfs-utils.git

steved.

commit b89bca96533c95a4e32c5f47048612acbdb707b0

Author: Fred Isaman <[email protected]>
Date:   Fri Feb 23 13:02:16 2007 -0500

Extend the exportfs/mountd interface to pass fslocations info into the
kernel

Extend the exportfs/mountd interface to pass fslocations info into the kernel using syntax modelled after AIX.

Adds "refer=" and "replicas=" to the options in /etc/exports to enable use of the kernel fslocation code.

support/export/export.c +2 -0
index cfb6681..a4b0788 100644
@@ -240,6 +240,8 @@ export_freeall(void)
 				xfree(exp->m_export.e_sqgids);
 			if (exp->m_export.e_mountpoint)
 				free(exp->m_export.e_mountpoint);
+			if (exp->m_export.e_fslocdata)
+				xfree(exp->m_export.e_fslocdata);
 			xfree(exp);
 		}
 		exportlist[i] = NULL;
support/nfs/exports.c +4 -0
index 31b38c3..294e1c9 100644
@@ -236,9 +236,11 @@ putexportent(struct exportent *ep)
 	case FSLOC_REPLICA:
 		fprintf(fp, "replicas=%s,", ep->e_fslocdata);
 		break;
+#ifdef DEBUG
 	case FSLOC_STUB:
 		fprintf(fp, "fsloc=stub,");
 		break;
+#endif
 	default:
 		xlog(L_ERROR, "unknown fsloc method for %s:%s",
 		     ep->e_hostname, ep->e_path);
@@ -504,6 +506,7 @@ bad_option:
 				ep->e_mountpoint = strdup(mp+1);
 			else
 				ep->e_mountpoint = strdup("");
+#ifdef DEBUG
 		} else if (strncmp(opt, "fsloc=", 6) == 0) {
 			if (strcmp(opt+6, "stub") == 0)
 				ep->e_fslocmethod = FSLOC_STUB;
@@ -512,6 +515,7 @@ bad_option:
 				     flname, flline, opt);
 				goto bad_option;
 			}
+#endif
 		} else if (strncmp(opt, "refer=", 6) == 0) {
 			ep->e_fslocmethod = FSLOC_REFER;
 			ep->e_fslocdata = strdup(opt+6);
utils/exportfs/exportfs.c +2 -0
index 40a6b56..22e13a3 100644
@@ -427,9 +427,11 @@ dump(int verbose)
 			case FSLOC_REPLICA:
 				c = dumpopt(c, "replicas=%s", ep->e_fslocdata);
 				break;
+#ifdef DEBUG
 			case FSLOC_STUB:
 				c = dumpopt(c, "fsloc=stub");
 				break;
+#endif
 			}
 			printf("%c\n", (c != '(')? ')' : ' ');
 		}
utils/exportfs/exports.man +14 -0
index 27a30f9..ab63b03 100644
@@ -348,6 +348,20 @@ If the client asks for alternative locations for the export point, it
 will be given this list of alternatives. (Note that actual replication
 of the filesystem must be handled elsewhere.)
 
+.TP
+.IR refer= path@host[+host][:path@host[+host]]
+A client referencing the export point will be directed to choose from
+the given list an alternative location for the filesystem.
+(Note that the server must have a mountpoint here, though a different
+filesystem is not required; so, for example,
+.IR "mount --bind" " /path /path"
+is sufficient.)
+.TP
+.IR replicas= path@host[+host][:path@host[+host]]
+If the client asks for alternative locations for the export point, it
+will be given this list of alternatives. (Note that actual replication
+of the filesystem must be handled elsewhere.)
+
 .SS User ID Mapping
 .PP
 .I nfsd
utils/mountd/fsloc.c new file +188 -0

188 lines not on this page · raw message

utils/mountd/fsloc.h new file +50 -0

50 lines not on this page · raw message

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#2 lore raw
Quoted 11 lines · Steve Dickson

Hey Neil,

Quoted 2 lines · Neil Brown

I have just made a release of nfs-utils 1.0.11

Unfortunately there are some problems with the FS-Location patches you used... namely they don't compile... So attached is the patch that takes care of the compile problems...

Quoted 8 lines

The correction patch came from CITI, with a few tweaks of my own... namely turning the syslog calls in the mountd code to xlog calls..

The commit blob is relative to:
git://git.infradead.org/~steved/nfs-utils.git

steved.

Yes, I was waiting to figure out why the fslocations stuff isn't working, even with this patch, before sending it. I'll keep looking...

K.C.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

author
#3 lore raw

ANNOUNCE nfs-utils 1.0.12. Was Re: ANNOUNCE: nfs-utils 1.0.11

Quoted 4 lines · On Monday February 26, [email protected] wrote:

Yes, I was waiting to figure out why the fslocations stuff isn't working, even with this patch, before sending it. I'll keep looking...

Thanks Kevin, and thank for the fix you subsequently submitted.

Well, it looks like 1.0.11 was a brown-paper bag release. So I have just released 1.0.12 with those fixes and a couple of others. Now to work on 1.1.0 with Steve's mount.nfs work.

Thanks,
NeilBrown

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs