summaryrefslogtreecommitdiff
path: root/examples/VFS
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2017-05-19 15:01:52 -0700
committerJeremy Allison <jra@samba.org>2017-06-18 02:49:24 +0200
commitc3d45216dd7df2a084b7d1af63f207db0c87b53d (patch)
tree263d03b030390096348b9df1224432d4090f019e /examples/VFS
parentfed54ca01d4dc7796edb9ab337b3529416ce1424 (diff)
downloadsamba-c3d45216dd7df2a084b7d1af63f207db0c87b53d.tar.gz
s3: VFS: Change SMB_VFS_MKNOD to use const struct smb_filename * instead of const char *.
We need to migrate all pathname based VFS calls to use a struct to finish modernising the VFS with extra timestamp and flags parameters. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Richard Sharpe <realrichardsharpe@gmail.com>
Diffstat (limited to 'examples/VFS')
-rw-r--r--examples/VFS/skel_opaque.c6
-rw-r--r--examples/VFS/skel_transparent.c8
2 files changed, 9 insertions, 5 deletions
diff --git a/examples/VFS/skel_opaque.c b/examples/VFS/skel_opaque.c
index c5d4359d8b2..ae0d4dc2b62 100644
--- a/examples/VFS/skel_opaque.c
+++ b/examples/VFS/skel_opaque.c
@@ -492,8 +492,10 @@ static int skel_link(vfs_handle_struct *handle, const char *oldpath,
return -1;
}
-static int skel_mknod(vfs_handle_struct *handle, const char *path, mode_t mode,
- SMB_DEV_T dev)
+static int skel_mknod(vfs_handle_struct *handle,
+ const struct smb_filename *smb_fname,
+ mode_t mode,
+ SMB_DEV_T dev)
{
errno = ENOSYS;
return -1;
diff --git a/examples/VFS/skel_transparent.c b/examples/VFS/skel_transparent.c
index 91ea5c6a6a7..30f2b4e6f03 100644
--- a/examples/VFS/skel_transparent.c
+++ b/examples/VFS/skel_transparent.c
@@ -583,10 +583,12 @@ static int skel_link(vfs_handle_struct *handle, const char *oldpath,
return SMB_VFS_NEXT_LINK(handle, oldpath, newpath);
}
-static int skel_mknod(vfs_handle_struct *handle, const char *path, mode_t mode,
- SMB_DEV_T dev)
+static int skel_mknod(vfs_handle_struct *handle,
+ const struct smb_filename *smb_fname,
+ mode_t mode,
+ SMB_DEV_T dev)
{
- return SMB_VFS_NEXT_MKNOD(handle, path, mode, dev);
+ return SMB_VFS_NEXT_MKNOD(handle, smb_fname, mode, dev);
}
static char *skel_realpath(vfs_handle_struct *handle, const char *path)