mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
fstests: convert top level files and tools to SPDX
Scripted conversion, see script in initial SPDX license commit message. Many files required touch-ups after the script had run because of the old and widely different formats. most touchups were to remove excess empty comment lines the script left behind. Signed-off-by: Dave Chinner <dchinner@redhat.com>
This commit is contained in:
committed by
Dave Chinner
parent
0c1a95d067
commit
f3e65e9150
@@ -1,22 +1,6 @@
|
|||||||
#
|
# SPDX-License-Identifier: GPL-2.0+
|
||||||
# Copyright (C) 2000-2008, 2011 SGI All Rights Reserved.
|
# Copyright (C) 2000-2008, 2011 SGI All Rights Reserved.
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or
|
|
||||||
# modify it under the terms of the GNU General Public License as
|
|
||||||
# published by the Free Software Foundation; either version 2 of the
|
|
||||||
# License, or (at your option) any later version.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
# General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with this program; if not, write to the Free Software
|
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
||||||
# 02110-1301, USA.
|
|
||||||
#
|
|
||||||
|
|
||||||
ifeq ("$(origin V)", "command line")
|
ifeq ("$(origin V)", "command line")
|
||||||
BUILD_VERBOSE = $(V)
|
BUILD_VERBOSE = $(V)
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -1,24 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
# SPDX-License-Identifier: GPL-2.0
|
||||||
|
# Copyright (c) 2000-2002,2006 Silicon Graphics, Inc. All Rights Reserved.
|
||||||
#
|
#
|
||||||
# Control script for QA
|
# Control script for QA
|
||||||
#
|
#
|
||||||
# Copyright (c) 2000-2002,2006 Silicon Graphics, Inc. All Rights Reserved.
|
|
||||||
#
|
|
||||||
# This program is free software; you can redistribute it and/or
|
|
||||||
# modify it under the terms of the GNU General Public License as
|
|
||||||
# published by the Free Software Foundation.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it would be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with this program; if not, write the Free Software Foundation,
|
|
||||||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
#
|
|
||||||
#
|
|
||||||
|
|
||||||
tmp=/tmp/$$
|
tmp=/tmp/$$
|
||||||
status=0
|
status=0
|
||||||
needwrap=true
|
needwrap=true
|
||||||
|
|||||||
@@ -1,21 +1,7 @@
|
|||||||
#!/usr/bin/perl -w
|
#!/usr/bin/perl -w
|
||||||
#
|
# SPDX-License-Identifier: GPL-2.0
|
||||||
# Copyright (c) 2008 Silicon Graphics, Inc. All Rights Reserved.
|
# Copyright (c) 2008 Silicon Graphics, Inc. All Rights Reserved.
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or
|
|
||||||
# modify it under the terms of the GNU General Public License as
|
|
||||||
# published by the Free Software Foundation.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it would be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with this program; if not, write the Free Software Foundation,
|
|
||||||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
#
|
|
||||||
|
|
||||||
# Print headers of given tests
|
# Print headers of given tests
|
||||||
# Accepted parameter types:
|
# Accepted parameter types:
|
||||||
# - nothing - list all tests from all subdirectories in tests/*
|
# - nothing - list all tests from all subdirectories in tests/*
|
||||||
|
|||||||
+1
-14
@@ -1,19 +1,6 @@
|
|||||||
|
# SPDX-License-Identifier: GPL-2.0
|
||||||
# Copyright (c) 2005 Silicon Graphics, Inc. All Rights Reserved.
|
# Copyright (c) 2005 Silicon Graphics, Inc. All Rights Reserved.
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or
|
|
||||||
# modify it under the terms of the GNU General Public License as
|
|
||||||
# published by the Free Software Foundation.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it would be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with this program; if not, write the Free Software Foundation,
|
|
||||||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
#
|
|
||||||
|
|
||||||
# randomize stdin.
|
# randomize stdin.
|
||||||
|
|
||||||
function randomize(array, N) {
|
function randomize(array, N) {
|
||||||
|
|||||||
@@ -1,20 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#
|
# SPDX-License-Identifier: GPL-2.0
|
||||||
# Copyright (c) 2003-2004 Silicon Graphics, Inc. All Rights Reserved.
|
# Copyright (c) 2003-2004 Silicon Graphics, Inc. All Rights Reserved.
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or
|
|
||||||
# modify it under the terms of the GNU General Public License as
|
|
||||||
# published by the Free Software Foundation.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it would be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with this program; if not, write the Free Software Foundation,
|
|
||||||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
#
|
|
||||||
usage()
|
usage()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
@@ -1,22 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#-----------------------------------------------------------------------
|
# SPDX-License-Identifier: GPL-2.0
|
||||||
# Copyright (c) 2000-2002 Silicon Graphics, Inc. All Rights Reserved.
|
# Copyright (c) 2000-2002 Silicon Graphics, Inc. All Rights Reserved.
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or
|
|
||||||
# modify it under the terms of the GNU General Public License as
|
|
||||||
# published by the Free Software Foundation.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it would be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with this program; if not, write the Free Software Foundation,
|
|
||||||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
#
|
|
||||||
#-----------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
|
|
||||||
# get standard environment, filters and checks
|
# get standard environment, filters and checks
|
||||||
. ./common/rc
|
. ./common/rc
|
||||||
|
|||||||
+3
-15
@@ -1,23 +1,11 @@
|
|||||||
#!/usr/bin/perl -w
|
#!/usr/bin/perl -w
|
||||||
|
# SPDX-License-Identifier: GPL-2.0
|
||||||
|
# Copyright (c) 2003-2004 Silicon Graphics, Inc. All Rights Reserved.
|
||||||
|
#
|
||||||
use strict;
|
use strict;
|
||||||
use IO::File;
|
use IO::File;
|
||||||
use Getopt::Std;
|
use Getopt::Std;
|
||||||
#
|
#
|
||||||
# Copyright (c) 2003-2004 Silicon Graphics, Inc. All Rights Reserved.
|
|
||||||
#
|
|
||||||
# This program is free software; you can redistribute it and/or
|
|
||||||
# modify it under the terms of the GNU General Public License as
|
|
||||||
# published by the Free Software Foundation.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it would be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with this program; if not, write the Free Software Foundation,
|
|
||||||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
#
|
|
||||||
#
|
#
|
||||||
# Modify a filesystem's superblock and AGF metadata structures
|
# Modify a filesystem's superblock and AGF metadata structures
|
||||||
# so that only a subset of the allocation groups will be used.
|
# so that only a subset of the allocation groups will be used.
|
||||||
|
|||||||
+1
-15
@@ -1,21 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
# SPDX-License-Identifier: GPL-2.0
|
||||||
# Copyright (c) 2000-2003 Silicon Graphics, Inc. All Rights Reserved.
|
# Copyright (c) 2000-2003 Silicon Graphics, Inc. All Rights Reserved.
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or
|
|
||||||
# modify it under the terms of the GNU General Public License as
|
|
||||||
# published by the Free Software Foundation.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it would be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with this program; if not, write the Free Software Foundation,
|
|
||||||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# automatic qa system. 31/08/00 dxm@sgi.com
|
# automatic qa system. 31/08/00 dxm@sgi.com
|
||||||
#
|
#
|
||||||
# Usage: auto_qa start-state [stop-state]
|
# Usage: auto_qa start-state [stop-state]
|
||||||
|
|||||||
+3
-19
@@ -1,5 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
# SPDX-License-Identifier: GPL-2.0
|
||||||
|
# Copyright (c) 2017 Red Hat, Inc. All Rights Reserved.
|
||||||
|
#
|
||||||
# Compare test failures across runs
|
# Compare test failures across runs
|
||||||
#
|
#
|
||||||
# Takes multiple "results" files as arguments, comprised of the
|
# Takes multiple "results" files as arguments, comprised of the
|
||||||
@@ -7,24 +9,6 @@
|
|||||||
#
|
#
|
||||||
# Outputs a table of failures for comparison across runs
|
# Outputs a table of failures for comparison across runs
|
||||||
#
|
#
|
||||||
#-----------------------------------------------------------------------
|
|
||||||
# Copyright (c) 2017 Red Hat, Inc. All Rights Reserved.
|
|
||||||
#
|
|
||||||
# This program is free software; you can redistribute it and/or
|
|
||||||
# modify it under the terms of the GNU General Public License as
|
|
||||||
# published by the Free Software Foundation.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it would be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with this program; if not, write the Free Software Foundation,
|
|
||||||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
#-----------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
|
|
||||||
filter_names() {
|
filter_names() {
|
||||||
sed -e s/btrfs/b/ \
|
sed -e s/btrfs/b/ \
|
||||||
-e s/cifs/c/g \
|
-e s/cifs/c/g \
|
||||||
|
|||||||
+1
-17
@@ -1,25 +1,9 @@
|
|||||||
#!/usr/bin/perl -w
|
#!/usr/bin/perl -w
|
||||||
#
|
# SPDX-License-Identifier: GPL-2.0
|
||||||
# Copyright (c) 2000-2001 Silicon Graphics, Inc. All Rights Reserved.
|
# Copyright (c) 2000-2001 Silicon Graphics, Inc. All Rights Reserved.
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or
|
|
||||||
# modify it under the terms of the GNU General Public License as
|
|
||||||
# published by the Free Software Foundation.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it would be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with this program; if not, write the Free Software Foundation,
|
|
||||||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# use db to try to traverse the entire filesystem starting at the root
|
# use db to try to traverse the entire filesystem starting at the root
|
||||||
#
|
#
|
||||||
# dxm 5/10/00
|
|
||||||
|
|
||||||
my $device;
|
my $device;
|
||||||
my $rootino;
|
my $rootino;
|
||||||
my $agcount;
|
my $agcount;
|
||||||
|
|||||||
+1
-16
@@ -1,24 +1,9 @@
|
|||||||
#!/usr/bin/perl -w
|
#!/usr/bin/perl -w
|
||||||
#
|
# SPDX-License-Identifier: GPL-2.0
|
||||||
# Copyright (c) 2000-2001 Silicon Graphics, Inc. All Rights Reserved.
|
# Copyright (c) 2000-2001 Silicon Graphics, Inc. All Rights Reserved.
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or
|
|
||||||
# modify it under the terms of the GNU General Public License as
|
|
||||||
# published by the Free Software Foundation.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it would be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with this program; if not, write the Free Software Foundation,
|
|
||||||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# traverse the entire filesystem dumping info.
|
# traverse the entire filesystem dumping info.
|
||||||
#
|
#
|
||||||
# dxm 5/10/00
|
|
||||||
use MD5;
|
use MD5;
|
||||||
use Getopt::Std;
|
use Getopt::Std;
|
||||||
|
|
||||||
|
|||||||
+1
-15
@@ -1,21 +1,7 @@
|
|||||||
#!/usr/sbin/perl
|
#!/usr/sbin/perl
|
||||||
#
|
# SPDX-License-Identifier: GPL-2.0
|
||||||
# Copyright (c) 2001 Silicon Graphics, Inc. All Rights Reserved.
|
# Copyright (c) 2001 Silicon Graphics, Inc. All Rights Reserved.
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or
|
|
||||||
# modify it under the terms of the GNU General Public License as
|
|
||||||
# published by the Free Software Foundation.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it would be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with this program; if not, write the Free Software Foundation,
|
|
||||||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
#
|
|
||||||
|
|
||||||
sub setup()
|
sub setup()
|
||||||
{
|
{
|
||||||
$PATH="$PATH:/usr/local/bin/ptools:/sbin:/usr/sbin";
|
$PATH="$PATH:/usr/local/bin/ptools:/sbin:/usr/sbin";
|
||||||
|
|||||||
Reference in New Issue
Block a user