vfs:ceph: fix build after opendir signature change.
authorMichael Adam <obnox@samba.org>
Tue, 1 Mar 2016 23:15:50 +0000 (00:15 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 2 Mar 2016 00:22:14 +0000 (01:22 +0100)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_ceph.c

index a56740aa7cd851c85b09bcb2076de72f94d46ae0..2e1b623cf30fea81980239038b27926fbee09d29 100644 (file)
@@ -252,14 +252,16 @@ static int cephwrap_statvfs(struct vfs_handle_struct *handle,  const char *path,
 
 /* Directory operations */
 
-static DIR *cephwrap_opendir(struct vfs_handle_struct *handle,  const char *fname, const char *mask, uint32_t attr)
+static DIR *cephwrap_opendir(struct vfs_handle_struct *handle,
+                            const struct smb_filename *smb_fname,
+                            const char *mask, uint32_t attr)
 {
        int ret = 0;
        struct ceph_dir_result *result;
-       DEBUG(10, ("[CEPH] opendir(%p, %s)\n", handle, fname));
+       DEBUG(10, ("[CEPH] opendir(%p, %s)\n", handle, smb_fname->base_name));
 
        /* Returns NULL if it does not exist or there are problems ? */
-       ret = ceph_opendir(handle->data, fname, &result);
+       ret = ceph_opendir(handle->data, smb_fname->base_name, &result);
        if (ret < 0) {
                result = NULL;
                errno = -ret; /* We return result which is NULL in this case */