[ https://issues.apache.org/jira/browse/HDFS-4160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Allen Wittenauer updated HDFS-4160: ----------------------------------- Labels: BB2015-05-TBR (was: ) > 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 > Assignee: Colin Patrick McCabe > Priority: Minor > Labels: BB2015-05-TBR > 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 was sent by Atlassian JIRA (v6.3.4#6332)