fi
)
+AC_ARG_ENABLE(force2GB,
+ [ --enable-force2GB enable force 2GB max reported volume size],
+ if test "x$enableval" = "xyes"; then
+ AC_DEFINE(FORCE_2GB, 1)
+ AC_MSG_RESULT([enable forge 2GB])
+ fi
+)
+
AC_ARG_ENABLE(debug,
[ --enable-debug enable debug code],
if test "$enableval" != "no"; then
*bsize = sfs.f_frsize;
#endif ultrix
+#if FORCE_2GB
+ // if the volume is over 2GB in size, report
+ // the size as 2GB.
+ // this doesn't seem to work correctly for
+ // 64 bit size descriptors.
if ( *bfree > 0x7fffffff / *bsize ) {
*bfree = 0x7fffffff;
} else {
*bfree *= *bsize;
}
+#endif
#ifdef ultrix
*btotal = (VolSpace)
*btotal = (VolSpace)
( sfs.f_blocks - ( sfs.f_bfree - sfs.f_bavail )) * sfs.f_frsize;
#endif ultrix
+
+#if FORCE_2GB
+ // see similar block above comments
if ( *bfree > 0x7fffffff / *bsize ) {
*bfree = 0x7fffffff;
} else {
*bfree *= *bsize;
}
+#endif
+
return( AFP_OK );
}