From patchwork Fri Feb 1 17:20:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chuck Lever III X-Patchwork-Id: 217531 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from userp1040.oracle.com (userp1040.oracle.com [156.151.31.81]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "userp1040.oracle.com", Issuer "VeriSign Class 3 International Server CA - G3" (not verified)) by ozlabs.org (Postfix) with ESMTPS id C95792C0296 for ; Sat, 2 Feb 2013 04:20:28 +1100 (EST) Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by userp1040.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id r11HKOgq000715 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 1 Feb 2013 17:20:25 GMT Received: from oss.oracle.com (oss-external.oracle.com [137.254.96.51]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r11HKOIt018016 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 1 Feb 2013 17:20:24 GMT Received: from localhost ([127.0.0.1] helo=oss.oracle.com) by oss.oracle.com with esmtp (Exim 4.63) (envelope-from ) id 1U1KHo-0006dC-FD; Fri, 01 Feb 2013 09:20:24 -0800 Received: from acsinet22.oracle.com ([141.146.126.238]) by oss.oracle.com with esmtp (Exim 4.63) (envelope-from ) id 1U1KHc-0006cQ-N6 for fedfs-utils-devel@oss.oracle.com; Fri, 01 Feb 2013 09:20:12 -0800 Received: from userp1020.oracle.com (userp1020.oracle.com [156.151.31.79]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r11HKCZp017691 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 1 Feb 2013 17:20:12 GMT Received: from mail-ia0-f178.google.com (mail-ia0-f178.google.com [209.85.210.178]) by userp1020.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id r11HKBsJ023225 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Fri, 1 Feb 2013 17:20:11 GMT Received: by mail-ia0-f178.google.com with SMTP id y26so5755837iab.9 for ; Fri, 01 Feb 2013 09:20:11 -0800 (PST) X-Received: by 10.50.163.35 with SMTP id yf3mr1852965igb.60.1359739211078; Fri, 01 Feb 2013 09:20:11 -0800 (PST) Received: from seurat.1015granger.net (adsl-99-26-161-222.dsl.sfldmi.sbcglobal.net. [99.26.161.222]) by mx.google.com with ESMTPS id iw5sm2497295igc.5.2013.02.01.09.20.10 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 01 Feb 2013 09:20:10 -0800 (PST) From: Chuck Lever To: fedfs-utils-devel@oss.oracle.com Date: Fri, 01 Feb 2013 12:20:09 -0500 Message-ID: <20130201172009.63192.66455.stgit@seurat.1015granger.net> In-Reply-To: <20130201171714.63192.68358.stgit@seurat.1015granger.net> References: <20130201171714.63192.68358.stgit@seurat.1015granger.net> User-Agent: StGIT/0.14.3 MIME-Version: 1.0 X-Flow-Control-Info: class=Default reputation=ipRepBelow100 ip=209.85.210.178 ct-class=R5 ct-vol1=0 ct-vol2=8 ct-vol3=8 ct-risk=50 ct-spam1=80 ct-spam2=5 ct-bulk=5 rcpts=1 size=888 X-MM-CT-Classification: not spam X-MM-CT-RefID: str=0001.0A090206.510BF94B.009B,ss=1,re=0.000,fgs=0 Subject: [fedfs-utils] [PATCH 03/13] nfsref: "remove -t nfs-fedfs" should remove FSLs _and_ FSN X-BeenThere: fedfs-utils-devel@oss.oracle.com X-Mailman-Version: 2.1.9 Precedence: list Reply-To: fedfs-utils Developers List-Id: fedfs-utils Developers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: fedfs-utils-devel-bounces@oss.oracle.com Errors-To: fedfs-utils-devel-bounces@oss.oracle.com X-Source-IP: acsinet22.oracle.com [141.146.126.238] 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 --- src/nfsref/remove.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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",