mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
s3: VFS: vfs_glusterfs. Implement mkdirat().
Currently identical to mkdir(). Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
d444cd4e46
commit
e55ee2968d
@ -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,
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user