s3: VFS: Change SMB_VFS_DISK_FREE to use const struct smb_filename * instead of const...
[metze/samba-autobuild/.git] / source3 / modules / vfs_default.c
index b2c6c28f87b5dbd3cc37692c140676d68b1fd0d8..1c267287cff480fac7e4392ee73a48baaa8c6017 100644 (file)
@@ -55,11 +55,13 @@ static void vfswrap_disconnect(vfs_handle_struct *handle)
 
 /* Disk operations */
 
-static uint64_t vfswrap_disk_free(vfs_handle_struct *handle, const char *path,
-                                 uint64_t *bsize, uint64_t *dfree,
-                                 uint64_t *dsize)
+static uint64_t vfswrap_disk_free(vfs_handle_struct *handle,
+                               const struct smb_filename *smb_fname,
+                               uint64_t *bsize,
+                               uint64_t *dfree,
+                               uint64_t *dsize)
 {
-       if (sys_fsusage(path, dfree, dsize) != 0) {
+       if (sys_fsusage(smb_fname->base_name, dfree, dsize) != 0) {
                return (uint64_t)-1;
        }