hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Colin Patrick McCabe (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-4160) libhdfs / fuse-dfs should implement O_CREAT | O_EXCL
Date Wed, 29 May 2013 17:00:23 GMT

     [ https://issues.apache.org/jira/browse/HDFS-4160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Colin Patrick McCabe updated HDFS-4160:
---------------------------------------

    Status: Patch Available  (was: Open)
    
> libhdfs / fuse-dfs should implement O_CREAT | O_EXCL
> ----------------------------------------------------
>
>                 Key: HDFS-4160
>                 URL: https://issues.apache.org/jira/browse/HDFS-4160
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: libhdfs
>    Affects Versions: 2.0.3-alpha
>            Reporter: Colin Patrick McCabe
>            Priority: Minor
>         Attachments: HDFS-4160.001.patch
>
>
> {{hdfsOpenFile}} contains this code:
> {code}
> if ((flags & O_CREAT) && (flags & O_EXCL)) {                        
      
>   fprintf(stderr, "WARN: hdfs does not truly support O_CREATE && O_EXCL\n");
> } 
> {code}
> But {{hdfsOpenFile}} could easily support *O_CREAT* | *O_EXCL* by calling {{FileSystem#create}}
with {{overwrite = false}}.
> We should do this.  It would also benefit {{fuse-dfs}}.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message