From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sheng Yong Subject: [RFC PATCH v5 0/3] f2fs: introduce F2FS_FEATURE_LOST_FOUND feature Date: Thu, 15 Mar 2018 18:51:40 +0800 Message-ID: <20180315105143.133050-1-shengyong1@huawei.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ewQUd-000462-39 for linux-f2fs-devel@lists.sourceforge.net; Thu, 15 Mar 2018 10:52:19 +0000 Received: from sfi-lb-mx.v20.lw.sourceforge.com ([172.30.20.201] helo=huawei.com) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) id 1ewQUb-00CJhq-AY for linux-f2fs-devel@lists.sourceforge.net; Thu, 15 Mar 2018 10:52:18 +0000 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net To: jaegeuk@kernel.org, yuchao0@huawei.com, ebiggers@google.com, tytso@mit.edu Cc: linux-fscrypt@vger.kernel.org, miaoxie@huawei.com, linux-f2fs-devel@lists.sourceforge.net v5->v4: * add doc for new mount option test_dummy_encryption * move test_dummy_encryption flag to f2fs_mount_info * move DUMMY_ENCRYPTION_ENABLED check to parse_option * remove readonly check since we don't enable encrypt feature forcely v4->v3: * split f2fs patch into 2: one for LOST_FOUND feature, another for test_dummy_encryption * do not set enc_name if dir is not encrypted * do not allow mounting with test_dummy_encryption if encrypt feature is not set v3->v2: * fix test_dummy_encryption v2->v1: * introduce new mount option test_dummy_encryption * add sysfs entry for LOST_FOUND feature ---8<--- This patchset introduces LOST_FOUND feature in f2fs. If the feature is enabled, f2fs should avoid to encrypt root directory. A new mount option "test_dummy_encryption" is introduced, this is used by xfstests. Thanks, Sheng Sheng Yong (3): f2fs: introduce F2FS_FEATURE_LOST_FOUND feature f2fs: introduce a new mount option test_dummy_encryption ext4: do not allow mount with test_dummy_encryption if encrypt not set Documentation/filesystems/f2fs.txt | 2 ++ fs/ext4/super.c | 7 +++---- fs/f2fs/dir.c | 4 +++- fs/f2fs/f2fs.h | 10 ++++++++++ fs/f2fs/namei.c | 9 ++++++--- fs/f2fs/super.c | 40 ++++++++++++++++++++++++++++++++++++++ fs/f2fs/sysfs.c | 7 +++++++ 7 files changed, 71 insertions(+), 8 deletions(-) -- 2.16.2 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot