]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librgw: s/nfs_file_handle/rgw_file_handle/;
authorMatt Benjamin <mbenjamin@redhat.com>
Fri, 28 Aug 2015 17:49:45 +0000 (13:49 -0400)
committerMatt Benjamin <mbenjamin@redhat.com>
Fri, 12 Feb 2016 16:55:58 +0000 (11:55 -0500)
The interface is in rgw_file.h, so make it match.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/include/rados/rgw_file.h

index 15c9fac8e0024eea7922bbccac6bee465edd43ad..997942dd089dcfdd1a7fbe6aad2af8e895906f69 100644 (file)
@@ -24,7 +24,7 @@ extern "C" {
  * In order to support several instance we will need to include an
  * instance id (16bit)
  */
-struct nfs_handle
+struct rgw_file_handle
 {
   uint64_t handle;
 };
@@ -32,70 +32,81 @@ struct nfs_handle
 /*
   get entity handle
 */
-int rgw_get_handle(const char *uri, struct nfs_handle *handle);
+int rgw_get_handle(const char *uri, struct rgw_file_handle *handle);
 
 /*
   check handle
 */
-int rgw_check_handle(const struct nfs_handle *handle);
+int rgw_check_handle(const struct rgw_file_handle *handle);
 
-  int rgw_mount(const char *uid, const char *key, const char *secret,
-                         const struct nfs_handle *handle);
+/*
+ attach rgw namespace
+*/
+int rgw_mount(const char *uid, const char *key, const char *secret,
+             const struct rgw_file_handle *handle);
 
 /*
   create a new dirctory
 */
-int rgw_create_directory(const struct nfs_handle *parent_handle, const char *name);
+int rgw_create_directory(const struct rgw_file_handle *parent_handle,
+                        const char *name);
 
 /*
   create a new file
 */
-  int rgw_create_file(const struct nfs_handle *parent_handle, const char* name);
+int rgw_create_file(const struct rgw_file_handle *parent_handle,
+                   const char* name);
+
 
-  int rgw_rename(const struct nfs_handle *parent_handle, const char* old_name, const char* new_name);
+/*
+  move/rename a new file
+*/
+int rgw_rename(const struct rgw_file_handle *parent_handle,
+              const char* old_name, const char* new_name);
 
 /*
   remove file or directory
 */
-int rgw_unlink(const struct nfs_handle *parent_handle, const char* path);
+int rgw_unlink(const struct rgw_file_handle *parent_handle, const char* path);
 
 /*
-    lookup a directory or file
+  lookup a directory or file
 */
-int rgw_lookup(const struct nfs_handle *parent_handle, const char *path, uint64_t *handle);
+int rgw_lookup(const struct rgw_file_handle *parent_handle, const char *path,
+              uint64_t *handle);
 
 /*
-    read  directory content
+  read  directory content
 */
-int rgw_readdir(const struct nfs_handle *parent_handle, const char *path);
+int rgw_readdir(const struct rgw_file_handle *parent_handle, const char *path);
 
-int rgw_set_attributes(const struct nfs_handle *handle);
+int rgw_set_attributes(const struct rgw_file_handle *handle);
 
-int rgw_get_attributes(const struct nfs_handle *handle);
+int rgw_get_attributes(const struct rgw_file_handle *handle);
 
-int rgw_open(const struct nfs_handle *handle);
+int rgw_open(const struct rgw_file_handle *handle);
 
-int rgw_close(const struct nfs_handle *handle);
+int rgw_close(const struct rgw_file_handle *handle);
 
-int read(const struct nfs_handle *handle);
+int rgwf_read(const struct rgw_file_handle *handle);
 
-int write(const struct nfs_handle *handle);
+int rgwf_write(const struct rgw_file_handle *handle);
 
 int set_user_permissions(const char *uid);
 
 int get_user_permissions(const char *uid);
 
-int set_dir_permissions(const struct nfs_handle *handle);
+int set_dir_permissions(const struct rgw_file_handle *handle);
 
-int get_dir_permissions(const struct nfs_handle *handle);
+int get_dir_permissions(const struct rgw_file_handle *handle);
 
-int set_file_permissions(const struct nfs_handle *handle);
+int set_file_permissions(const struct rgw_file_handle *handle);
 
-int get_file_permissions(const struct nfs_handle *handle);
+int get_file_permissions(const struct rgw_file_handle *handle);
 
-int acl2perm();
+int rgwf_acl2perm();
 
-int perm2acl();
+int rgwf_perm2acl();
 
 #ifdef __cplusplus
 }