Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 516988 | Differences between
and this patch

Collapse All | Expand All

(-)a/configure (-1 / +1 lines)
Lines 13071-13077 if test "$ac_res" != no; then : Link Here
13071
fi
13071
fi
13072
13072
13073
fi
13073
fi
13074
for ac_func in  	__secure_getenv 	backtrace 	blkid_probe_get_topology 	blkid_probe_enable_partitions 	chflags 	fadvise64 	fallocate 	fallocate64 	fchown 	fdatasync 	fstat64 	ftruncate64 	futimes 	getcwd 	getdtablesize 	getmntinfo 	getpwuid_r 	getrlimit 	getrusage 	jrand48 	llseek 	lseek64 	mallinfo 	mbstowcs 	memalign 	mempcpy 	mmap 	msync 	nanosleep 	open64 	pathconf 	posix_fadvise 	posix_fadvise64 	posix_memalign 	prctl 	secure_getenv 	setmntent 	setresgid 	setresuid 	snprintf 	srandom 	stpcpy 	strcasecmp 	strdup 	strnlen 	strptime 	strtoull 	sync_file_range 	sysconf 	usleep 	utime 	valloc
13074
for ac_func in  	__secure_getenv 	backtrace 	blkid_probe_get_topology 	blkid_probe_enable_partitions 	chflags 	fadvise64 	fallocate 	fallocate64 	fchown 	fdatasync 	fstat64 	ftruncate64 	futimes 	getcwd 	getdtablesize 	getmntinfo 	getpwuid_r 	getrlimit 	getrusage 	jrand48 	llseek 	lseek64 	mallinfo 	mbstowcs 	memalign 	mempcpy 	mmap 	msync 	nanosleep 	open64 	pathconf 	posix_fadvise 	posix_fadvise64 	posix_fallocate 	posix_fallocate64 	posix_memalign 	prctl 	secure_getenv 	setmntent 	setresgid 	setresuid 	snprintf 	srandom 	stpcpy 	strcasecmp 	strdup 	strnlen 	strptime 	strtoull 	sync_file_range 	sysconf 	usleep 	utime 	valloc
13075
do :
13075
do :
13076
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13076
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13077
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13077
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
(-)a/configure.in (+2 lines)
Lines 1111-1116 AC_CHECK_FUNCS(m4_flatten([ Link Here
1111
	pathconf
1111
	pathconf
1112
	posix_fadvise
1112
	posix_fadvise
1113
	posix_fadvise64
1113
	posix_fadvise64
1114
	posix_fallocate
1115
	posix_fallocate64
1114
	posix_memalign
1116
	posix_memalign
1115
	prctl
1117
	prctl
1116
	secure_getenv
1118
	secure_getenv
(-)a/lib/config.h.in (+6 lines)
Lines 325-330 Link Here
325
/* Define to 1 if you have the `posix_fadvise64' function. */
325
/* Define to 1 if you have the `posix_fadvise64' function. */
326
#undef HAVE_POSIX_FADVISE64
326
#undef HAVE_POSIX_FADVISE64
327
327
328
/* Define to 1 if you have the `posix_fallocate' function. */
329
#undef HAVE_POSIX_FALLOCATE
330
331
/* Define to 1 if you have the `posix_fallocate64' function. */
332
#undef HAVE_POSIX_FALLOCATE64
333
328
/* Define to 1 if you have the `posix_memalign' function. */
334
/* Define to 1 if you have the `posix_memalign' function. */
329
#undef HAVE_POSIX_MEMALIGN
335
#undef HAVE_POSIX_MEMALIGN
330
336
(-)a/misc/e4defrag.c (-4 / +7 lines)
Lines 197-205 static struct frag_statistic_ino frag_rank[SHOW_FRAG_FILES]; Link Here
197
#error sync_file_range not available!
197
#error sync_file_range not available!
198
#endif /* ! HAVE_SYNC_FILE_RANGE */
198
#endif /* ! HAVE_SYNC_FILE_RANGE */
199
199
200
#ifndef HAVE_FALLOCATE64
200
#ifdef !defined(HAVE_FALLOCATE64) && !defined(HAVE_POSIX_FALLOCATE64)
201
#error fallocate64 not available!
201
#error neither fallocate64 nor posix_fallocate64 available!
202
#endif /* ! HAVE_FALLOCATE64 */
202
#endif /* ! HAVE_FALLOCATE64 && ! HAVE_POSIX_FALLOCATE64 */
203
203
204
/*
204
/*
205
 * get_mount_point() -	Get device's mount point.
205
 * get_mount_point() -	Get device's mount point.
Lines 1552-1558 static int file_defrag(const char *file, const struct stat64 *buf, Link Here
1552
	/* Allocate space for donor inode */
1552
	/* Allocate space for donor inode */
1553
	orig_group_tmp = orig_group_head;
1553
	orig_group_tmp = orig_group_head;
1554
	do {
1554
	do {
1555
#ifdef HAVE_FALLOCATE64
1555
		ret = fallocate64(donor_fd, 0,
1556
		ret = fallocate64(donor_fd, 0,
1557
#else /* HAVE_POSIX_FALLOCATE64 */
1558
		ret = posix_fallocate64(donor_fd,
1559
#endif
1556
		  (loff_t)orig_group_tmp->start->data.logical * block_size,
1560
		  (loff_t)orig_group_tmp->start->data.logical * block_size,
1557
		  (loff_t)orig_group_tmp->len * block_size);
1561
		  (loff_t)orig_group_tmp->len * block_size);
1558
		if (ret < 0) {
1562
		if (ret < 0) {
1559
- 

Return to bug 516988