hadoop: ENOTDIR should be negative

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
This commit is contained in:
Noah Watkins 2011-11-02 15:24:54 -07:00
parent 6deea1c29b
commit 60e1e148bf

View 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;