Skip to contentSkip to conversation

regression with rmtab handling in newer nfs-utils code

PATCH In review Jeff Layton 3 participants 4 messages Aug 6, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

I just noticed that there seems to have been a regression with how the rmtab is handled in the latest nfs-utils code. It seems to have gone back to adding extra lines to the rmtab that contain the comma-delimited domain string.

At first glance, it looks like the extra mountlist_add calls that went in with the patch below are the culprit (though this code seems to have changed a few times since then). I don't think there's any need to have cache_export_ent or nfsd_fh call mountlist_add.

Can these calls just be removed, or am I missing something?

commit dbfcba5b03481d49f3e78946fe8fd066e2025545

Author: Kevin Coffman <[email protected]>
Date:   Thu Feb 8 17:27:45 2007 -0500

Remove duplicated code.

Remove duplicated code.

Signature · 10 lines
Jeff Layton <[email protected]>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
NFS maillist  -  [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
#1 lore raw
Quoted 16 lines · Jeff Layton

I just noticed that there seems to have been a regression with how the rmtab is handled in the latest nfs-utils code. It seems to have gone back to adding extra lines to the rmtab that contain the comma-delimited domain string.

At first glance, it looks like the extra mountlist_add calls that went in with the patch below are the culprit (though this code seems to have changed a few times since then). I don't think there's any need to have cache_export_ent or nfsd_fh call mountlist_add.

Can these calls just be removed, or am I missing something?

commit dbfcba5b03481d49f3e78946fe8fd066e2025545

Author: Kevin Coffman <[email protected]>
Date:   Thu Feb 8 17:27:45 2007 -0500
Quoted 8 lines

Remove duplicated code.

Remove duplicated code.

Sorry. I assume this is my fault while "fixing" conflicts before submitting these patches to Neil.

K.C.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#2 lore raw

PATCH 1/1 fix regression with rmtab handling in newer nfs-utils code

Quoted 22 lines · On Mon, 6 Aug 2007 18:01:27 -0400 "Kevin Coffman" <[email protected]> wrote:
Quoted 21 lines · Jeff Layton

I just noticed that there seems to have been a regression with how the rmtab is handled in the latest nfs-utils code. It seems to have gone back to adding extra lines to the rmtab that contain the comma-delimited domain string.

At first glance, it looks like the extra mountlist_add calls that went in with the patch below are the culprit (though this code seems to have changed a few times since then). I don't think there's any need to have cache_export_ent or nfsd_fh call mountlist_add.

Can these calls just be removed, or am I missing something?

commit dbfcba5b03481d49f3e78946fe8fd066e2025545

Author: Kevin Coffman <[email protected]>
Date:   Thu Feb 8 17:27:45 2007 -0500

Remove duplicated code.

Quoted 8 lines
Quoted 3 lines

Remove duplicated code.

Sorry. I assume this is my fault while "fixing" conflicts before submitting these patches to Neil.

K.C.

No problem. I just wanted to make sure I wasn't missing something. I think this patch against the current git tree should fix it:

utils/mountd/cache.c +1 -3
index b686318..15100d4 100644
@@ -649,8 +649,7 @@ void nfsd_export(FILE *f)
 			     "Cannot export %s, possibly unsupported filesystem"
 			     " or fsid= required", path);
 			dump_to_cache(f, dom, path, NULL);
-		} else
-			mountlist_add(dom, path);
+		}
 	} else {
 		dump_to_cache(f, dom, path, NULL);
 	}
@@ -729,7 +728,6 @@ int cache_export_ent(char *domain, struct exportent *exp, char *path)
 		     "Cannot export %s, possibly unsupported filesystem or"
 		     " fsid= required", exp->e_path);
 	}
-	mountlist_add(domain, exp->e_path);
 
 	while (err == 0 && (exp->e_flags & NFSEXP_CROSSMOUNT) && path) {
 		/* really an 'if', but we can break out of

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#3 lore raw

Re: [PATCH] fix regression with rmtab handling in newer nfs-utils code

Quoted 3 lines · On Monday August 6, [email protected] wrote:

No problem. I just wanted to make sure I wasn't missing something. I think this patch against the current git tree should fix it:

Thanks. Applied.

NeilBrown

Quoted 18 lines
utils/mountd/cache.c +1 -2
index b686318..15100d4 100644
@@ -649,8 +649,7 @@ void nfsd_export(FILE *f)
 			     "Cannot export %s, possibly unsupported filesystem"
 			     " or fsid= required", path);
 			dump_to_cache(f, dom, path, NULL);
-		} else
-			mountlist_add(dom, path);
+		}
 	} else {
 		dump_to_cache(f, dom, path, NULL);
 	}

utils/mountd/cache.c int cache_export_ent(char *domain, struct exportent *exp, char *path) · line 733

Quoted 7 lines
utils/mountd/cache.c +0 -1
@@ -729,7 +728,6 @@ int cache_export_ent(char *domain, struct exportent *exp, char *path)
 		     "Cannot export %s, possibly unsupported filesystem or"
 		     " fsid= required", exp->e_path);
 	}
-	mountlist_add(domain, exp->e_path);
 
 	while (err == 0 && (exp->e_flags & NFSEXP_CROSSMOUNT) && path) {
 		/* really an 'if', but we can break out of

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs