From patchwork Mon Dec 5 17:23:11 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chuck Lever X-Patchwork-Id: 129374 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "rcsinet15.oracle.com", Issuer "VeriSign Class 3 International Server CA - G3" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id E75421007D4 for ; Tue, 6 Dec 2011 04:23:26 +1100 (EST) Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id pB5HNKSQ022260 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 5 Dec 2011 17:23:21 GMT Received: from oss.oracle.com (oss.oracle.com [141.146.12.120]) by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id pB5HNJuf006643 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 5 Dec 2011 17:23:20 GMT Received: from localhost ([127.0.0.1] helo=oss.oracle.com) by oss.oracle.com with esmtp (Exim 4.63) (envelope-from ) id 1RXcG2-0003g0-Qj; Mon, 05 Dec 2011 09:23:14 -0800 Received: from acsinet13.oracle.com ([141.146.126.235]) by oss.oracle.com with esmtp (Exim 4.63) (envelope-from ) id 1RXcG1-0003fr-NH for fedfs-utils-devel@oss.oracle.com; Mon, 05 Dec 2011 09:23:13 -0800 Received: from mail-yw0-f43.google.com (mail-yw0-f43.google.com [209.85.213.43]) by acsinet13.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id pB5HN4AF002694 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=FAIL) for ; Mon, 5 Dec 2011 17:23:13 GMT Received: by mail-yw0-f43.google.com with SMTP id 34so5269853ywt.2 for ; Mon, 05 Dec 2011 09:23:13 -0800 (PST) Received: by 10.50.180.193 with SMTP id dq1mr11069966igc.34.1323105793153; Mon, 05 Dec 2011 09:23:13 -0800 (PST) Received: from degas.1015granger.net (adsl-99-26-161-222.dsl.sfldmi.sbcglobal.net. [99.26.161.222]) by mx.google.com with ESMTPS id j1sm43735731igq.2.2011.12.05.09.23.12 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 05 Dec 2011 09:23:12 -0800 (PST) From: Chuck Lever To: fedfs-utils-devel@oss.oracle.com Date: Mon, 05 Dec 2011 12:23:11 -0500 Message-ID: <20111205172311.7753.32811.stgit@degas.1015granger.net> In-Reply-To: <20111205171929.7753.36203.stgit@degas.1015granger.net> References: <20111205171929.7753.36203.stgit@degas.1015granger.net> User-Agent: StGIT/0.14.3 MIME-Version: 1.0 X-Flow-Control-Info: class=ISPs ip=209.85.213.43 ct-class=G1 ct-vol1=0 ct-vol2=0 ct-vol3=0 ct-risk=0 ct-spam1=0 ct-spam2=0 ct-bulk=0 rcpts=1 size=1011 Subject: [fedfs-utils] [PATCH 1/9] libnsdb: Use correct LDAP attribute name to set FslPort 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: ucsinet22.oracle.com [156.151.31.94] X-CT-RefId: str=0001.0A090203.4EDCFE09.011F:SCFSTAT3865452, ss=1, re=-4.000, fgs=0 After using nsdb_create_fsls_s() to create an FSL record, the fedfsNsdbPort field contained the value for the fedfsFslPort field. This was never exposed before because the nsdb-create_fsl tool sets both attributes to zero. Introduced by commit 0520ee72: "Initial commit," (March 11, 2011). Signed-off-by: Chuck Lever --- src/libnsdb/administrator.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/libnsdb/administrator.c b/src/libnsdb/administrator.c index c857444..56b5f22 100644 --- a/src/libnsdb/administrator.c +++ b/src/libnsdb/administrator.c @@ -702,7 +702,7 @@ nsdb_create_fsl_add_nfs_entry_s(LDAP *ld, const char *nce, if (serverport != 0) { sprintf(serverportbuf, "%u", serverport); nsdb_init_add_attribute(attrs[i++], - "fedfsNsdbPort", serverportvals, serverportbuf); + "fedfsFslPort", serverportvals, serverportbuf); } nsdb_init_add_attribute(attrs[i++], "fedfsFslTTL", ttyvals, "300");