gpfs: Rename wrapper for gpfs_lib_init
[sharpe/samba-autobuild/.git] / source3 / modules / gpfs.c
index f67b38c5f0ffaf808dde67d5c7b90d81459e925f..b90d42292ed78145704758a13933d4e740606b23 100644 (file)
@@ -179,6 +179,16 @@ int gpfswrap_ftruncate(int fd, gpfs_off64_t length)
        return gpfs_ftruncate_fn(fd, length);
 }
 
+int gpfswrap_lib_init(int flags)
+{
+       if (gpfs_lib_init_fn == NULL) {
+               errno = ENOSYS;
+               return -1;
+       }
+
+       return gpfs_lib_init_fn(flags);
+}
+
 bool set_gpfs_sharemode(files_struct *fsp, uint32 access_mask,
                        uint32 share_access)
 {
@@ -323,17 +333,6 @@ int get_gpfs_fset_id(const char *pathname, int *fset_id)
        return err;
 }
 
-void smbd_gpfs_lib_init()
-{
-       if (gpfs_lib_init_fn) {
-               int rc = gpfs_lib_init_fn(0);
-               DEBUG(10, ("gpfs_lib_init() finished with rc %d "
-                          "and errno %d\n", rc, errno));
-       } else {
-               DEBUG(10, ("libgpfs lacks gpfs_lib_init\n"));
-       }
-}
-
 static void timespec_to_gpfs_time(struct timespec ts, gpfs_timestruc_t *gt,
                                  int idx, int *flags)
 {