Skip to contentSkip to conversation

xfsprogs: remove unused scripts

PATCH Christoph Hellwig 2 participants 2 messages Sep 2, 2009 – Sep 9, 2009

lore
Share & tools
lore
#0 lore raw

xfs_check64.sh and xfs_ncheck64.sh are outdated copies of xfs_check.sh and xfs_ncheck.sh which call a non-existant xfs_db64 binary. They
are never installed or otherwise used, so remove them. They are
probably a leftover from IRIX

db/Makefile +0 -1
Index: xfsprogs-dev/db/Makefile
===================================================================
@@ -15,7 +15,6 @@ HFILES = addr.h agf.h agfl.h agi.h attr.
 	text.h type.h write.h attrset.h
 CFILES = $(HFILES:.h=.c)
 LSRCFILES = xfs_admin.sh xfs_check.sh xfs_ncheck.sh xfs_metadump.sh
-LSRCFILES += xfs_check64.sh xfs_ncheck64.sh
 
 LLDLIBS	= $(LIBXFS) $(LIBXLOG) $(LIBUUID) $(LIBRT) $(LIBPTHREAD)
 LTDEPENDENCIES = $(LIBXFS) $(LIBXLOG)
db/xfs_check64.sh deleted +0 -36
Index: xfsprogs-dev/db/xfs_check64.sh
===================================================================
@@ -1,36 +0,0 @@
-#!/bin/sh -f
-#
-# Copyright (c) 2000-2003 Silicon Graphics, Inc.  All Rights Reserved.
-#
-
-OPTS=" "
-DBOPTS=" "
-USAGE="Usage: xfs_check64 [-fsvV] [-l logdev] [-i ino]... [-b bno]... special"
-
-while getopts "b:fi:l:stvV" c
-do
-	case $c in
-	s)	OPTS=$OPTS"-s ";;
-	t)	OPTS=$OPTS"-t ";;
-	v)	OPTS=$OPTS"-v ";;
-	V)	OPTS=$OPTS"-V ";;
-	i)	OPTS=$OPTS"-i "$OPTARG" ";;
-	b)	OPTS=$OPTS"-b "$OPTARG" ";;
-	f)	DBOPTS=" -f";;
-	l)	DBOPTS=$DBOPTS" -l "$OPTARG" ";;
-	\?)	echo $USAGE 1>&2
-		exit 2
-		;;
-	esac
-done
-set -- extra $@
-shift $OPTIND
-case $# in
-	1)	xfs_db64$DBOPTS -F -i -p xfs_check64 -c "check$OPTS" $1
-		status=$?
-		;;
-	*)	echo $USAGE 1>&2
-		exit 2
-		;;
-esac
-exit $status
db/xfs_ncheck64.sh deleted +0 -34
Index: xfsprogs-dev/db/xfs_ncheck64.sh
===================================================================
@@ -1,34 +0,0 @@
-#!/bin/sh -f
-#
-# Copyright (c) 2000-2001 Silicon Graphics, Inc.  All Rights Reserved.
-#
-
-OPTS=" "
-DBOPTS=" "
-USAGE="usage: xfs_ncheck64 [-sfvV] [-l logdev] [-i ino]... special"
-
-while getopts "b:fi:l:svV" c
-do
-	case $c in
-	s)	OPTS=$OPTS"-s ";;
-	i)	OPTS=$OPTS"-i "$OPTARG" ";;
-	v)	OPTS=$OPTS"-v ";;
-	V)	OPTS=$OPTS"-V ";;
-	f)	DBOPTS=" -f";;
-	l)	DBOPTS=$DBOPTS" -l "$OPTARG" ";;
-	\?)	echo $USAGE 1>&2
-		exit 2
-		;;
-	esac
-done
-set -- extra $@
-shift $OPTIND
-case $# in
-	1)	xfs_db64$DBOPTS -r -p xfs_ncheck64 -c "blockget -ns" -c "ncheck$OPTS" $1
-		status=$?
-		;;
-	*)	echo $USAGE 1>&2
-		exit 2
-		;;
-esac
-exit $status

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

