Move all to deprecated folder.
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
From 265d97d02e8ef373653c76a339869985eb3ba27a Mon Sep 17 00:00:00 2001
|
||||
From: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||
Date: Tue, 10 Mar 2015 15:10:35 -0300
|
||||
Subject: [PATCH] configure: add check for fallocate
|
||||
|
||||
We need to check for fallocate() rather than just linux/falloc.h +
|
||||
FALLOC_FL_PUNCH_HOLE since in uClibc we've got both but still not
|
||||
fallocate() itself since it's only implemented in newer unreleased
|
||||
versions.
|
||||
|
||||
Status: sent upstream.
|
||||
|
||||
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||
---
|
||||
configure.ac | 1 +
|
||||
mkfs/f2fs_format_utils.c | 2 +-
|
||||
2 files changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index ae451b8..900b84a 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -68,6 +68,7 @@ AC_TYPE_SIZE_T
|
||||
# Checks for library functions.
|
||||
AC_FUNC_GETMNTENT
|
||||
AC_CHECK_FUNCS_ONCE([
|
||||
+ fallocate
|
||||
getmntent
|
||||
memset
|
||||
])
|
||||
diff --git a/mkfs/f2fs_format_utils.c b/mkfs/f2fs_format_utils.c
|
||||
index a0f85f5..ddeafeb 100644
|
||||
--- a/mkfs/f2fs_format_utils.c
|
||||
+++ b/mkfs/f2fs_format_utils.c
|
||||
@@ -46,7 +46,7 @@ int f2fs_trim_device()
|
||||
#if defined(WITH_BLKDISCARD) && defined(BLKDISCARD)
|
||||
MSG(0, "Info: Discarding device\n");
|
||||
if (S_ISREG(stat_buf.st_mode)) {
|
||||
-#ifdef FALLOC_FL_PUNCH_HOLE
|
||||
+#if defined(HAVE_FALLOCATE) && defined(FALLOC_FL_PUNCH_HOLE)
|
||||
if (fallocate(config.fd, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE,
|
||||
range[0], range[1]) < 0) {
|
||||
MSG(0, "Info: fallocate(PUNCH_HOLE|KEEP_SIZE) is failed\n");
|
||||
--
|
||||
2.0.5
|
||||
|
||||
12
deprecated/firmware/buildroot/package/f2fs-tools/Config.in
Normal file
12
deprecated/firmware/buildroot/package/f2fs-tools/Config.in
Normal file
@@ -0,0 +1,12 @@
|
||||
config BR2_PACKAGE_F2FS_TOOLS
|
||||
bool "f2fs-tools"
|
||||
select BR2_PACKAGE_UTIL_LINUX
|
||||
select BR2_PACKAGE_UTIL_LINUX_LIBUUID
|
||||
depends on BR2_USE_WCHAR # util-linux
|
||||
help
|
||||
Tools for Flash-Friendly File System (F2FS)
|
||||
|
||||
http://sourceforge.net/projects/f2fs-tools/
|
||||
|
||||
comment "f2fs-tools needs a toolchain w/ wchar"
|
||||
depends on !BR2_USE_WCHAR
|
||||
@@ -0,0 +1,18 @@
|
||||
################################################################################
|
||||
#
|
||||
# f2fs-tools
|
||||
#
|
||||
################################################################################
|
||||
|
||||
F2FS_TOOLS_VERSION = fd32210229d4ad7d1c916c74a0dfc150aae4c89e
|
||||
F2FS_TOOLS_SITE = http://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git
|
||||
F2FS_TOOLS_SITE_METHOD = git
|
||||
F2FS_TOOLS_CONF_ENV = ac_cv_file__git=no
|
||||
F2FS_TOOLS_DEPENDENCIES = host-pkgconf util-linux
|
||||
# GIT version, shipped without configure
|
||||
F2FS_TOOLS_AUTORECONF = YES
|
||||
F2FS_TOOLS_INSTALL_STAGING = YES
|
||||
F2FS_TOOLS_LICENSE = GPLv2
|
||||
F2FS_TOOLS_LICENSE_FILES = COPYING
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user