From: Chao Yu <yuchao0@huawei.com>
To: <guaneryu@gmail.com>
Cc: <fstests@vger.kernel.org>,
<linux-f2fs-devel@lists.sourceforge.net>,
"Chao Yu" <yuchao0@huawei.com>
Subject: [PATCH 2/2] common/casefold: support f2fs
Date: Fri, 27 Sep 2019 18:06:27 +0800 [thread overview]
Message-ID: <20190927100627.9086-2-yuchao0@huawei.com> (raw)
Message-ID: <20190927100627.nPRugl6tCRor-64VtkQyD0JCfUobga9y4MM79APXNaU@z> (raw)
In-Reply-To: <20190927100627.9086-1-yuchao0@huawei.com>
Now, f2fs has ported casefold feature from ext4, let's enable the
testcase.
Signed-off-by: Chao Yu <yuchao0@huawei.com>
---
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"
;;
--
2.18.0.rc1
next prev parent reply other threads:[~2019-09-27 10:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-27 10:06 [PATCH 1/2] common/defrag: support f2fs Chao Yu
2019-09-27 10:06 ` Chao Yu
2019-09-27 10:06 ` Chao Yu [this message]
2019-09-27 10:06 ` [PATCH 2/2] common/casefold: " Chao Yu
2019-10-02 10:59 ` [PATCH 1/2] common/defrag: " Eryu Guan
2019-10-15 9:55 ` Chao Yu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190927100627.9086-2-yuchao0@huawei.com \
--to=yuchao0@huawei.com \
--cc=fstests@vger.kernel.org \
--cc=guaneryu@gmail.com \
--cc=linux-f2fs-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).