]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Hadoop: clean out unused functions.
authorGreg Farnum <gregf@hq.newdream.net>
Wed, 14 Oct 2009 00:34:40 +0000 (17:34 -0700)
committerGreg Farnum <gregf@hq.newdream.net>
Fri, 16 Oct 2009 19:21:25 +0000 (12:21 -0700)
src/client/hadoop/CephFSInterface.cc
src/client/hadoop/CephFSInterface.h
src/client/hadoop/org_apache_hadoop_fs_ceph_CephFileSystem.h
src/client/hadoop/org_apache_hadoop_fs_ceph_CephOutputStream.h

index 71f195ec9c148d90bc615d26da2c581157161bdd..6e43fa7c2c0360ff737c78ba6ca8bc01321fac90 100644 (file)
@@ -140,25 +140,6 @@ JNIEXPORT jboolean JNICALL Java_org_apache_hadoop_fs_ceph_CephFileSystem_ceph_1r
   return success;
 }
 
-
-/*
- * Class:     org_apache_hadoop_fs_ceph_CephFileSystem
- * Method:    ceph_mkdir
- * Signature: (Ljava/lang/String;)Z
- * Creates a directory with full permissions.
- */
-JNIEXPORT jboolean JNICALL Java_org_apache_hadoop_fs_ceph_CephFileSystem_ceph_1mkdir
-  (JNIEnv *env, jobject, jstring j_path)
-{
-  dout(10) << "CephFSInterface: In mkdir" << dendl;
-
-  const char *c_path = env->GetStringUTFChars(j_path, 0);
-  if (c_path == NULL) return false;
-  jboolean success = (0 == ceph_mkdir(c_path, 0xFF)) ? JNI_TRUE : JNI_FALSE; 
-  env->ReleaseStringUTFChars(j_path, c_path);
-  return success;
-}
-
 /*
  * Class:     org_apache_hadoop_fs_ceph_CephFileSystem
  * Method:    ceph_unlink
@@ -830,20 +811,6 @@ JNIEXPORT jint JNICALL Java_org_apache_hadoop_fs_ceph_CephInputStream_ceph_1clos
   return ceph_close(fh);
 }
 
-/*
- * Class:     org_apache_hadoop_fs_ceph_CephOutputStream
- * Method:    ceph_seek_from_start
- * Signature: (JIJ)J
- */
-JNIEXPORT jlong JNICALL Java_org_apache_hadoop_fs_ceph_CephOutputStream_ceph_1seek_1from_1start
-  (JNIEnv *env, jobject obj, jint fh, jlong pos)
-{
-  dout(10) << "In CephOutputStream::ceph_seek_from_start" << dendl;
-
-   return ceph_lseek(fh, pos, SEEK_SET);  
- }
-
-
 /*
  * Class:     org_apache_hadoop_fs_ceph_CephOutputStream
  * Method:    ceph_getpos
index 8ae918dfa0db6f83e2fb3e8578fec6d99cd03667..3d56a7e883341709f7400529a96531bb3deffb4f 100644 (file)
@@ -46,14 +46,6 @@ JNIEXPORT jboolean JNICALL Java_org_apache_hadoop_fs_ceph_CephFileSystem_ceph_1s
 JNIEXPORT jboolean JNICALL Java_org_apache_hadoop_fs_ceph_CephFileSystem_ceph_1rmdir
   (JNIEnv *, jobject, jstring);
 
-/*
- * Class:     org_apache_hadoop_fs_ceph_CephFileSystem
- * Method:    ceph_mkdir
- * Signature: (Ljava/lang/String;)Z
- */
-JNIEXPORT jboolean JNICALL Java_org_apache_hadoop_fs_ceph_CephFileSystem_ceph_1mkdir
-  (JNIEnv *, jobject, jstring);
-
 /*
  * Class:     org_apache_hadoop_fs_ceph_CephFileSystem
  * Method:    ceph_unlink
@@ -238,14 +230,6 @@ JNIEXPORT jlong JNICALL Java_org_apache_hadoop_fs_ceph_CephInputStream_ceph_1get
 JNIEXPORT jint JNICALL Java_org_apache_hadoop_fs_ceph_CephInputStream_ceph_1close
   (JNIEnv *, jobject, jint);
 
-/*
- * Class:     org_apache_hadoop_fs_ceph_CephOutputStream
- * Method:    ceph_seek_from_start
- * Signature: (IJ)J
- */
-JNIEXPORT jlong JNICALL Java_org_apache_hadoop_fs_ceph_CephOutputStream_ceph_1seek_1from_1start
-  (JNIEnv *, jobject, jint, jlong);
-
 /*
  * Class:     org_apache_hadoop_fs_ceph_CephOutputStream
  * Method:    ceph_getpos
index 40f8d29f4aea90dd0da89440d715697170bf9e74..bc1b6abb1dfda7282c63db460eb37f16d347dbe6 100644 (file)
@@ -9,6 +9,8 @@ extern "C" {
 #endif
 #undef org_apache_hadoop_fs_ceph_CephFileSystem_EEXIST
 #define org_apache_hadoop_fs_ceph_CephFileSystem_EEXIST 17L
+#undef org_apache_hadoop_fs_ceph_CephFileSystem_ENOENT
+#define org_apache_hadoop_fs_ceph_CephFileSystem_ENOENT 2L
 /*
  * Class:     org_apache_hadoop_fs_ceph_CephFileSystem
  * Method:    ceph_initializeClient
@@ -41,14 +43,6 @@ JNIEXPORT jboolean JNICALL Java_org_apache_hadoop_fs_ceph_CephFileSystem_ceph_1s
 JNIEXPORT jboolean JNICALL Java_org_apache_hadoop_fs_ceph_CephFileSystem_ceph_1rmdir
   (JNIEnv *, jobject, jstring);
 
-/*
- * Class:     org_apache_hadoop_fs_ceph_CephFileSystem
- * Method:    ceph_mkdir
- * Signature: (Ljava/lang/String;)Z
- */
-JNIEXPORT jboolean JNICALL Java_org_apache_hadoop_fs_ceph_CephFileSystem_ceph_1mkdir
-  (JNIEnv *, jobject, jstring);
-
 /*
  * Class:     org_apache_hadoop_fs_ceph_CephFileSystem
  * Method:    ceph_unlink
index ead3234c4283320a76ac7bbaa8ceaadab4ec818f..676b137c9f9a1cc2ab2fee5fa50d4048a316cd20 100644 (file)
@@ -7,14 +7,6 @@
 #ifdef __cplusplus
 extern "C" {
 #endif
-/*
- * Class:     org_apache_hadoop_fs_ceph_CephOutputStream
- * Method:    ceph_seek_from_start
- * Signature: (IJ)J
- */
-JNIEXPORT jlong JNICALL Java_org_apache_hadoop_fs_ceph_CephOutputStream_ceph_1seek_1from_1start
-  (JNIEnv *, jobject, jint, jlong);
-
 /*
  * Class:     org_apache_hadoop_fs_ceph_CephOutputStream
  * Method:    ceph_getpos