]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
hadoop: ENOTDIR should be negative
authorNoah Watkins <noahwatkins@gmail.com>
Wed, 2 Nov 2011 22:24:54 +0000 (15:24 -0700)
committerNoah Watkins <noahwatkins@gmail.com>
Thu, 3 Nov 2011 02:51:54 +0000 (19:51 -0700)
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
src/client/hadoop/ceph/CephFileSystem.java

index 708b586641c371f9dd8a2f368b3a985772ae9d41..54a008d5570beaf90505a701870baa021c923d7c 100644 (file)
@@ -281,7 +281,7 @@ public class CephFileSystem extends FileSystem {
     if (result != 0) {
       LOG.warn(
           "mkdirs: make directory " + abs_path + "Failing with result " + result);
-      if (ceph.ENOTDIR == result) {
+      if (-ceph.ENOTDIR == result) {
         throw new IOException("Parent path is not a directory");
       }
       return false;