Reviewed-by
#1 lore raw
Quoted 6 lines · Christoph Hellwig

xfs_check64.sh and xfs_ncheck64.sh are outdated copies of xfs_check.sh and xfs_ncheck.sh which call a non-existant xfs_db64 binary. They
are never installed or otherwise used, so remove them. They are
probably a leftover from IRIX

OK with me, as long as sgi doesn't still have some secret xfs_db64 actually in use somewhere today that they still care about.

Quoted 93 lines

Index: xfsprogs-dev/db/Makefile
===================================================================

db/Makefile +0 -1
@@ -15,7 +15,6 @@ HFILES = addr.h agf.h agfl.h agi.h attr.
 	text.h type.h write.h attrset.h
 CFILES = $(HFILES:.h=.c)
 LSRCFILES = xfs_admin.sh xfs_check.sh xfs_ncheck.sh xfs_metadump.sh
-LSRCFILES += xfs_check64.sh xfs_ncheck64.sh
 
 LLDLIBS	= $(LIBXFS) $(LIBXLOG) $(LIBUUID) $(LIBRT) $(LIBPTHREAD)
 LTDEPENDENCIES = $(LIBXFS) $(LIBXLOG)

Index: xfsprogs-dev/db/xfs_check64.sh
===================================================================

db/xfs_check64.sh deleted +0 -36
@@ -1,36 +0,0 @@
-#!/bin/sh -f
-#
-# Copyright (c) 2000-2003 Silicon Graphics, Inc.  All Rights Reserved.
-#
-
-OPTS=" "
-DBOPTS=" "
-USAGE="Usage: xfs_check64 [-fsvV] [-l logdev] [-i ino]... [-b bno]... special"
-
-while getopts "b:fi:l:stvV" c
-do
-	case $c in
-	s)	OPTS=$OPTS"-s ";;
-	t)	OPTS=$OPTS"-t ";;
-	v)	OPTS=$OPTS"-v ";;
-	V)	OPTS=$OPTS"-V ";;
-	i)	OPTS=$OPTS"-i "$OPTARG" ";;
-	b)	OPTS=$OPTS"-b "$OPTARG" ";;
-	f)	DBOPTS=" -f";;
-	l)	DBOPTS=$DBOPTS" -l "$OPTARG" ";;
-	\?)	echo $USAGE 1>&2
-		exit 2
-		;;
-	esac
-done
-set -- extra $@
-shift $OPTIND
-case $# in
-	1)	xfs_db64$DBOPTS -F -i -p xfs_check64 -c "check$OPTS" $1
-		status=$?
-		;;
-	*)	echo $USAGE 1>&2
-		exit 2
-		;;
-esac
-exit $status

Index: xfsprogs-dev/db/xfs_ncheck64.sh
===================================================================

db/xfs_ncheck64.sh deleted +0 -34
@@ -1,34 +0,0 @@
-#!/bin/sh -f
-#
-# Copyright (c) 2000-2001 Silicon Graphics, Inc.  All Rights Reserved.
-#
-
-OPTS=" "
-DBOPTS=" "
-USAGE="usage: xfs_ncheck64 [-sfvV] [-l logdev] [-i ino]... special"
-
-while getopts "b:fi:l:svV" c
-do
-	case $c in
-	s)	OPTS=$OPTS"-s ";;
-	i)	OPTS=$OPTS"-i "$OPTARG" ";;
-	v)	OPTS=$OPTS"-v ";;
-	V)	OPTS=$OPTS"-V ";;
-	f)	DBOPTS=" -f";;
-	l)	DBOPTS=$DBOPTS" -l "$OPTARG" ";;
-	\?)	echo $USAGE 1>&2
-		exit 2
-		;;
-	esac
-done
-set -- extra $@
-shift $OPTIND
-case $# in
-	1)	xfs_db64$DBOPTS -r -p xfs_ncheck64 -c "blockget -ns" -c "ncheck$OPTS" $1
-		status=$?
-		;;
-	*)	echo $USAGE 1>&2
-		exit 2
-		;;
-esac
-exit $status
Quoted 5 lines

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs