From: Jeremy Allison Date: Thu, 5 Sep 2019 16:33:32 +0000 (-0700) Subject: s3: VFS: vfs_glusterfs. Implement mkdirat(). X-Git-Tag: talloc-2.3.1~899 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e55ee2968de3a3d1822062c11d53d383894b7c44;p=thirdparty%2Fsamba.git s3: VFS: vfs_glusterfs. Implement mkdirat(). Currently identical to mkdir(). Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/modules/vfs_glusterfs.c b/source3/modules/vfs_glusterfs.c index 6c941e56e2f..06cfd0d85cc 100644 --- a/source3/modules/vfs_glusterfs.c +++ b/source3/modules/vfs_glusterfs.c @@ -610,6 +610,22 @@ static int vfs_gluster_mkdir(struct vfs_handle_struct *handle, return ret; } +static int vfs_gluster_mkdirat(struct vfs_handle_struct *handle, + struct files_struct *dirfsp, + const struct smb_filename *smb_fname, + mode_t mode) +{ + int ret; + + START_PROFILE(syscall_mkdirat); + SMB_ASSERT(dirfsp == dirfsp->conn->cwd_fsp); + ret = glfs_mkdir(handle->data, smb_fname->base_name, mode); + END_PROFILE(syscall_mkdirat); + + return ret; +} + + static int vfs_gluster_rmdir(struct vfs_handle_struct *handle, const struct smb_filename *smb_fname) { @@ -1893,6 +1909,7 @@ static struct vfs_fn_pointers glusterfs_fns = { .telldir_fn = vfs_gluster_telldir, .rewind_dir_fn = vfs_gluster_rewinddir, .mkdir_fn = vfs_gluster_mkdir, + .mkdirat_fn = vfs_gluster_mkdirat, .rmdir_fn = vfs_gluster_rmdir, .closedir_fn = vfs_gluster_closedir,