From patchwork Mon Dec 15 22:19:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dushan Tcholich X-Patchwork-Id: 5497491 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 75519BEEA8 for ; Mon, 15 Dec 2014 20:19:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 98941209EB for ; Mon, 15 Dec 2014 20:19:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B08FA209C9 for ; Mon, 15 Dec 2014 20:19:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751105AbaLOUTQ (ORCPT ); Mon, 15 Dec 2014 15:19:16 -0500 Received: from mail-wi0-f173.google.com ([209.85.212.173]:58533 "EHLO mail-wi0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750873AbaLOUTP (ORCPT ); Mon, 15 Dec 2014 15:19:15 -0500 Received: by mail-wi0-f173.google.com with SMTP id r20so10131737wiv.12 for ; Mon, 15 Dec 2014 12:19:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:user-agent:mime-version :content-type; bh=3CizlNnuxfjHEEaMvsx5UfXtzLihIqKsydOfG43USNY=; b=twvnTAXJWxJ18nPHYg5Nz+iIpN0icWmj4EJkYwqH2dj7mslLLDTUtokd9Dp+5wRisN dpwxYlCndIjaorbFFT30lZYS4cDdZn1zfeLo/q1OttPOT4l9gseGJfqusfus84xQASmJ Rt3XRy3C2hNonL9Ey6NhnqOlIYV6XEBSRdnZCKT3O51YYTpGtoeHUmTcyNUdL9US4kaN B36sO4O9es36sTOR6GWKtqLvfKReQEhMFcYOJFxkSRHbDZvHxE8LYCA6ZAIKA4CGKqTM TuvMUU7NBfRe0KXm3InuM+YLtLAOjPP+uhkCscpRr+q0N4wJOHckNrDnO4lwZ5Vbr97Z k0Sg== X-Received: by 10.180.72.199 with SMTP id f7mr34474599wiv.58.1418674753971; Mon, 15 Dec 2014 12:19:13 -0800 (PST) Received: from [192.168.0.2] (178-222-112-234.dynamic.isp.telekom.rs. [178.222.112.234]) by mx.google.com with ESMTPSA id e18sm7508270wjz.27.2014.12.15.12.19.13 for (version=TLSv1.2 cipher=AES128-GCM-SHA256 bits=128/128); Mon, 15 Dec 2014 12:19:13 -0800 (PST) Date: Mon, 15 Dec 2014 23:19:43 +0100 (CET) From: Dushan Tcholich X-X-Sender: root@reiser4.gekom To: fstests@vger.kernel.org Subject: [PATCH] Reiser4 initial implementation Message-ID: User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 This is initial xfstests implementation for Reiser4 filesystem. Signed-off-by: Dushan Tcholich --- To unsubscribe from this list: send the line "unsubscribe fstests" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- xfstests.orig/common/rc 2014-12-14 15:17:59.000000000 +0100 +++ xfstests/common/rc 2014-12-15 19:40:36.000000000 +0100 @@ -622,7 +622,7 @@ xfs) def_blksz=`echo $MKFS_OPTIONS|sed -rn 's/.*-b ?size= ?+([0-9]+).*/\1/p'` ;; - ext2|ext3|ext4|ext4dev|udf|btrfs) + ext2|ext3|ext4|ext4dev|udf|btrfs|reiser4) def_blksz=`echo $MKFS_OPTIONS| sed -rn 's/.*-b ?+([0-9]+).*/\1/p'` ;; esac @@ -640,6 +640,7 @@ fi blocks=`expr $fssize / $blocksize` + fssizeK=`expr $fssize / 1024`K if [ "$HOSTOS" == "Linux" ]; then devsize=`blockdev --getsize64 $SCRATCH_DEV` @@ -665,6 +666,9 @@ btrfs) $MKFS_BTRFS_PROG $MKFS_OPTIONS -b $fssize $SCRATCH_DEV ;; + reiser4) + ${MKFS_PROG}.$FSTYP $MKFS_OPTIONS -y -b $blocksize $SCRATCH_DEV $fssizeK + ;; *) _notrun "Filesystem $FSTYP not supported in _scratch_mkfs_sized" ;; --- xfstests.orig/common/config 2014-12-14 15:17:59.000000000 +0100 +++ xfstests/common/config 2014-12-12 13:27:40.000000000 +0100 @@ -258,6 +256,9 @@ # acls & xattrs aren't turned on by default on reiserfs export MOUNT_OPTIONS="-o acl,user_xattr $REISERFS_MOUNT_OPTIONS" ;; + reiser4) + export MOUNT_OPTIONS=$REISER4_MOUNT_OPTIONS + ;; gfs2) # acls aren't turned on by default on gfs2 export MOUNT_OPTIONS="-o acl $GFS2_MOUNT_OPTIONS" @@ -302,6 +303,9 @@ reiserfs) export MKFS_OPTIONS="$REISERFS_MKFS_OPTIONS -q" ;; + reiser4) + export MKFS_OPTIONS=$REISER4_MKFS_OPTIONS + ;; gfs2) export MKFS_OPTIONS="$GFS2_MKFS_OPTIONS -O -p lock_nolock" ;; @@ -322,6 +326,9 @@ reiserfs) export FSCK_OPTIONS="--yes" ;; + reiser4) + export FSCK_OPTIONS="--yes" + ;; *) export FSCK_OPTIONS="-n" ;;