From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 51047138334 for ; Mon, 3 Dec 2018 14:12:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2C5DEE0AC9; Mon, 3 Dec 2018 14:12:51 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DC4DBE0AC9 for ; Mon, 3 Dec 2018 14:12:50 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 27BF8335CA6 for ; Mon, 3 Dec 2018 14:12:49 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 832AA4DA for ; Mon, 3 Dec 2018 14:12:46 +0000 (UTC) From: "Mikle Kolyada" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mikle Kolyada" Message-ID: <1543846361.76ae45b316e09ec982a1f02d77017efbd5909d40.zlogene@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/f2fs-tools/, sys-fs/f2fs-tools/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-fs/f2fs-tools/f2fs-tools-1.12.0-r1.ebuild sys-fs/f2fs-tools/files/f2fs-tools-1.12.0-fsck.patch X-VCS-Directories: sys-fs/f2fs-tools/ sys-fs/f2fs-tools/files/ X-VCS-Committer: zlogene X-VCS-Committer-Name: Mikle Kolyada X-VCS-Revision: 76ae45b316e09ec982a1f02d77017efbd5909d40 X-VCS-Branch: master Date: Mon, 3 Dec 2018 14:12:46 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 8db8e340-dec4-42ac-a8a3-3ae4942a5c7c X-Archives-Hash: c74d4263003d7fb4cee83bfc997814ce commit: 76ae45b316e09ec982a1f02d77017efbd5909d40 Author: Mikle Kolyada gentoo org> AuthorDate: Mon Dec 3 14:12:19 2018 +0000 Commit: Mikle Kolyada gentoo org> CommitDate: Mon Dec 3 14:12:41 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=76ae45b3 sys-fs/f2fs-tools: revbump to fix fsck on boot Closes: https://bugs.gentoo.org/671786 Signed-off-by: Mikle Kolyada gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11 sys-fs/f2fs-tools/f2fs-tools-1.12.0-r1.ebuild | 37 ++++++++++++++ .../f2fs-tools/files/f2fs-tools-1.12.0-fsck.patch | 56 ++++++++++++++++++++++ 2 files changed, 93 insertions(+) diff --git a/sys-fs/f2fs-tools/f2fs-tools-1.12.0-r1.ebuild b/sys-fs/f2fs-tools/f2fs-tools-1.12.0-r1.ebuild new file mode 100644 index 00000000000..523fddda177 --- /dev/null +++ b/sys-fs/f2fs-tools/f2fs-tools-1.12.0-r1.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools + +DESCRIPTION="Tools for Flash-Friendly File System (F2FS)" +HOMEPAGE="https://git.kernel.org/cgit/linux/kernel/git/jaegeuk/f2fs-tools.git/about/" +SRC_URI="https://dev.gentoo.org/~zlogene/distfiles/${CATEGORY}/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0/6" +KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~x86" +IUSE="selinux" + +RDEPEND="selinux? ( sys-libs/libselinux )" +DEPEND="${RDEPEND}" + +src_prepare() { + eapply "${FILESDIR}"/${P}-fsck.patch + default + eautoreconf +} + +src_configure() { + #This is required to install to /sbin, bug #481110 + econf \ + --bindir="${EPREFIX}"/sbin \ + --disable-static \ + $(use_with selinux) +} + +src_install() { + default + find "${D}" -name "*.la" -delete || die +} diff --git a/sys-fs/f2fs-tools/files/f2fs-tools-1.12.0-fsck.patch b/sys-fs/f2fs-tools/files/f2fs-tools-1.12.0-fsck.patch new file mode 100644 index 00000000000..72d86fec465 --- /dev/null +++ b/sys-fs/f2fs-tools/files/f2fs-tools-1.12.0-fsck.patch @@ -0,0 +1,56 @@ +From a6160c3e21f43b89b49802cc4a956d1c4b65ae44 Mon Sep 17 00:00:00 2001 +From: Chao Yu +Date: Mon, 26 Nov 2018 18:53:37 +0800 +Subject: fsck.f2fs: allow to fsck readonly image w/ -f option + +To keep line with e2fsprogs, let's allow to fsck mounted image as +readonly w/ -f option. + +Reported-by: Perfect Gentleman +Signed-off-by: Chao Yu +--- + fsck/main.c | 1 + + include/f2fs_fs.h | 1 + + lib/libf2fs.c | 2 +- + 3 files changed, 3 insertions(+), 1 deletion(-) + +diff --git a/fsck/main.c b/fsck/main.c +index 675c603..bb79f6e 100644 +--- a/fsck/main.c ++++ b/fsck/main.c +@@ -249,6 +249,7 @@ void f2fs_parse_options(int argc, char *argv[]) + case 'f': + case 'y': + c.fix_on = 1; ++ c.force = 1; + MSG(0, "Info: Force to fix corruption\n"); + break; + case 'q': +diff --git a/include/f2fs_fs.h b/include/f2fs_fs.h +index 65cc8fd..6eebb3a 100644 +--- a/include/f2fs_fs.h ++++ b/include/f2fs_fs.h +@@ -369,6 +369,7 @@ struct f2fs_configuration { + void *private; + int dry_run; + int fix_on; ++ int force; + int defset; + int bug_on; + int alloc_failed; +diff --git a/lib/libf2fs.c b/lib/libf2fs.c +index cc335db..498f6c0 100644 +--- a/lib/libf2fs.c ++++ b/lib/libf2fs.c +@@ -821,7 +821,7 @@ int get_device_info(int i) + return -1; + } + +- if (S_ISBLK(stat_buf->st_mode)) ++ if (S_ISBLK(stat_buf->st_mode) && !c.force) + fd = open(dev->path, O_RDWR | O_EXCL); + else + fd = open(dev->path, O_RDWR); +-- +cgit 1.2-0.3.lf.el7 +