From ed0f06481cb05e74ce28cd5f3dd2710d35efcc81 Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Fri, 30 Oct 2009 13:53:54 -0700 Subject: [PATCH] Hadoop: Behavioral fixes to CephFileSystem --- src/client/hadoop/ceph/CephFileSystem.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/hadoop/ceph/CephFileSystem.java b/src/client/hadoop/ceph/CephFileSystem.java index a14d9a74fd1d9..dbdb63f9c3b28 100644 --- a/src/client/hadoop/ceph/CephFileSystem.java +++ b/src/client/hadoop/ceph/CephFileSystem.java @@ -85,6 +85,7 @@ public class CephFileSystem extends FileSystem { * CephTalker (with its assumed real Ceph instance to talk to). */ public CephFileSystem(CephFS ceph_fs, String default_path) { + super(); root = new Path("/"); ceph = ceph_fs; fs_default_name = default_path; @@ -783,7 +784,7 @@ public class CephFileSystem extends FileSystem { ceph.debug("returning from ceph_getdir to Java", ceph.NOLOG); if (dirlist == null) { - throw new IOException("listPaths: path " + path.toString() + " is not a directory."); + return null; } // convert the strings to Paths -- 2.39.5