vfs: remove dirfsp arg from SMB_VFS_CREATE_FILE()
[amitay/samba.git] / source3 / modules / vfs_not_implemented.c
index 6b4abf8de67ad5004142f09187dbbe32de63c460..9b5b0f6b4f65f27f237d6eadac097095b829de81 100644 (file)
@@ -109,7 +109,7 @@ NTSTATUS vfs_not_implemented_create_dfs_pathat(struct vfs_handle_struct *handle,
 NTSTATUS vfs_not_implemented_read_dfs_pathat(struct vfs_handle_struct *handle,
                                TALLOC_CTX *mem_ctx,
                                struct files_struct *dirfsp,
-                               const struct smb_filename *smb_fname,
+                               struct smb_filename *smb_fname,
                                struct referral **ppreflist,
                                size_t *preferral_count)
 {
@@ -188,9 +188,12 @@ int vfs_not_implemented_closedir(vfs_handle_struct *handle, DIR *dir)
        return -1;
 }
 
-int vfs_not_implemented_open(vfs_handle_struct *handle,
-                            struct smb_filename *smb_fname,
-                            files_struct *fsp, int flags, mode_t mode)
+int vfs_not_implemented_openat(vfs_handle_struct *handle,
+                              const struct files_struct *dirfsp,
+                              const struct smb_filename *smb_fname,
+                              struct files_struct *fsp,
+                              int flags,
+                              mode_t mode)
 {
        errno = ENOSYS;
        return -1;
@@ -198,7 +201,6 @@ int vfs_not_implemented_open(vfs_handle_struct *handle,
 
 NTSTATUS vfs_not_implemented_create_file(struct vfs_handle_struct *handle,
                                struct smb_request *req,
-                               uint16_t root_dir_fid,
                                struct smb_filename *smb_fname,
                                uint32_t access_mask,
                                uint32_t share_access,
@@ -1067,7 +1069,7 @@ static struct vfs_fn_pointers vfs_not_implemented_fns = {
 
        /* File operations */
 
-       .open_fn = vfs_not_implemented_open,
+       .openat_fn = vfs_not_implemented_openat,
        .create_file_fn = vfs_not_implemented_create_file,
        .close_fn = vfs_not_implemented_close_fn,
        .pread_fn = vfs_not_implemented_pread,