hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-711) hdfsUtime does not handle atime = 0 or mtime = 0 correctly
Date Mon, 09 Jul 2012 13:06:36 GMT

    [ https://issues.apache.org/jira/browse/HDFS-711?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13409414#comment-13409414
] 

Hudson commented on HDFS-711:
-----------------------------

Integrated in Hadoop-Common-trunk-Commit #2434 (See [https://builds.apache.org/job/Hadoop-Common-trunk-Commit/2434/])
    HDFS-711. hdfsUtime does not handle atime = 0 or mtime = 0 correctly. Contributed by Colin
Patrick McCabe (Revision 1358810)

     Result = SUCCESS
eli : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1358810
Files : 
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/native/hdfs.c
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/native/hdfs.h

                
> hdfsUtime does not handle atime = 0 or mtime = 0 correctly
> ----------------------------------------------------------
>
>                 Key: HDFS-711
>                 URL: https://issues.apache.org/jira/browse/HDFS-711
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: documentation
>    Affects Versions: 0.20.1
>            Reporter: freestyler
>            Assignee: Colin Patrick McCabe
>             Fix For: 2.0.1-alpha
>
>         Attachments: HDFS-711.001.patch, HDFS-711.002.patch, HDFS-711.003.patch
>
>
> in HADOOP/src/c++/libhdfs/hdfs.h
> The following function document is incorrect:
> /*   @param mtime new modification time or 0 for only set access time in seconds
>       @param atime new access time or 0 for only set modification time in seconds
> */
>     int hdfsUtime(hdfsFS fs, const char* path, tTime mtime, tTime atime);
> Currently, setting mtime or atime to 0 has no special meaning. That is, file last modified
time will change to 0 if the mtime argument is 0.
> libhdfs should translate mtime = 0 or atime = 0 to the special value -1, which in HDFS
means "don't change this time."

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message