mirror_zfs/config/user-largefile.m4
Rob Norris 85391ee931 build: add SPDX license tags to build system files
Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #18077
2026-01-08 15:08:03 -08:00

23 lines
711 B
Plaintext

dnl # SPDX-License-Identifier: CDDL-1.0
dnl #
dnl # ZFS_AC_CONFIG_USER_LARGEFILE
dnl #
dnl # Ensure off_t is 64-bit for large file support in userspace.
dnl # This is required for OpenZFS to handle files larger than 2GB.
dnl #
AC_DEFUN([ZFS_AC_CONFIG_USER_LARGEFILE], [
AC_SYS_LARGEFILE
AC_CHECK_SIZEOF([off_t])
AC_MSG_CHECKING([for 64-bit off_t])
AS_IF([test "$ac_cv_sizeof_off_t" -ne 8], [
AC_MSG_RESULT([no, $ac_cv_sizeof_off_t bytes])
AC_MSG_FAILURE([
*** OpenZFS userspace requires 64-bit off_t support for large files.
*** Please ensure your system supports large file operations.
*** Current off_t size: $ac_cv_sizeof_off_t bytes])
], [
AC_MSG_RESULT([yes, $ac_cv_sizeof_off_t bytes])
])
])