]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Hadoop: Behavioral fixes to CephFileSystem
authorGreg Farnum <gregf@hq.newdream.net>
Fri, 30 Oct 2009 20:53:54 +0000 (13:53 -0700)
committerGreg Farnum <gregf@hq.newdream.net>
Tue, 3 Nov 2009 00:38:15 +0000 (16:38 -0800)
src/client/hadoop/ceph/CephFileSystem.java

index a14d9a74fd1d903f3d4adac68c12eb440657fe35..dbdb63f9c3b2832e5bf718ca71c1300cf4141f04 100644 (file)
@@ -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