summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2017-05-23 10:40:47 -0700
committerJeremy Allison <jra@samba.org>2017-06-18 02:49:24 +0200
commit0037815453fa6141d3c0325c3ab197326324ab53 (patch)
treeae4e2c3ce95ad38c9eec5dbaf492c04aee636a34 /source3/smbd
parent730de8e091879a53493a0c96b542603cd52174a2 (diff)
downloadsamba-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 'source3/smbd')
-rw-r--r--source3/smbd/dfree.c2
-rw-r--r--source3/smbd/vfs.c9
2 files changed, 7 insertions, 4 deletions
diff --git a/source3/smbd/dfree.c b/source3/smbd/dfree.c
index 7e58daa45cf..a702d083a11 100644
--- a/source3/smbd/dfree.c
+++ b/source3/smbd/dfree.c
@@ -118,7 +118,7 @@ uint64_t sys_disk_free(connection_struct *conn, struct smb_filename *fname,
syscmd, strerror(errno) ));
}
- if (SMB_VFS_DISK_FREE(conn, path, bsize, dfree, dsize) ==
+ if (SMB_VFS_DISK_FREE(conn, fname, bsize, dfree, dsize) ==
(uint64_t)-1) {
DBG_ERR("VFS disk_free failed. Error was : %s\n",
strerror(errno));
diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c
index 9248091153a..f91e9e33a02 100644
--- a/source3/smbd/vfs.c
+++ b/source3/smbd/vfs.c
@@ -1468,11 +1468,14 @@ void smb_vfs_call_disconnect(struct vfs_handle_struct *handle)
}
uint64_t smb_vfs_call_disk_free(struct vfs_handle_struct *handle,
- const char *path, uint64_t *bsize,
- uint64_t *dfree, uint64_t *dsize)
+ const struct smb_filename *smb_fname,
+ uint64_t *bsize,
+ uint64_t *dfree,
+ uint64_t *dsize)
{
VFS_FIND(disk_free);
- return handle->fns->disk_free_fn(handle, path, bsize, dfree, dsize);
+ return handle->fns->disk_free_fn(handle, smb_fname,
+ bsize, dfree, dsize);
}
int smb_vfs_call_get_quota(struct vfs_handle_struct *handle, const char *path,