public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Eryu Guan <eguan@redhat.com>
To: Eric Biggers <ebiggers3@gmail.com>
Cc: fstests@vger.kernel.org, linux-xfs@vger.kernel.org,
	Eric Biggers <ebiggers@google.com>
Subject: Re: [PATCH v2 13/15] common: remove IRIX-specific code
Date: Fri, 28 Jul 2017 19:19:26 +0800	[thread overview]
Message-ID: <20170728111926.GE9167@eguan.usersys.redhat.com> (raw)
In-Reply-To: <20170721043853.364-14-ebiggers3@gmail.com>

On Thu, Jul 20, 2017 at 09:38:51PM -0700, Eric Biggers wrote:
> From: Eric Biggers <ebiggers@google.com>
> 
> As xfstests is no longer supported on IRIX, remove IRIX-specific code
> from the common helper scripts.
> 
> Signed-off-by: Eric Biggers <ebiggers@google.com>
> ---
>  common/config      | 12 ------------
>  common/dump        | 39 +++------------------------------------
>  common/filestreams | 43 ++++++-------------------------------------
>  common/log         |  1 -
>  common/rc          | 23 +++--------------------
>  5 files changed, 12 insertions(+), 106 deletions(-)
> 
> diff --git a/common/config b/common/config
> index 5091db9d..80598d06 100644
> --- a/common/config
> +++ b/common/config
> @@ -52,15 +52,10 @@
>  export LANG=C
>  export LC_ALL=C
>  
> -# Warning: don't put freeware before /usr/bsd on IRIX coz you'll
> -#  get the wrong hostname and set your system name to -s  :)
> -[ -d /usr/bsd ] && PATH=$PATH:/usr/bsd
> -[ -d /usr/freeware/bin ] && PATH=$PATH:/usr/freeware/bin
>  PATH=".:$PATH"
>  
>  export HOST=`hostname -s`
>  export HOSTOS=`uname -s`
> -[ "$HOSTOS" = "IRIX64" ] && export HOSTOS="IRIX"
>  
>  export MODULAR=0               # using XFS as a module or not
>  export BOOT="/boot"            # install target for kernels
> @@ -220,13 +215,6 @@ fi
>  export UDEV_SETTLE_PROG
>  
>  case "$HOSTOS" in
> -    IRIX*)
> -        export MKFS_XFS_PROG="`set_prog_path mkfs_xfs`"
> -        export MKFS_UDF_PROG="`set_prog_path mkfs_udf`"
> -        export XFS_FSR_PROG="`set_prog_path /usr/etc/fsr_xfs`"
> -        export MKFS_NFS_PROG="false"
> -        export MKFS_CIFS_PROG="false"
> -        ;;
>      Linux)
>          export MKFS_XFS_PROG="`set_prog_path mkfs.xfs`"
>          export MKFS_EXT4_PROG="`set_prog_path mkfs.ext4`"
> diff --git a/common/dump b/common/dump
> index d6663e0c..b0e4a12f 100644
> --- a/common/dump
> +++ b/common/dump
> @@ -395,8 +395,6 @@ End-of-File
>  
>  _mk_fillconfig_perm()
>  {
> -    # dir_guid: ugo=rwx,g+s on dir is for IRIX chmod(1)
> -
>      cat <<End-of-File >$tmp.config
>  # pathname	size/dir  user group mode
>  #
> @@ -406,7 +404,7 @@ file_sticky	10	$nobody	$nobody	01777
>  file_mix1	10	$nobody	$nobody	761
>  file_mix2	10	$nobody	$nobody	642
>  dir_suid	d	$nobody	$nobody	04777
> -dir_guid	d	$nobody	$nobody	ugo=rwx,g+s
> +dir_guid	d	$nobody	$nobody	02777
>  dir_sticky	d	$nobody	$nobody	01777
>  dir_mix1	d	$nobody	$nobody	761
>  dir_mix2	d	$nobody	$nobody	642
> @@ -798,25 +796,6 @@ _ls_filter()
>    | sed -e 's/total [0-9][0-9]*/total TOTAL/'
>  }
>  
> -#
> -# Filtering of Irix character hwgraph device names
> -# e.g.
> -# chardev: /hw/node/xtalk/15/pci/0/scsi_ctlr/0/target/1/lun/0/disk/partition/4/char
> -# blkdev:  /dev/dsk/dks0d1s4
> -#
> -_filter_devchar()
> -{
> -    $AWK_PROG '
> -	/\/hw\/node/ {
> -	    sub(/\/hw.*scsi_ctlr\//,"/dev/dsk/dks")  # blah blah /dev/dsk/dks0/target/1/....
> -	    sub(/\/target\//,"d")                    # blah blah /dev/dsk/dks0d1/lun/0/disk.....
> -	    sub(/\/lun.*partition\//,"s")            # blah blah /dev/dsk/dks0d1s4/char
> -	    sub(/\/char/,"")			     # blah blah /dev/dsk/dks0d1s4
> -	}
> -	{ print }
> -    '
> -}
> -
>  
>  #
>  # Filter out the non-deterministic dump msgs from
> @@ -824,7 +803,6 @@ _filter_devchar()
>  #
>  _dump_filter_main()
>  {
> -  _filter_devchar |\

I added this _filter_devchar function back as xfs/061 needs it,
otherwise it fails like:

 -xfsrestore: volume: /dev/dsk/dks0d2s1
 +xfsrestore: volume: /hw/node/io/gio/hpc/scsi_ctlr/0/target/2/lun/0/disk/partition/1/char

I think this is the safest and easiest thing to do at this moment.

Thanks,
Eryu

  reply	other threads:[~2017-07-28 11:19 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-21  4:38 [PATCH v2 00/15] xfstests: remove IRIX support Eric Biggers
2017-07-21  4:38 ` [PATCH v2 01/15] tests: port generic/093 to Linux Eric Biggers
2017-07-21  4:38 ` [PATCH v2 02/15] tests: port generic/097 " Eric Biggers
2017-07-21  4:38 ` [PATCH v2 03/15] tests: port xfs/095 " Eric Biggers
2017-07-21  4:38 ` [PATCH v2 04/15] tests: remove udf/098 Eric Biggers
2017-07-21  4:38 ` [PATCH v2 05/15] tests: remove udf/101 Eric Biggers
2017-07-21  4:38 ` [PATCH v2 06/15] tests: remove xfs/114 and xfs/115 Eric Biggers
2017-07-21  4:38 ` [PATCH v2 07/15] tests: remove xfs/057 and xfs/058 Eric Biggers
2017-07-21  4:38 ` [PATCH v2 08/15] tests: remove generic/099 Eric Biggers
2017-07-21  4:38 ` [PATCH v2 09/15] tests: make shared/051 a generic test Eric Biggers
2017-07-21  4:38 ` [PATCH v2 10/15] README: remove IRIX-specific documentation Eric Biggers
2017-07-21  4:38 ` [PATCH v2 11/15] tests: remove IRIX support from tests also supported on Linux Eric Biggers
2017-07-21  4:38 ` [PATCH v2 12/15] tests: clean up per-OS output files Eric Biggers
2017-07-21  4:38 ` [PATCH v2 13/15] common: remove IRIX-specific code Eric Biggers
2017-07-28 11:19   ` Eryu Guan [this message]
2017-07-28 16:50     ` Eric Biggers
2017-07-21  4:38 ` [PATCH v2 14/15] build: remove IRIX-specific build logic Eric Biggers
2017-07-21  4:38 ` [PATCH v2 15/15] include: remove some unused headers Eric Biggers
2017-07-24  4:43 ` [PATCH v2 00/15] xfstests: remove IRIX support Eryu Guan
2017-07-24 17:38   ` Eric Biggers

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=20170728111926.GE9167@eguan.usersys.redhat.com \
    --to=eguan@redhat.com \
    --cc=ebiggers3@gmail.com \
    --cc=ebiggers@google.com \
    --cc=fstests@vger.kernel.org \
    --cc=linux-xfs@vger.kernel.org \
    /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