From patchwork Fri Sep 27 10:06:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chao Yu X-Patchwork-Id: 11164261 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C00C076 for ; Fri, 27 Sep 2019 10:07:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A78B021848 for ; Fri, 27 Sep 2019 10:07:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726251AbfI0KHK (ORCPT ); Fri, 27 Sep 2019 06:07:10 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:3166 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725992AbfI0KHK (ORCPT ); Fri, 27 Sep 2019 06:07:10 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 5112D5ABBF7E19DD27E2; Fri, 27 Sep 2019 18:07:07 +0800 (CST) Received: from szvp000203569.huawei.com (10.120.216.130) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.439.0; Fri, 27 Sep 2019 18:06:56 +0800 From: Chao Yu To: CC: , , "Chao Yu" Subject: [PATCH 2/2] common/casefold: support f2fs Date: Fri, 27 Sep 2019 18:06:27 +0800 Message-ID: <20190927100627.9086-2-yuchao0@huawei.com> X-Mailer: git-send-email 2.18.0.rc1 In-Reply-To: <20190927100627.9086-1-yuchao0@huawei.com> References: <20190927100627.9086-1-yuchao0@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.120.216.130] X-CFilter-Loop: Reflected Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org Now, f2fs has ported casefold feature from ext4, let's enable the testcase. Signed-off-by: Chao Yu --- common/casefold | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/common/casefold b/common/casefold index 2a7ab3eb..9172d818 100644 --- a/common/casefold +++ b/common/casefold @@ -9,6 +9,9 @@ _has_casefold_kernel_support() ext4) test -f '/sys/fs/ext4/features/casefold' ;; + f2fs) + test -f '/sys/fs/f2fs/features/casefold' + ;; *) # defaults to unsupported false @@ -46,6 +49,9 @@ _scratch_mkfs_casefold() ext4) _scratch_mkfs -O casefold $* ;; + f2fs) + _scratch_mkfs -C utf8 $* + ;; *) _notrun "Don't know how to mkfs with casefold support on $FSTYP" ;; @@ -58,6 +64,9 @@ _scratch_mkfs_casefold_strict() ext4) _scratch_mkfs -O casefold -E encoding_flags=strict ;; + f2fs) + _scratch_mkfs -C utf8:strict + ;; *) _notrun "Don't know how to mkfs with casefold-strict support on $FSTYP" ;;