diff options
author | Jeremy Allison <jra@samba.org> | 2017-05-23 10:40:47 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2017-06-18 02:49:24 +0200 |
commit | 0037815453fa6141d3c0325c3ab197326324ab53 (patch) | |
tree | ae4e2c3ce95ad38c9eec5dbaf492c04aee636a34 /examples/VFS | |
parent | 730de8e091879a53493a0c96b542603cd52174a2 (diff) | |
download | samba-0037815453fa6141d3c0325c3ab197326324ab53.tar.gz |
s3: VFS: Change SMB_VFS_DISK_FREE 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.c | 8 | ||||
-rw-r--r-- | examples/VFS/skel_transparent.c | 10 |
2 files changed, 11 insertions, 7 deletions
diff --git a/examples/VFS/skel_opaque.c b/examples/VFS/skel_opaque.c index aeb1ff37b5f..40951db35e3 100644 --- a/examples/VFS/skel_opaque.c +++ b/examples/VFS/skel_opaque.c @@ -44,9 +44,11 @@ static void skel_disconnect(vfs_handle_struct *handle) ; } -static uint64_t skel_disk_free(vfs_handle_struct *handle, const char *path, - uint64_t *bsize, - uint64_t *dfree, uint64_t *dsize) +static uint64_t skel_disk_free(vfs_handle_struct *handle, + const struct smb_filename *smb_fname, + uint64_t *bsize, + uint64_t *dfree, + uint64_t *dsize) { *bsize = 0; *dfree = 0; diff --git a/examples/VFS/skel_transparent.c b/examples/VFS/skel_transparent.c index f3adae3978f..83c0c2ae4d9 100644 --- a/examples/VFS/skel_transparent.c +++ b/examples/VFS/skel_transparent.c @@ -48,11 +48,13 @@ static void skel_disconnect(vfs_handle_struct *handle) SMB_VFS_NEXT_DISCONNECT(handle); } -static uint64_t skel_disk_free(vfs_handle_struct *handle, const char *path, - uint64_t *bsize, - uint64_t *dfree, uint64_t *dsize) +static uint64_t skel_disk_free(vfs_handle_struct *handle, + const struct smb_filename *smb_fname, + uint64_t *bsize, + uint64_t *dfree, + uint64_t *dsize) { - return SMB_VFS_NEXT_DISK_FREE(handle, path, bsize, dfree, dsize); + return SMB_VFS_NEXT_DISK_FREE(handle, smb_fname, bsize, dfree, dsize); } static int skel_get_quota(vfs_handle_struct *handle, const char *path, |