* Mon Jun 15 2009 Eric Sandeen <sandeen@redhat.com> 3.0.1-5
- Add fallocate command to config script & fix for 32-bit
This commit is contained in:
parent
84a6ef606e
commit
b123039cf0
@ -141,7 +141,7 @@ diff --git a/m4/package_libcdev.m4 b/m4/package_libcdev.m4
|
||||
index 5156ced..1ac4666 100644
|
||||
--- a/m4/package_libcdev.m4
|
||||
+++ b/m4/package_libcdev.m4
|
||||
@@ -98,3 +98,18 @@ AC_DEFUN([AC_HAVE_GETMNTINFO],
|
||||
@@ -98,3 +98,21 @@ AC_DEFUN([AC_HAVE_GETMNTINFO],
|
||||
AC_MSG_RESULT(no))
|
||||
AC_SUBST(have_getmntinfo)
|
||||
])
|
||||
@ -152,6 +152,9 @@ index 5156ced..1ac4666 100644
|
||||
+AC_DEFUN([AC_HAVE_FALLOCATE],
|
||||
+ [ AC_MSG_CHECKING([for fallocate])
|
||||
+ AC_TRY_LINK([
|
||||
+#define _GNU_SOURCE
|
||||
+#define _FILE_OFFSET_BITS 64
|
||||
+#include <fcntl.h>
|
||||
+#include <linux/falloc.h>
|
||||
+ ], [
|
||||
+ fallocate(0, 0, 0, 0);
|
||||
@ -186,3 +189,79 @@ index 23bef94..6fc6bad 100644
|
||||
Truncates the current file at the given offset using
|
||||
.BR ftruncate (2).
|
||||
|
||||
--- a/configure 2009-05-01 17:12:06.000000000 -0500
|
||||
+++ b/configure 2009-06-15 14:17:39.378265990 -0500
|
||||
@@ -788,6 +788,7 @@
|
||||
ac_subst_vars='LTLIBOBJS
|
||||
LIBOBJS
|
||||
have_zipped_manpages
|
||||
+have_fallocate
|
||||
have_getmntinfo
|
||||
have_getmntent
|
||||
have_sendfile
|
||||
@@ -13979,6 +13980,65 @@
|
||||
|
||||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||
|
||||
+ { $as_echo "$as_me:$LINENO: checking for fallocate" >&5
|
||||
+$as_echo_n "checking for fallocate... " >&6; }
|
||||
+ cat >conftest.$ac_ext <<_ACEOF
|
||||
+/* confdefs.h. */
|
||||
+_ACEOF
|
||||
+cat confdefs.h >>conftest.$ac_ext
|
||||
+cat >>conftest.$ac_ext <<_ACEOF
|
||||
+/* end confdefs.h. */
|
||||
+
|
||||
+#define _GNU_SOURCE
|
||||
+#define _FILE_OFFSET_BITS 64
|
||||
+#include <fcntl.h>
|
||||
+#include <linux/falloc.h>
|
||||
+
|
||||
+int
|
||||
+main ()
|
||||
+{
|
||||
+
|
||||
+ fallocate(0, 0, 0, 0);
|
||||
+
|
||||
+ ;
|
||||
+ return 0;
|
||||
+}
|
||||
+_ACEOF
|
||||
+rm -f conftest.$ac_objext conftest$ac_exeext
|
||||
+if { (ac_try="$ac_link"
|
||||
+case "(($ac_try" in
|
||||
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
||||
+ *) ac_try_echo=$ac_try;;
|
||||
+esac
|
||||
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
||||
+$as_echo "$ac_try_echo") >&5
|
||||
+ (eval "$ac_link") 2>conftest.er1
|
||||
+ ac_status=$?
|
||||
+ grep -v '^ *+' conftest.er1 >conftest.err
|
||||
+ rm -f conftest.er1
|
||||
+ cat conftest.err >&5
|
||||
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
+ (exit $ac_status); } && {
|
||||
+ test -z "$ac_c_werror_flag" ||
|
||||
+ test ! -s conftest.err
|
||||
+ } && test -s conftest$ac_exeext && {
|
||||
+ test "$cross_compiling" = yes ||
|
||||
+ $as_test_x conftest$ac_exeext
|
||||
+ }; then
|
||||
+ have_fallocate=yes
|
||||
+ { $as_echo "$as_me:$LINENO: result: yes" >&5
|
||||
+$as_echo "yes" >&6; }
|
||||
+else
|
||||
+ $as_echo "$as_me: failed program was:" >&5
|
||||
+sed 's/^/| /' conftest.$ac_ext >&5
|
||||
+
|
||||
+ { $as_echo "$as_me:$LINENO: result: no" >&5
|
||||
+$as_echo "no" >&6; }
|
||||
+fi
|
||||
+
|
||||
+rm -rf conftest.dSYM
|
||||
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
||||
+ conftest$ac_exeext conftest.$ac_ext
|
||||
|
||||
|
||||
{ $as_echo "$as_me:$LINENO: checking for __psint_t " >&5
|
||||
|
@ -1,7 +1,7 @@
|
||||
Summary: Utilities for managing the XFS filesystem
|
||||
Name: xfsprogs
|
||||
Version: 3.0.1
|
||||
Release: 4%{?dist}
|
||||
Release: 5%{?dist}
|
||||
# Licensing based on generic "GNU GENERAL PUBLIC LICENSE"
|
||||
# in source, with no mention of version.
|
||||
# doc/COPYING file specifies what is GPL and what is LGPL
|
||||
@ -191,6 +191,9 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%{_includedir}/xfs/xfs_types.h
|
||||
|
||||
%changelog
|
||||
* Mon Jun 15 2009 Eric Sandeen <sandeen@redhat.com> 3.0.1-5
|
||||
- Add fallocate command to config script & fix for 32-bit
|
||||
|
||||
* Mon Jun 15 2009 Eric Sandeen <sandeen@redhat.com> 3.0.1-4
|
||||
- Add fallocate command to xfs_io
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user