From patchwork Mon Dec 22 22:29:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaegeuk Kim X-Patchwork-Id: 5529191 Return-Path: X-Original-To: patchwork-fstests@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 6573FBEEA8 for ; Mon, 22 Dec 2014 22:29:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 92EA02017A for ; Mon, 22 Dec 2014 22:29:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B9CB7200FE for ; Mon, 22 Dec 2014 22:29:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753069AbaLVW3a (ORCPT ); Mon, 22 Dec 2014 17:29:30 -0500 Received: from mail.kernel.org ([198.145.19.201]:40033 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752822AbaLVW3a (ORCPT ); Mon, 22 Dec 2014 17:29:30 -0500 Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 86D9A20172; Mon, 22 Dec 2014 22:29:28 +0000 (UTC) Received: from localhost (unknown [166.170.40.197]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0C4B6200FE; Mon, 22 Dec 2014 22:29:26 +0000 (UTC) Date: Mon, 22 Dec 2014 14:29:25 -0800 From: Jaegeuk Kim To: Dave Chinner Cc: Eric Sandeen , fstests@vger.kernel.org, linux-f2fs-devel@lists.sourceforget.net Subject: Re: [PATCH] xfstests: f2fs support Message-ID: <20141222222925.GA8287@jaegeuk-mac02.mot.com> References: <1401717572-21731-1-git-send-email-jaegeuk@kernel.org> <549866D8.1030507@sandeen.net> <20141222213513.GR15665@dastard> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20141222213513.GR15665@dastard> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Thanks Eric, I totally forgot this patch to repost. Dave, Could you please apply this patch? Thanks, -- >8 -- From 86eb93921e1ce28e965e3152ac7066b45bccb4eb Mon Sep 17 00:00:00 2001 From: Jaegeuk Kim Date: Mon, 2 Jun 2014 20:09:19 +0900 Subject: [PATCH] xfstests: f2fs support This patch adds to support f2fs file system. Signed-off-by: Jaegeuk Kim Reviewed-by: Lukas Czerner --- common/config | 7 +++++++ common/rc | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/common/config b/common/config index e9971fd..06bdee2 100644 --- a/common/config +++ b/common/config @@ -219,6 +219,7 @@ case "$HOSTOS" in export MKFS_EXT4_PROG="`set_prog_path mkfs.ext4`" export MKFS_UDF_PROG="`set_prog_path mkudffs`" export MKFS_BTRFS_PROG="`set_btrfs_mkfs_prog_path_with_opts`" + export MKFS_F2FS_PROG="`set_prog_path mkfs.f2fs`" export BTRFS_UTIL_PROG="`set_prog_path btrfs`" export BTRFS_SHOW_SUPER_PROG="`set_prog_path btrfs-show-super`" export XFS_FSR_PROG="`set_prog_path xfs_fsr`" @@ -254,6 +255,9 @@ _mount_opts() # acls & xattrs aren't turned on by default on ext$FOO export MOUNT_OPTIONS="-o acl,user_xattr $EXT_MOUNT_OPTIONS" ;; + f2fs) + export MOUNT_OPTIONS="-o acl,user_xattr $F2FS_MOUNT_OPTIONS" + ;; reiserfs) # acls & xattrs aren't turned on by default on reiserfs export MOUNT_OPTIONS="-o acl,user_xattr $REISERFS_MOUNT_OPTIONS" @@ -322,6 +326,9 @@ _fsck_opts() reiserfs) export FSCK_OPTIONS="--yes" ;; + f2fs) + export FSCK_OPTIONS="" + ;; *) export FSCK_OPTIONS="-n" ;; diff --git a/common/rc b/common/rc index 82a91c2..a39885d 100644 --- a/common/rc +++ b/common/rc @@ -108,6 +108,9 @@ case "$FSTYP" in ext4) [ "$MKFS_EXT4_PROG" = "" ] && _fatal "mkfs.ext4 not found" ;; + f2fs) + [ "$MKFS_F2FS_PROG" = "" ] && _fatal "mkfs.f2fs not found" + ;; nfs) ;; cifs) @@ -598,6 +601,9 @@ _scratch_mkfs() tmpfs) # do nothing for tmpfs ;; + f2fs) + $MKFS_F2FS_PROG $MKFS_OPTIONS $* $SCRATCH_DEV > /dev/null + ;; *) yes | $MKFS_PROG -t $FSTYP -- $MKFS_OPTIONS $* $SCRATCH_DEV ;;