1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

s3: VFS: vfs_syncops. 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:
Jeremy Allison 2019-09-05 10:40:04 -07:00 committed by Ralph Boehme
parent 41f9c49eec
commit ef5bb79677

View File

@ -258,6 +258,19 @@ static int syncops_mkdir(vfs_handle_struct *handle,
SYNCOPS_NEXT_SMB_FNAME(MKDIR, smb_fname, (handle, smb_fname, mode));
}
static int syncops_mkdirat(vfs_handle_struct *handle,
struct files_struct *dirfsp,
const struct smb_filename *smb_fname,
mode_t mode)
{
SYNCOPS_NEXT_SMB_FNAME(MKDIRAT,
smb_fname,
(handle,
dirfsp,
smb_fname,
mode));
}
static int syncops_rmdir(vfs_handle_struct *handle,
const struct smb_filename *smb_fname)
{
@ -318,6 +331,7 @@ static int syncops_connect(struct vfs_handle_struct *handle, const char *service
static struct vfs_fn_pointers vfs_syncops_fns = {
.connect_fn = syncops_connect,
.mkdir_fn = syncops_mkdir,
.mkdirat_fn = syncops_mkdirat,
.rmdir_fn = syncops_rmdir,
.open_fn = syncops_open,
.renameat_fn = syncops_renameat,