From 4ad426a7c6c9fffa41df5bcafd9f420c257b6805 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 2 Jun 2017 15:26:06 -0700 Subject: s3: VFS: Change SMB_VFS_STATVFS 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 Reviewed-by: Richard Sharpe --- examples/VFS/skel_opaque.c | 3 ++- examples/VFS/skel_transparent.c | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'examples/VFS') diff --git a/examples/VFS/skel_opaque.c b/examples/VFS/skel_opaque.c index 371caef4818..ec81bdc9fef 100644 --- a/examples/VFS/skel_opaque.c +++ b/examples/VFS/skel_opaque.c @@ -83,7 +83,8 @@ static int skel_get_shadow_copy_data(vfs_handle_struct *handle, } static int skel_statvfs(struct vfs_handle_struct *handle, - const char *path, struct vfs_statvfs_struct *statbuf) + const struct smb_filename *smb_fname, + struct vfs_statvfs_struct *statbuf) { errno = ENOSYS; return -1; diff --git a/examples/VFS/skel_transparent.c b/examples/VFS/skel_transparent.c index bcd4a44e51d..db3ec35bd58 100644 --- a/examples/VFS/skel_transparent.c +++ b/examples/VFS/skel_transparent.c @@ -81,10 +81,11 @@ static int skel_get_shadow_copy_data(vfs_handle_struct *handle, labels); } -static int skel_statvfs(struct vfs_handle_struct *handle, const char *path, +static int skel_statvfs(struct vfs_handle_struct *handle, + const struct smb_filename *smb_fname, struct vfs_statvfs_struct *statbuf) { - return SMB_VFS_NEXT_STATVFS(handle, path, statbuf); + return SMB_VFS_NEXT_STATVFS(handle, smb_fname, statbuf); } static uint32_t skel_fs_capabilities(struct vfs_handle_struct *handle, -- cgit v1.2.1