Details
-
Improvement
-
Status: Patch Available
-
Minor
-
Resolution: Unresolved
-
2.0.3-alpha
-
None
Description
hdfsOpenFile contains this code:
if ((flags & O_CREAT) && (flags & O_EXCL)) { fprintf(stderr, "WARN: hdfs does not truly support O_CREATE && O_EXCL\n"); }
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.