Return-Path: Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: (qmail 41485 invoked from network); 2 Apr 2010 14:06:51 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Apr 2010 14:06:51 -0000 Received: (qmail 86727 invoked by uid 500); 2 Apr 2010 10:06:51 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 86683 invoked by uid 500); 2 Apr 2010 10:06:51 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 86675 invoked by uid 99); 2 Apr 2010 10:06:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Apr 2010 10:06:51 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Apr 2010 10:06:48 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B51FA234C4CB for ; Fri, 2 Apr 2010 10:06:27 +0000 (UTC) Message-ID: <569909783.655911270202787741.JavaMail.jira@brutus.apache.org> Date: Fri, 2 Apr 2010 10:06:27 +0000 (UTC) From: "Ruyue Ma (JIRA)" To: hdfs-issues@hadoop.apache.org Subject: [jira] Updated: (HDFS-923) libhdfs hdfs_read example uses hdfsRead wrongly In-Reply-To: <269512717.35541264503394578.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HDFS-923?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ruyue Ma updated HDFS-923: -------------------------- Attachment: hdfs-923.patch trunk patch > libhdfs hdfs_read example uses hdfsRead wrongly > ----------------------------------------------- > > Key: HDFS-923 > URL: https://issues.apache.org/jira/browse/HDFS-923 > Project: Hadoop HDFS > Issue Type: Bug > Components: contrib/libhdfs > Reporter: Ruyue Ma > Assignee: Ruyue Ma > Fix For: 0.21.0 > > Attachments: hdfs-923.patch > > > In the examples of libhdfs, the hdfs_read.c uses hdfsRead wrongly. > {noformat} > // read from the file > tSize curSize = bufferSize; > for (; curSize == bufferSize;) { > curSize = hdfsRead(fs, readFile, (void*)buffer, curSize); > } > {noformat} > the condition curSize == bufferSize has problem. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.