r21369: sys_disk_free return type is SMB_BIG_UINT.
authorSimo Sorce <idra@samba.org>
Thu, 15 Feb 2007 16:50:14 +0000 (16:50 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:17:59 +0000 (12:17 -0500)
Fix dfree_retval to be SMB_BIG_UINT as well,
otherwise we may wrap up on > 2T file systems.

Simo.
(This used to be commit 0bb7f6492ccf4a965d70d43ee1483959c71bcdba)

source3/smbd/dfree.c

index dad7d917e8e81689448e2d87b17e4d31323643e5..c488add227a80debfeddadf043c7f4eccbd6ea4c 100644 (file)
@@ -66,7 +66,7 @@ static void disk_norm(BOOL small_query, SMB_BIG_UINT *bsize,SMB_BIG_UINT *dfree,
 SMB_BIG_UINT sys_disk_free(connection_struct *conn, const char *path, BOOL small_query, 
                               SMB_BIG_UINT *bsize,SMB_BIG_UINT *dfree,SMB_BIG_UINT *dsize)
 {
-       int dfree_retval;
+       SMB_BIG_UINT dfree_retval;
        SMB_BIG_UINT dfree_q = 0;
        SMB_BIG_UINT bsize_q = 0;
        SMB_BIG_UINT dsize_q = 0;