hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Colin Patrick McCabe (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-4160) libhdfs / fuse-dfs should implement O_CREAT | O_EXCL
Date Wed, 07 Nov 2012 02:18:13 GMT
Colin Patrick McCabe created HDFS-4160:
------------------------------------------

             Summary: 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


{{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