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 	llistxattr 	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 	llistxattr 	llseek 	lseek64 	mallinfo 	mbstowcs 	memalign 	mempcpy 	mmap 	msync 	nanosleep 	open64 	pathconf 	posix_fadvise 	posix_fadvise64 	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 (+1 lines)
Lines 1113-1118 AC_CHECK_FUNCS(m4_flatten([ Link Here
1113
	pathconf
1113
	pathconf
1114
	posix_fadvise
1114
	posix_fadvise
1115
	posix_fadvise64
1115
	posix_fadvise64
1116
	posix_fallocate64
1116
	posix_memalign
1117
	posix_memalign
1117
	prctl
1118
	prctl
1118
	secure_getenv
1119
	secure_getenv
(-)a/lib/config.h.in (+3 lines)
Lines 331-336 Link Here
331
/* Define to 1 if you have the `posix_fadvise64' function. */
331
/* Define to 1 if you have the `posix_fadvise64' function. */
332
#undef HAVE_POSIX_FADVISE64
332
#undef HAVE_POSIX_FADVISE64
333
333
334
/* Define to 1 if you have the `posix_fallocate64' function. */
335
#undef HAVE_POSIX_FALLOCATE64
336
334
/* Define to 1 if you have the `posix_memalign' function. */
337
/* Define to 1 if you have the `posix_memalign' function. */
335
#undef HAVE_POSIX_MEMALIGN
338
#undef HAVE_POSIX_MEMALIGN
336
339
(-)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
#if !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 1554-1560 static int file_defrag(const char *file, const struct stat64 *buf, Link Here
1554
	/* Allocate space for donor inode */
1554
	/* Allocate space for donor inode */
1555
	orig_group_tmp = orig_group_head;
1555
	orig_group_tmp = orig_group_head;
1556
	do {
1556
	do {
1557
#ifdef HAVE_FALLOCATE64
1557
		ret = fallocate64(donor_fd, 0,
1558
		ret = fallocate64(donor_fd, 0,
1559
#else /* HAVE_POSIX_FALLOCATE64 */
1560
		ret = posix_fallocate64(donor_fd,
1561
#endif
1558
		  (loff_t)orig_group_tmp->start->data.logical * block_size,
1562
		  (loff_t)orig_group_tmp->start->data.logical * block_size,
1559
		  (loff_t)orig_group_tmp->len * block_size);
1563
		  (loff_t)orig_group_tmp->len * block_size);
1560
		if (ret < 0) {
1564
		if (ret < 0) {
1561
- 

Return to bug 516988