Patchwork [03/13] nfsref: "remove -t nfs-fedfs" should remove FSLs _and_ FSN

login
register
mail settings
Submitter Chuck Lever
Date Feb. 1, 2013, 5:20 p.m.
Message ID <20130201172009.63192.66455.stgit@seurat.1015granger.net>
Download mbox | patch
Permalink /patch/217531/
State Accepted
Headers show

Comments

Chuck Lever - Feb. 1, 2013, 5:20 p.m.
Currently "nfsref remove -t nfs-fedfs" removes just the FSLs of
the FSN listed in the junction.  It should also remove that FSN.

Introduced by commit d4550c62 "nfsref: "nfsref remove" should remove
FSN found in junction", Thu Oct 11 14:58:33 2012.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
---

 src/nfsref/remove.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/src/nfsref/remove.c b/src/nfsref/remove.c
index f7da1fc..3e1fad7 100644
--- a/src/nfsref/remove.c
+++ b/src/nfsref/remove.c
@@ -209,7 +209,7 @@  nfsref_remove_delete_fsn(const char *junct_path)
 		goto out_free;
 	}
 
-	retval = nsdb_delete_fsn_s(host, nce, fsn_uuid, true, &ldap_err);
+	retval = nsdb_delete_fsn_s(host, nce, fsn_uuid, false, &ldap_err);
 	switch (retval) {
 	case FEDFS_OK:
 		printf("Successfully deleted FSL records for FSN %s under %s\n",