From patchwork Wed Dec 17 22:29:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dushan Tcholich X-Patchwork-Id: 5509211 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 27A18BEEA8 for ; Wed, 17 Dec 2014 20:29:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4266F209DE for ; Wed, 17 Dec 2014 20:29:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5BD3F209DC for ; Wed, 17 Dec 2014 20:29:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751323AbaLQU3d (ORCPT ); Wed, 17 Dec 2014 15:29:33 -0500 Received: from mail-wi0-f179.google.com ([209.85.212.179]:45239 "EHLO mail-wi0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750995AbaLQU3d (ORCPT ); Wed, 17 Dec 2014 15:29:33 -0500 Received: by mail-wi0-f179.google.com with SMTP id ex7so98208wid.6 for ; Wed, 17 Dec 2014 12:29:31 -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=exYEvzCzciPrY4yksW6BwK9Xg42ZTiHcUj4DGIr1IWA=; b=Mp5qF9fHP8E3PUrhRKiJCr0q8aQ3dzXbeYN6WzTXR2Xi4++7v44k6kYeqWUdLYrBVv co8Oshjl2LCrC5rFKAyphIPWcqk/o9bO4PGq5E0xEZmcQ+exkJx+6xcg5DL9QwCt+L0O 97NR5iQiWTiaWAvb5sgQkMRImaGR7VCkkYFlH9PVIMXgUh45G101WsqzW+jcGuCMD4Vj QBMtSt6oAvMcB4xO3SKW5nY/g9+lwqEg7Zi3UOmmkwJENb8B+H3jpLBbLXjAbOPPhWIM 4+DnCUTZkk1BxLK7JMkuymGlTpUOERw/+aEbiplXODtFDGvGY4UCmlX5WbE+Pg/OhkoT tDOg== X-Received: by 10.194.110.69 with SMTP id hy5mr76568234wjb.121.1418848171816; Wed, 17 Dec 2014 12:29:31 -0800 (PST) Received: from [192.168.0.2] (109-93-61-240.dynamic.isp.telekom.rs. [109.93.61.240]) by mx.google.com with ESMTPSA id bs2sm6372762wjc.43.2014.12.17.12.29.30 for (version=TLSv1.2 cipher=AES128-GCM-SHA256 bits=128/128); Wed, 17 Dec 2014 12:29:31 -0800 (PST) Date: Wed, 17 Dec 2014 23:29:55 +0100 (CET) From: Dushan Tcholich X-X-Sender: root@reiser4.gekom To: fstests@vger.kernel.org Subject: [PATCH v2] 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 Initial xfstests implementation for Reiser4 filesystem. Signed-off-by: Dushan Tcholich --- v2: Added support for MKFS_REISER4_PROG into common/config Used reiser* wherever possible Added setup checks for mkfs.reiser4 in common/rc Added comment that mkfs.reiser4 expects KB for size -- 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 diff -urN xfstests.orig/common/config xfstests/common/config --- xfstests.orig/common/config 2014-12-17 01:00:05.000000000 +0100 +++ xfstests/common/config 2014-12-17 01:22:41.000000000 +0100 @@ -224,6 +224,7 @@ export XFS_FSR_PROG="`set_prog_path xfs_fsr`" export MKFS_NFS_PROG="false" export MKFS_CIFS_PROG="false" + export MKFS_REISER4_PROG="`set_prog_path mkfs.reiser4`" ;; esac @@ -258,6 +259,10 @@ # acls & xattrs aren't turned on by default on reiserfs export MOUNT_OPTIONS="-o acl,user_xattr $REISERFS_MOUNT_OPTIONS" ;; + reiser4) + # acls & xattrs aren't supported by 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 +307,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" ;; @@ -319,7 +327,7 @@ ext2|ext3|ext4|ext4dev) export FSCK_OPTIONS="-nf" ;; - reiserfs) + reiser*) export FSCK_OPTIONS="--yes" ;; *) diff -urN xfstests.orig/common/rc xfstests/common/rc --- xfstests.orig/common/rc 2014-12-17 01:00:05.000000000 +0100 +++ xfstests/common/rc 2014-12-17 22:58:38.000000000 +0100 @@ -112,6 +112,9 @@ ;; cifs) ;; + reiser4) + [ "$MKFS_REISER4_PROG" = "" ] && _fatal "mkfs.reiser4 not found" + ;; esac # make sure we have a standard umask @@ -633,7 +636,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 @@ -676,6 +679,11 @@ btrfs) $MKFS_BTRFS_PROG $MKFS_OPTIONS -b $fssize $SCRATCH_DEV ;; + reiser4) + # mkfs.resier4 requires size in KB as input for creating filesystem + $MKFS_REISER4_PROG $MKFS_OPTIONS -y -b $blocksize $SCRATCH_DEV \ + `expr $fssize / 1024` + ;; *) _notrun "Filesystem $FSTYP not supported in _scratch_mkfs_sized" ;;