From 0da76414fdc6a0aacea6282a76b384a702615408 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 1 Jun 2017 11:45:25 -0700 Subject: s3: VFS: Change SMB_VFS_GET_QUOTA 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 | 8 +++++--- examples/VFS/skel_transparent.c | 10 ++++++---- 2 files changed, 11 insertions(+), 7 deletions(-) (limited to 'examples') diff --git a/examples/VFS/skel_opaque.c b/examples/VFS/skel_opaque.c index 40951db35e3..7dd258f1528 100644 --- a/examples/VFS/skel_opaque.c +++ b/examples/VFS/skel_opaque.c @@ -56,9 +56,11 @@ static uint64_t skel_disk_free(vfs_handle_struct *handle, return 0; } -static int skel_get_quota(vfs_handle_struct *handle, const char *path, - enum SMB_QUOTA_TYPE qtype, unid_t id, - SMB_DISK_QUOTA *dq) +static int skel_get_quota(vfs_handle_struct *handle, + const struct smb_filename *smb_fname, + enum SMB_QUOTA_TYPE qtype, + unid_t id, + SMB_DISK_QUOTA *dq) { errno = ENOSYS; return -1; diff --git a/examples/VFS/skel_transparent.c b/examples/VFS/skel_transparent.c index 83c0c2ae4d9..5e66be49d42 100644 --- a/examples/VFS/skel_transparent.c +++ b/examples/VFS/skel_transparent.c @@ -57,11 +57,13 @@ static uint64_t skel_disk_free(vfs_handle_struct *handle, return SMB_VFS_NEXT_DISK_FREE(handle, smb_fname, bsize, dfree, dsize); } -static int skel_get_quota(vfs_handle_struct *handle, const char *path, - enum SMB_QUOTA_TYPE qtype, unid_t id, - SMB_DISK_QUOTA *dq) +static int skel_get_quota(vfs_handle_struct *handle, + const struct smb_filename *smb_fname, + enum SMB_QUOTA_TYPE qtype, + unid_t id, + SMB_DISK_QUOTA *dq) { - return SMB_VFS_NEXT_GET_QUOTA(handle, path, qtype, id, dq); + return SMB_VFS_NEXT_GET_QUOTA(handle, smb_fname, qtype, id, dq); } static int skel_set_quota(vfs_handle_struct *handle, enum SMB_QUOTA_TYPE qtype, -- cgit v1.2.1