df: Disable part of virt-df test.
[libguestfs.git] / daemon / statvfs.c
index e71b19a..4eff22d 100644 (file)
@@ -13,7 +13,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
 #include <config.h>
@@ -28,6 +28,7 @@
 #include <sys/types.h>
 #include <fcntl.h>
 #include <unistd.h>
+#include <stdint.h>
 
 #ifdef HAVE_SYS_STATVFS_H
 #include <sys/statvfs.h>
@@ -35,7 +36,7 @@
 
 #include <fsusage.h>
 
-#include "../src/guestfs_protocol.h"
+#include "guestfs_protocol.h"
 #include "daemon.h"
 #include "actions.h"
 
@@ -114,13 +115,13 @@ do_statvfs (const char *path)
    * the version of Windows.  So this code assumes the disk is NTFS
    * and the version of Windows is >= Win2K.
    */
-  if (total_number_of_bytes < 16ULL * 1024 * 1024 * 1024 * 1024)
+  if (total_number_of_bytes < UINT64_C(16) * 1024 * 1024 * 1024 * 1024)
     ret->bsize = 4096;
-  else if (total_number_of_bytes < 32ULL * 1024 * 1024 * 1024 * 1024)
+  else if (total_number_of_bytes < UINT64_C(32) * 1024 * 1024 * 1024 * 1024)
     ret->bsize = 8192;
-  else if (total_number_of_bytes < 64ULL * 1024 * 1024 * 1024 * 1024)
+  else if (total_number_of_bytes < UINT64_C(64) * 1024 * 1024 * 1024 * 1024)
     ret->bsize = 16384;
-  else if (total_number_of_bytes < 128ULL * 1024 * 1024 * 1024 * 1024)
+  else if (total_number_of_bytes < UINT64_C(128) * 1024 * 1024 * 1024 * 1024)
     ret->bsize = 32768;
   else
     ret->bsize = 65536;