From patchwork Tue Oct 15 10:09:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chao Yu X-Patchwork-Id: 11189937 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 D6342112B for ; Tue, 15 Oct 2019 10:10:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C09A32089C for ; Tue, 15 Oct 2019 10:10:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727018AbfJOKKK (ORCPT ); Tue, 15 Oct 2019 06:10:10 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:3761 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727625AbfJOKKK (ORCPT ); Tue, 15 Oct 2019 06:10:10 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 69A51920D057863A23CD; Tue, 15 Oct 2019 18:10:08 +0800 (CST) Received: from szvp000203569.huawei.com (10.120.216.130) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.439.0; Tue, 15 Oct 2019 18:09:58 +0800 From: Chao Yu To: CC: , , "Chao Yu" Subject: [PATCH v2 2/2] common/casefold: support f2fs Date: Tue, 15 Oct 2019 18:09:38 +0800 Message-ID: <20191015100938.123519-2-yuchao0@huawei.com> X-Mailer: git-send-email 2.18.0.rc1 In-Reply-To: <20191015100938.123519-1-yuchao0@huawei.com> References: <20191015100938.123519-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 --- v2: - no changes. 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" ;;