summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2018-06-09 11:35:50 +1000
committerDave Chinner <david@fromorbit.com>2018-06-09 11:35:50 +1000
commit1ff4192932699b155a0858009d612b498489fdf2 (patch)
tree8c167632e339c713a122ee4d8962d19376f947e4 /tests
parent2529c9486a99ffb0a9e0b48819b1f4af796ef20f (diff)
btrfs: convert tests to SPDX license tags
Fully scripted conversion, see script in initial SPDX license commit message. Signed-off-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/btrfs/00122
-rwxr-xr-xtests/btrfs/00222
-rwxr-xr-xtests/btrfs/00321
-rwxr-xr-xtests/btrfs/00422
-rwxr-xr-xtests/btrfs/00521
-rwxr-xr-xtests/btrfs/00621
-rwxr-xr-xtests/btrfs/00721
-rwxr-xr-xtests/btrfs/00822
-rwxr-xr-xtests/btrfs/00922
-rwxr-xr-xtests/btrfs/01021
-rwxr-xr-xtests/btrfs/01122
-rwxr-xr-xtests/btrfs/01221
-rwxr-xr-xtests/btrfs/01322
-rwxr-xr-xtests/btrfs/01421
-rwxr-xr-xtests/btrfs/01522
-rwxr-xr-xtests/btrfs/01622
-rwxr-xr-xtests/btrfs/01721
-rwxr-xr-xtests/btrfs/01822
-rwxr-xr-xtests/btrfs/01922
-rwxr-xr-xtests/btrfs/02022
-rwxr-xr-xtests/btrfs/02121
-rwxr-xr-xtests/btrfs/02221
-rwxr-xr-xtests/btrfs/02321
-rwxr-xr-xtests/btrfs/02422
-rwxr-xr-xtests/btrfs/02521
-rwxr-xr-xtests/btrfs/02623
-rwxr-xr-xtests/btrfs/02721
-rwxr-xr-xtests/btrfs/02821
-rwxr-xr-xtests/btrfs/02920
-rwxr-xr-xtests/btrfs/03021
-rwxr-xr-xtests/btrfs/03120
-rwxr-xr-xtests/btrfs/03222
-rwxr-xr-xtests/btrfs/03322
-rwxr-xr-xtests/btrfs/03421
-rwxr-xr-xtests/btrfs/03522
-rwxr-xr-xtests/btrfs/03622
-rwxr-xr-xtests/btrfs/03721
-rwxr-xr-xtests/btrfs/03821
-rwxr-xr-xtests/btrfs/03921
-rwxr-xr-xtests/btrfs/04021
-rwxr-xr-xtests/btrfs/04121
-rwxr-xr-xtests/btrfs/04221
-rwxr-xr-xtests/btrfs/04321
-rwxr-xr-xtests/btrfs/04421
-rwxr-xr-xtests/btrfs/04521
-rwxr-xr-xtests/btrfs/04621
-rwxr-xr-xtests/btrfs/04721
-rwxr-xr-xtests/btrfs/04821
-rwxr-xr-xtests/btrfs/04921
-rwxr-xr-xtests/btrfs/05021
-rwxr-xr-xtests/btrfs/05121
-rwxr-xr-xtests/btrfs/05221
-rwxr-xr-xtests/btrfs/05321
-rwxr-xr-xtests/btrfs/05421
-rwxr-xr-xtests/btrfs/05521
-rwxr-xr-xtests/btrfs/05621
-rwxr-xr-xtests/btrfs/05722
-rwxr-xr-xtests/btrfs/05822
-rwxr-xr-xtests/btrfs/05922
-rwxr-xr-xtests/btrfs/06022
-rwxr-xr-xtests/btrfs/06122
-rwxr-xr-xtests/btrfs/06222
-rwxr-xr-xtests/btrfs/06322
-rwxr-xr-xtests/btrfs/06422
-rwxr-xr-xtests/btrfs/06522
-rwxr-xr-xtests/btrfs/06622
-rwxr-xr-xtests/btrfs/06722
-rwxr-xr-xtests/btrfs/06822
-rwxr-xr-xtests/btrfs/06922
-rwxr-xr-xtests/btrfs/07022
-rwxr-xr-xtests/btrfs/07122
-rwxr-xr-xtests/btrfs/07222
-rwxr-xr-xtests/btrfs/07322
-rwxr-xr-xtests/btrfs/07422
-rwxr-xr-xtests/btrfs/07522
-rwxr-xr-xtests/btrfs/07621
-rwxr-xr-xtests/btrfs/07722
-rwxr-xr-xtests/btrfs/07823
-rwxr-xr-xtests/btrfs/07922
-rwxr-xr-xtests/btrfs/08023
-rwxr-xr-xtests/btrfs/08123
-rwxr-xr-xtests/btrfs/08222
-rwxr-xr-xtests/btrfs/08322
-rwxr-xr-xtests/btrfs/08422
-rwxr-xr-xtests/btrfs/08522
-rwxr-xr-xtests/btrfs/08622
-rwxr-xr-xtests/btrfs/08722
-rwxr-xr-xtests/btrfs/08822
-rwxr-xr-xtests/btrfs/08921
-rwxr-xr-xtests/btrfs/09021
-rwxr-xr-xtests/btrfs/09121
-rwxr-xr-xtests/btrfs/09222
-rwxr-xr-xtests/btrfs/09322
-rwxr-xr-xtests/btrfs/09422
-rwxr-xr-xtests/btrfs/09523
-rwxr-xr-xtests/btrfs/09623
-rwxr-xr-xtests/btrfs/09722
-rwxr-xr-xtests/btrfs/09823
-rwxr-xr-xtests/btrfs/09921
-rwxr-xr-xtests/btrfs/10018
-rwxr-xr-xtests/btrfs/10118
-rwxr-xr-xtests/btrfs/10223
-rwxr-xr-xtests/btrfs/10323
-rwxr-xr-xtests/btrfs/10422
-rwxr-xr-xtests/btrfs/10524
-rwxr-xr-xtests/btrfs/10623
-rwxr-xr-xtests/btrfs/10721
-rwxr-xr-xtests/btrfs/10822
-rwxr-xr-xtests/btrfs/10922
-rwxr-xr-xtests/btrfs/11022
-rwxr-xr-xtests/btrfs/11122
-rwxr-xr-xtests/btrfs/11223
-rwxr-xr-xtests/btrfs/11323
-rwxr-xr-xtests/btrfs/11421
-rwxr-xr-xtests/btrfs/11521
-rwxr-xr-xtests/btrfs/11623
-rwxr-xr-xtests/btrfs/11723
-rwxr-xr-xtests/btrfs/11823
-rwxr-xr-xtests/btrfs/11923
-rwxr-xr-xtests/btrfs/12023
-rwxr-xr-xtests/btrfs/12122
-rwxr-xr-xtests/btrfs/12222
-rwxr-xr-xtests/btrfs/12321
-rwxr-xr-xtests/btrfs/12421
-rwxr-xr-xtests/btrfs/12521
-rwxr-xr-xtests/btrfs/12621
-rwxr-xr-xtests/btrfs/12722
-rwxr-xr-xtests/btrfs/12822
-rwxr-xr-xtests/btrfs/12922
-rwxr-xr-xtests/btrfs/13021
-rwxr-xr-xtests/btrfs/13121
-rwxr-xr-xtests/btrfs/13221
-rwxr-xr-xtests/btrfs/13322
-rwxr-xr-xtests/btrfs/13422
-rwxr-xr-xtests/btrfs/13522
-rwxr-xr-xtests/btrfs/13621
-rwxr-xr-xtests/btrfs/13723
-rwxr-xr-xtests/btrfs/13821
-rwxr-xr-xtests/btrfs/13921
-rwxr-xr-xtests/btrfs/14021
-rwxr-xr-xtests/btrfs/14121
-rwxr-xr-xtests/btrfs/14221
-rwxr-xr-xtests/btrfs/14321
-rwxr-xr-xtests/btrfs/14423
-rwxr-xr-xtests/btrfs/14523
-rwxr-xr-xtests/btrfs/14620
-rwxr-xr-xtests/btrfs/14723
-rwxr-xr-xtests/btrfs/14823
-rwxr-xr-xtests/btrfs/14923
-rwxr-xr-xtests/btrfs/15021
-rwxr-xr-xtests/btrfs/15121
-rwxr-xr-xtests/btrfs/15222
-rwxr-xr-xtests/btrfs/15322
-rwxr-xr-xtests/btrfs/15422
-rwxr-xr-xtests/btrfs/15523
-rwxr-xr-xtests/btrfs/15621
-rwxr-xr-xtests/btrfs/15721
-rwxr-xr-xtests/btrfs/15821
-rwxr-xr-xtests/btrfs/15923
-rwxr-xr-xtests/btrfs/16020
-rwxr-xr-xtests/btrfs/16121
-rwxr-xr-xtests/btrfs/16221
-rwxr-xr-xtests/btrfs/16321
-rwxr-xr-xtests/btrfs/16421
164 files changed, 493 insertions, 3059 deletions
diff --git a/tests/btrfs/001 b/tests/btrfs/001
index 005791db..b13a2470 100755
--- a/tests/btrfs/001
+++ b/tests/btrfs/001
@@ -1,27 +1,11 @@
#! /bin/bash
-# FS QA Test No. btrfs/001
-#
-# Test btrfs's subvolume and snapshot support
-#
-#-----------------------------------------------------------------------
+# SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2011 Red Hat. 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
+# FS QA Test No. btrfs/001
#
-#-----------------------------------------------------------------------
+# Test btrfs's subvolume and snapshot support
#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/002 b/tests/btrfs/002
index d6722873..87e21c02 100755
--- a/tests/btrfs/002
+++ b/tests/btrfs/002
@@ -1,27 +1,11 @@
#!/bin/bash
-# FS QA Test No. btrfs/002
-#
-# Extented btrfs snapshot test cases
-#
-#-----------------------------------------------------------------------
+# SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2011 Oracle 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
+# FS QA Test No. btrfs/002
#
-#-----------------------------------------------------------------------
+# Extented btrfs snapshot test cases
#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/003 b/tests/btrfs/003
index 3e6cc28c..22aa57aa 100755
--- a/tests/btrfs/003
+++ b/tests/btrfs/003
@@ -1,26 +1,11 @@
#! /bin/bash
-# FS QA Test No. btrfs/003
-#
-# btrfs vol tests
-#
-#-----------------------------------------------------------------------
+# SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2011 Oracle. 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.
+# FS QA Test No. btrfs/003
#
-# 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
-#-----------------------------------------------------------------------
+# btrfs vol tests
#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/004 b/tests/btrfs/004
index 0d2efb91..3f61a8f4 100755
--- a/tests/btrfs/004
+++ b/tests/btrfs/004
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2011 STRATO. All rights reserved.
+#
# FSQA Test No. btrfs/004
#
# Run fsstress to create a reasonably strange file system, make a
@@ -6,25 +9,6 @@
# run filefrag to get the extent mapping and follow the backrefs.
# We check to end up back at the original file with the correct offset.
#
-#-----------------------------------------------------------------------
-# Copyright (C) 2011 STRATO. 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
-#
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/005 b/tests/btrfs/005
index 92365013..15af4678 100755
--- a/tests/btrfs/005
+++ b/tests/btrfs/005
@@ -1,26 +1,11 @@
#! /bin/bash
-# FS QA Test No. btrfs/005
-#
-# Btrfs Online defragmentation tests
-#
-#-----------------------------------------------------------------------
+# SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2012 Fujitsu Liu Bo. 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.
+# FS QA Test No. btrfs/005
#
-# 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
-#-----------------------------------------------------------------------
+# Btrfs Online defragmentation tests
#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/006 b/tests/btrfs/006
index d84dfcbd..3edbb25a 100755
--- a/tests/btrfs/006
+++ b/tests/btrfs/006
@@ -1,27 +1,12 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2013 Red Hat, Inc. All Rights Reserved.
+#
# FS QA Test No. btrfs/006
#
# run basic btrfs information commands in various ways
# sanity tests: filesystem show, label, sync, and device stats
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2013 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "== QA output created by $seq"
diff --git a/tests/btrfs/007 b/tests/btrfs/007
index a8414b21..09f2f011 100755
--- a/tests/btrfs/007
+++ b/tests/btrfs/007
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2013 STRATO. All rights reserved.
+#
# FSQA Test No. 007
#
# Run fsstress to create a reasonably strange file system, make a
@@ -6,24 +9,6 @@
# (incr) and send both snapshots to a temp file. Remake the file
# system and receive from the files. Check both states with fssum.
#
-#-----------------------------------------------------------------------
-# Copyright (C) 2013 STRATO. 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
-#
-#-----------------------------------------------------------------------
-#
# creator
owner=list.btrfs@jan-o-sch.net
diff --git a/tests/btrfs/008 b/tests/btrfs/008
index d60f2555..e7609de4 100755
--- a/tests/btrfs/008
+++ b/tests/btrfs/008
@@ -1,27 +1,11 @@
#! /bin/bash
-# FS QA Test No. btrfs/008
-#
-# btrfs send ENOENT regression test, from a user report on linux-btrfs
-#
-#-----------------------------------------------------------------------
+# SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2013 Fusion IO. 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
+# FS QA Test No. btrfs/008
#
-#-----------------------------------------------------------------------
+# btrfs send ENOENT regression test, from a user report on linux-btrfs
#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/009 b/tests/btrfs/009
index d7204005..8b6e864f 100755
--- a/tests/btrfs/009
+++ b/tests/btrfs/009
@@ -1,27 +1,11 @@
#! /bin/bash
-# FS QA Test No. btrfs/009
-#
-# Regression test to make sure we can't delete the default subvol
-#
-#-----------------------------------------------------------------------
+# SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2013 Fusion IO. 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
+# FS QA Test No. btrfs/009
#
-#-----------------------------------------------------------------------
+# Regression test to make sure we can't delete the default subvol
#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/010 b/tests/btrfs/010
index 00cac673..1a5f0146 100755
--- a/tests/btrfs/010
+++ b/tests/btrfs/010
@@ -1,28 +1,13 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2017 Facebook. All Rights Reserved.
+#
# FS QA Test 10
#
# Test delayed allocation with a large number of extents that are merged.
# Regression test for patch "Btrfs: fix delalloc accounting leak caused
# by u32 overflow".
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2017 Facebook. 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/011 b/tests/btrfs/011
index 95bc182a..89bb4d11 100755
--- a/tests/btrfs/011
+++ b/tests/btrfs/011
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2013 STRATO. All rights reserved.
+#
# FSQA Test No. btrfs/011
#
# Test of the btrfs replace operation.
@@ -16,25 +19,6 @@
# To check the filesystems after replacing a device, a scrub run is
# performed, a btrfsck run, and finally the filesystem is remounted.
#
-#-----------------------------------------------------------------------
-# Copyright (C) 2013 STRATO. 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
-#
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/012 b/tests/btrfs/012
index ac0f405a..986fb0ad 100755
--- a/tests/btrfs/012
+++ b/tests/btrfs/012
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2013 Red Hat, Inc. All Rights Reserved.
+#
# FS QA Test No. 012
#
# Test btrfs-convert
@@ -10,24 +13,6 @@
# 5) roll back conversion to original ext4
# 6) verify rolled-back fs integrity & contents
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2013 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "== QA output created by $seq"
diff --git a/tests/btrfs/013 b/tests/btrfs/013
index 7620fcc4..eadaf199 100755
--- a/tests/btrfs/013
+++ b/tests/btrfs/013
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2013 Fusion IO. All Rights Reserved.
+#
# FS QA Test No. btrfs/013
#
# Regression test for balance with prealloc extents. This checks to make sure
@@ -7,25 +10,6 @@
# userspace doesn't get an error when reading the file back so we have to grok
# dmesg to see if there was a csum error.
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2013 Fusion IO. 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
-#
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/014 b/tests/btrfs/014
index 142423f7..a8da6c4d 100755
--- a/tests/btrfs/014
+++ b/tests/btrfs/014
@@ -1,26 +1,11 @@
#! /bin/bash
-# FS QA Test No. btrfs/014
-#
-# Btrfs balance tests
-#
-#-----------------------------------------------------------------------
+# SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2013 Fujitsu. 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.
+# FS QA Test No. btrfs/014
#
-# 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
-#-----------------------------------------------------------------------
+# Btrfs balance tests
#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/015 b/tests/btrfs/015
index 0b5fdfd5..60814b2d 100755
--- a/tests/btrfs/015
+++ b/tests/btrfs/015
@@ -1,28 +1,12 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2013 Fusion IO. All Rights Reserved.
+#
# FS QA Test No. btrfs/015
#
# Regression test to make sure we can create a snapshot after mounting with
# readonly and remounting rw.
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2013 Fusion IO. 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
-#
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/016 b/tests/btrfs/016
index de4f1a84..adc3910b 100755
--- a/tests/btrfs/016
+++ b/tests/btrfs/016
@@ -1,27 +1,11 @@
#! /bin/bash
-# FS QA Test No. btrfs/016
-#
-# btrfs send hole punch test
-#
-#-----------------------------------------------------------------------
+# SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2013 Fusion IO. 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
+# FS QA Test No. btrfs/016
#
-#-----------------------------------------------------------------------
+# btrfs send hole punch test
#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/017 b/tests/btrfs/017
index 1041957f..1bb8295b 100755
--- a/tests/btrfs/017
+++ b/tests/btrfs/017
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2014 Liu Bo. All Rights Reserved.
+#
# FS QA Test No. 017
#
# Verify that removing shared extents can end up incorrect qgroup accounting.
@@ -9,24 +12,6 @@
# The issue is fixed by https://patchwork.kernel.org/patch/5499981/
# "Btrfs: fix a warning of qgroup account on shared extents"
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2014 Liu Bo. 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/018 b/tests/btrfs/018
index de7a7932..d8a34e7e 100755
--- a/tests/btrfs/018
+++ b/tests/btrfs/018
@@ -1,27 +1,11 @@
#! /bin/bash
-# FS QA Test No. btrfs/018
-#
-# Regression test to make sure we can move a subvol into another subvol
-#
-#-----------------------------------------------------------------------
+# SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2013 Fusion IO. 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
+# FS QA Test No. btrfs/018
#
-#-----------------------------------------------------------------------
+# Regression test to make sure we can move a subvol into another subvol
#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/019 b/tests/btrfs/019
index 212c0586..7c7038de 100755
--- a/tests/btrfs/019
+++ b/tests/btrfs/019
@@ -1,27 +1,11 @@
#! /bin/bash
-# FS QA Test No. btrfs/019
-#
-# btrfs send ENOENT regression test, kernel bugzilla 60673
-#
-#-----------------------------------------------------------------------
+# SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2013 Fusion IO. 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
+# FS QA Test No. btrfs/019
#
-#-----------------------------------------------------------------------
+# btrfs send ENOENT regression test, kernel bugzilla 60673
#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/020 b/tests/btrfs/020
index 6e3dd4a5..180d4954 100755
--- a/tests/btrfs/020
+++ b/tests/btrfs/020
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2013 Red Hat, Inc. All Rights Reserved.
+#
# FS QA Test No. btrfs/020
#
# btrfs device replace test on RO fs
@@ -6,25 +9,6 @@
# Regression test for commit:
# bbb651e Btrfs: don't allow the replace procedure on read only filesystems
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2013 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
-#
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/021 b/tests/btrfs/021
index e6d645cb..d5ba4b66 100755
--- a/tests/btrfs/021
+++ b/tests/btrfs/021
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2013 Oracle. All Rights Reserved.
+#
# FS QA Test No. 021
#
# A regression test of running btrfs balance and defrag concurrently.
@@ -6,24 +9,6 @@
# The test aims to trigger snapshot-aware defrag path in endio by
# running balance, which is not expected and leads to a crash.
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2013 Oracle. 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/022 b/tests/btrfs/022
index b183f3db..5348d3ed 100755
--- a/tests/btrfs/022
+++ b/tests/btrfs/022
@@ -1,26 +1,11 @@
#! /bin/bash
-# FS QA Test No. 022
-#
-# Test the basic functionality of qgroups
-#
-#-----------------------------------------------------------------------
+# SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2013 Fusion IO. 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.
+# FS QA Test No. 022
#
-# 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
-#-----------------------------------------------------------------------
+# Test the basic functionality of qgroups
#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/023 b/tests/btrfs/023
index da1f818a..6d9cc443 100755
--- a/tests/btrfs/023
+++ b/tests/btrfs/023
@@ -1,28 +1,13 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2013 Oracle. All Rights Reserved.
+#
# FS QA Test No. 023
#
# Test to verify if the group profile is created
#
# The test aims to create the raid and verify that its created
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2013 Oracle. 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/024 b/tests/btrfs/024
index 42a55b7e..0c2ffd73 100755
--- a/tests/btrfs/024
+++ b/tests/btrfs/024
@@ -1,29 +1,13 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2013 Fujitsu. All Rights Reserved.
+#
# FS QA Test No. btrfs/024
#
# btrfs wrong compression type regression test. This test is used to check
# the oops will happen when the users write some data into the files whose
# compress flag is set but the compression of the fs is disabled.
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2013 Fujitsu. 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
-#
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/025 b/tests/btrfs/025
index 43d7e6cb..9f4529d1 100755
--- a/tests/btrfs/025
+++ b/tests/btrfs/025
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2014 Filipe Manana. All Rights Reserved.
+#
# FS QA Test No. btrfs/025
#
# Test for an issue in btrfs send where it sent clone operations to user
@@ -7,24 +10,6 @@
# to the ioctl clone API, which would return -EINVAL errors to btrfs receive,
# causing the receive command to abort immediately.
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2014 Filipe Manana. 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/026 b/tests/btrfs/026
index 876651d9..adba7815 100755
--- a/tests/btrfs/026
+++ b/tests/btrfs/026
@@ -1,29 +1,12 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2015 SUSE Linux Products GmbH. All Rights Reserved.
+#
# FSQA Test No. 026
#
# Test that doing a direct IO write against a file range that contains one
# prealloc extent and one compressed extent works correctly.
#
-#-----------------------------------------------------------------------
-#
-# Copyright (C) 2015 SUSE Linux Products GmbH. All Rights Reserved.
-# Author: Filipe Manana <fdmanana@suse.com>
-#
-# 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/027 b/tests/btrfs/027
index 689cd4cd..06d1f27b 100755
--- a/tests/btrfs/027
+++ b/tests/btrfs/027
@@ -1,26 +1,11 @@
#! /bin/bash
-# FS QA Test 027
-#
-# Test replace of a missing device on various data and metadata profiles.
-#
-#-----------------------------------------------------------------------
+# SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2016 Facebook. 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.
+# FS QA Test 027
#
-# 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
-#-----------------------------------------------------------------------
+# Test replace of a missing device on various data and metadata profiles.
#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/028 b/tests/btrfs/028
index 0e626720..efa87ab3 100755
--- a/tests/btrfs/028
+++ b/tests/btrfs/028
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2016 Fujitsu. All Rights Reserved.
+#
# FS QA Test 028
#
# Test if qgroup can handle extent de-reference during reallocation.
@@ -7,24 +10,6 @@
# Although current qgroup can handle it, we still need to prevent any
# regression which may break current qgroup.
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2016 Fujitsu. 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/029 b/tests/btrfs/029
index b6e2dbb0..1c8fae42 100755
--- a/tests/btrfs/029
+++ b/tests/btrfs/029
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2014, Oracle and/or its affiliates. All Rights Reserved.
+#
# FS QA Test No. 029
#
# Check if creating a sparse copy ("reflink") of a file on btrfs
@@ -11,23 +14,6 @@
# - Copy a file with the reflink=always option. Should result in
# error.
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2014, Oracle and/or its affiliates. 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
-#-----------------------------------------------------------------------
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/030 b/tests/btrfs/030
index 6b67de08..4fff51af 100755
--- a/tests/btrfs/030
+++ b/tests/btrfs/030
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2014 Filipe Manana. All Rights Reserved.
+#
# FS QA Test No. btrfs/030
#
# Regression test for btrfs' incremental send feature:
@@ -14,24 +17,6 @@
# used while building path strings until a krealloc was unable to allocate
# more memory, which caused a warning dump in dmesg.
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2014 Filipe Manana. 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/031 b/tests/btrfs/031
index c2b11dd1..a2aae815 100755
--- a/tests/btrfs/031
+++ b/tests/btrfs/031
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2014, Oracle and/or its affiliates. All Rights Reserved.
+#
# FS QA Test No. 031
#
# Testing cross-subvolume sparse copy on btrfs
@@ -8,23 +11,6 @@
# - Change one original and two reflinked files
# - Move reflinked files between subvolumes
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2014, Oracle and/or its affiliates. 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
-#-----------------------------------------------------------------------
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/032 b/tests/btrfs/032
index 0b666e59..dc9e9fc4 100755
--- a/tests/btrfs/032
+++ b/tests/btrfs/032
@@ -1,28 +1,12 @@
#!/bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2014 Fujitsu. All Rights Reserved.
+#
# FS QA Test No. btrfs/032
#
# Regression test for transaction abortion when remounting RW to RO
# with flushoncommit option enabled.
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2014 Fujitsu. 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
-#
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/033 b/tests/btrfs/033
index 9013bc0e..d04209fe 100755
--- a/tests/btrfs/033
+++ b/tests/btrfs/033
@@ -1,27 +1,11 @@
#!/bin/bash
-# FS QA Test No. btrfs/033
-#
-# Regression test for iterating backrefs
-#
-#-----------------------------------------------------------------------
+# SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2014 Fujitsu. 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
+# FS QA Test No. btrfs/033
#
-#-----------------------------------------------------------------------
+# Regression test for iterating backrefs
#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/034 b/tests/btrfs/034
index f27ab34c..527ac947 100755
--- a/tests/btrfs/034
+++ b/tests/btrfs/034
@@ -1,27 +1,12 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2014 Filipe Manana. All Rights Reserved.
+#
# FS QA Test No. btrfs/034
#
# Test for a btrfs incremental send data corruption issue due to
# bad detection of file holes.
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2014 Filipe Manana. 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/035 b/tests/btrfs/035
index 0f8a70de..c9c09e16 100755
--- a/tests/btrfs/035
+++ b/tests/btrfs/035
@@ -1,27 +1,11 @@
#!/bin/bash
-# FS QA Test No. btrfs/035
-#
-# Regression test for overwriting clones
-#
-#-----------------------------------------------------------------------
+# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2014 SUSE Linux Products GmbH. 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
+# FS QA Test No. btrfs/035
#
-#-----------------------------------------------------------------------
+# Regression test for overwriting clones
#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/036 b/tests/btrfs/036
index 7e5f281e..cb578569 100755
--- a/tests/btrfs/036
+++ b/tests/btrfs/036
@@ -1,27 +1,11 @@
#!/bin/bash
-# FS QA Test No. btrfs/036
-#
-# Regression test for running snapshots and send concurrently.
-#
-#-----------------------------------------------------------------------
+# SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2014 Fujitsu. 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
+# FS QA Test No. btrfs/036
#
-#-----------------------------------------------------------------------
+# Regression test for running snapshots and send concurrently.
#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/037 b/tests/btrfs/037
index 5c0ea668..10386087 100755
--- a/tests/btrfs/037
+++ b/tests/btrfs/037
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2014 Filipe Manana. All Rights Reserved.
+#
# FS QA Test No. btrfs/037
#
# Test for a btrfs data corruption when using compressed files/extents.
@@ -11,24 +14,6 @@
#
# Btrfs: fix data corruption when reading/updating compressed extents
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2014 Filipe Manana. 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/038 b/tests/btrfs/038
index e46b7eb1..861c4675 100755
--- a/tests/btrfs/038
+++ b/tests/btrfs/038
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2014 Filipe Manana. All Rights Reserved.
+#
# FS QA Test No. btrfs/038
#
# Test for a btrfs incremental send issue where we end up sending a
@@ -10,24 +13,6 @@
#
# Btrfs: use right clone root offset for compressed extents
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2014 Filipe Manana. 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/039 b/tests/btrfs/039
index 25380dc1..e561088c 100755
--- a/tests/btrfs/039
+++ b/tests/btrfs/039
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2014 Filipe Manana. All Rights Reserved.
+#
# FS QA Test No. btrfs/039
#
# Regression test for a btrfs incremental send issue related to renaming of
@@ -13,24 +16,6 @@
#
# Btrfs: incremental send, fix invalid path after dir rename
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2014 Filipe Manana. 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/040 b/tests/btrfs/040
index 13584b1e..dd14afc0 100755
--- a/tests/btrfs/040
+++ b/tests/btrfs/040
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2014 Filipe Manana. All Rights Reserved.
+#
# FS QA Test No. btrfs/040
#
# Regression test for btrfs incremental send issue where an rmdir
@@ -13,24 +16,6 @@
#
# Btrfs: send, don't send rmdir for same target multiple times
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2014 Filipe Manana. 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/041 b/tests/btrfs/041
index 8bb74cd2..e10ce2a3 100755
--- a/tests/btrfs/041
+++ b/tests/btrfs/041
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2014 Filipe Manana. All Rights Reserved.
+#
# FS QA Test No. btrfs/041
#
# Test that btrfs-progs' restore command is able to correctly recover files
@@ -9,24 +12,6 @@
#
# Btrfs-progs: fix restore of files with compressed extents
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2014 Filipe Manana. 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/042 b/tests/btrfs/042
index be349e3d..4933592a 100755
--- a/tests/btrfs/042
+++ b/tests/btrfs/042
@@ -1,26 +1,11 @@
#! /bin/bash
-# FS QA Test No. 042
-#
-# Test the basic functionality of Quota groups
-#
-#-----------------------------------------------------------------------
+# SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2014 Fujitsu. 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.
+# FS QA Test No. 042
#
-# 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
-#-----------------------------------------------------------------------
+# Test the basic functionality of Quota groups
#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/043 b/tests/btrfs/043
index 7bf83036..90ccfe74 100755
--- a/tests/btrfs/043
+++ b/tests/btrfs/043
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2014 Filipe Manana. All Rights Reserved.
+#
# FS QA Test No. btrfs/043
#
# Regression test for btrfs incremental send issue where a rmdir instruction
@@ -9,24 +12,6 @@
#
# Btrfs: fix send attempting to rmdir non-empty directories
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2014 Filipe Manana. 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/044 b/tests/btrfs/044
index 8668d767..32c36d9d 100755
--- a/tests/btrfs/044
+++ b/tests/btrfs/044
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2014 Filipe Manana. All Rights Reserved.
+#
# FS QA Test No. btrfs/044
#
# Regression test for a btrfs incremental send issue where under certain
@@ -14,24 +17,6 @@
#
# Btrfs: fix send issuing outdated paths for utimes, chown and chmod
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2014 Filipe Manana. 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/045 b/tests/btrfs/045
index 9fad27d5..eff2d4f0 100755
--- a/tests/btrfs/045
+++ b/tests/btrfs/045
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2014 Filipe Manana. All Rights Reserved.
+#
# FS QA Test No. btrfs/045
#
# Regression test for a btrfs incremental send issue where the kernel failed
@@ -30,24 +33,6 @@
# Btrfs: send, fix more issues related to directory renames
# Btrfs: send, account for orphan directories when building path strings
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2014 Filipe Manana. 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/046 b/tests/btrfs/046
index 284fa955..2acedcca 100755
--- a/tests/btrfs/046
+++ b/tests/btrfs/046
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2014 Filipe Manana. All Rights Reserved.
+#
# FS QA Test No. btrfs/046
#
# Regression test for the btrfs incremental send feature, where the kernel
@@ -10,24 +13,6 @@
#
# Btrfs: send, fix data corruption due to incorrect hole detection
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2014 Filipe Manana. 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/047 b/tests/btrfs/047
index 411f1aff..6f9d1b30 100755
--- a/tests/btrfs/047
+++ b/tests/btrfs/047
@@ -1,27 +1,12 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2017 Facebook. All Rights Reserved.
+#
# FS QA Test 047
#
# Test that we can't set xattrs on subvolume placeholder directories.
# Regression test for Btrfs: disable xattr operations on subvolume directories.
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2017 Facebook. 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/048 b/tests/btrfs/048
index 01613367..58821957 100755
--- a/tests/btrfs/048
+++ b/tests/btrfs/048
@@ -1,27 +1,12 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2014 Filipe Manana. All Rights Reserved.
+#
# FS QA Test No. btrfs/048
#
# Btrfs properties test. The btrfs properties feature was introduced in the
# linux kernel 3.14.
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2014 Filipe Manana. 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/049 b/tests/btrfs/049
index 4ec5dd8f..e8a0189a 100755
--- a/tests/btrfs/049
+++ b/tests/btrfs/049
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2014 Fujitsu. All Rights Reserved.
+#
# FS QA Test No. btrfs/049
#
# Regression test for btrfs inode caching vs tree log which was
@@ -6,24 +9,6 @@
#
# Btrfs: fix inode caching vs tree log
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2014 Fujitsu. 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/050 b/tests/btrfs/050
index 62e2cfc4..43216626 100755
--- a/tests/btrfs/050
+++ b/tests/btrfs/050
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2014 Filipe Manana. All Rights Reserved.
+#
# FS QA Test No. btrfs/050
#
# Regression for btrfs send when an inode only has extended references
@@ -12,24 +15,6 @@
#
# Btrfs: send, fix incorrect ref access when using extrefs
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2014 Filipe Manana. 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/051 b/tests/btrfs/051
index 0a874120..13454922 100755
--- a/tests/btrfs/051
+++ b/tests/btrfs/051
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2014 Filipe Manana. All Rights Reserved.
+#
# FS QA Test No. btrfs/051
#
# Regression test for btrfs send where long paths (exceeding 230 characters)
@@ -9,24 +12,6 @@
#
# Btrfs: send, fix corrupted path strings for long paths
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2014 Filipe Manana. 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/052 b/tests/btrfs/052
index c76d2456..4e2b46be 100755
--- a/tests/btrfs/052
+++ b/tests/btrfs/052
@@ -1,28 +1,13 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2014 Filipe Manana. All Rights Reserved.
+#
# FS QA Test No. btrfs/052
#
# Verify that the btrfs ioctl clone operation can operate on the same
# file as a source and target. That is, clone extents within the same
# file.
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2014 Filipe Manana. 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/053 b/tests/btrfs/053
index 1f9bffd2..16656fa8 100755
--- a/tests/btrfs/053
+++ b/tests/btrfs/053
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2014 Filipe Manana. All Rights Reserved.
+#
# FS QA Test No. btrfs/053
#
# Verify that btrfs send is able to replicate xattrs larger than PATH_MAX.
@@ -10,24 +13,6 @@
#
# Btrfs: send, use the right limits for xattr names and values
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2014 Filipe Manana. 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/054 b/tests/btrfs/054
index 9e0dd463..0fb60754 100755
--- a/tests/btrfs/054
+++ b/tests/btrfs/054
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2014 Filipe Manana. All Rights Reserved.
+#
# FS QA Test No. btrfs/054
#
# Regression test for a btrfs incremental send issue where the difference
@@ -18,24 +21,6 @@
# Btrfs: send, don't error in the presence of subvols/snapshots
# Btrfs: set dead flag on the right root when destroying snapshot
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2014 Filipe Manana. 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/055 b/tests/btrfs/055
index 481d5c84..95c88fa5 100755
--- a/tests/btrfs/055
+++ b/tests/btrfs/055
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2014 Filipe Manana. All Rights Reserved.
+#
# FS QA Test No. btrfs/055
#
# Regression test for the btrfs ioctl clone operation when the source range
@@ -9,24 +12,6 @@
#
# Btrfs: fix clone to deal with holes when NO_HOLES feature is enabled
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2014 Filipe Manana. 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/056 b/tests/btrfs/056
index d9b6fd74..26a1d96a 100755
--- a/tests/btrfs/056
+++ b/tests/btrfs/056
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2014 Filipe Manana. All Rights Reserved.
+#
# FS QA Test No. btrfs/056
#
# Regression test for btrfs ioctl clone operation + fsync + log recovery.
@@ -11,24 +14,6 @@
#
# Btrfs: make fsync work after cloning into a file
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2014 Filipe Manana. 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/057 b/tests/btrfs/057
index a834b763..6743f774 100755
--- a/tests/btrfs/057
+++ b/tests/btrfs/057
@@ -1,27 +1,11 @@
#! /bin/bash
-# FSQA Test No. btrfs/057
-#
-# Quota rescan stress test, we run fsstress and quota rescan concurrently
-#
-#-----------------------------------------------------------------------
+# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2014 Fujitsu. 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
+# FSQA Test No. btrfs/057
#
-#-----------------------------------------------------------------------
+# Quota rescan stress test, we run fsstress and quota rescan concurrently
#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/058 b/tests/btrfs/058
index f139d0cc..78b05a35 100755
--- a/tests/btrfs/058
+++ b/tests/btrfs/058
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2014 SUSE Linux Products GmbH. All Rights Reserved.
+#
# FS QA Test No. btrfs/058
#
# Regression test for a btrfs issue where we create a RO snapshot to use for
@@ -10,25 +13,6 @@
#
# Btrfs: update commit root on snapshot creation after orphan cleanup
#
-#-----------------------------------------------------------------------
-# Copyright (C) 2014 SUSE Linux Products GmbH. All Rights Reserved.
-# Author: Filipe Manana <fdmanana@suse.com>
-#
-# 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/059 b/tests/btrfs/059
index 2d1ec23e..190d5b11 100755
--- a/tests/btrfs/059
+++ b/tests/btrfs/059
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2014 SUSE Linux Products GmbH. All Rights Reserved.
+#
# FS QA Test No. btrfs/059
#
# Regression test for btrfs where removing the flag FS_COMPR_FL (chattr -c)
@@ -7,25 +10,6 @@
#
# Btrfs: add missing compression property remove in btrfs_ioctl_setflags
#
-#-----------------------------------------------------------------------
-# Copyright (C) 2014 SUSE Linux Products GmbH. All Rights Reserved.
-# Author: Filipe Manana <fdmanana@suse.com>
-#
-# 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/060 b/tests/btrfs/060
index 6b6a480a..4a866400 100755
--- a/tests/btrfs/060
+++ b/tests/btrfs/060
@@ -1,28 +1,12 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2014 Red Hat Inc. All rights reserved.
+#
# FSQA Test No. btrfs/060
#
# Run btrfs balance and subvolume create/mount/umount/delete simultaneously,
# with fsstress running in background.
#
-#-----------------------------------------------------------------------
-# Copyright (C) 2014 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
-#
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/061 b/tests/btrfs/061
index e0e03d79..eed2f669 100755
--- a/tests/btrfs/061
+++ b/tests/btrfs/061
@@ -1,28 +1,12 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2014 Red Hat Inc. All rights reserved.
+#
# FSQA Test No. btrfs/061
#
# Run btrfs balance and scrub operations simultaneously with fsstress
# running in background.
#
-#-----------------------------------------------------------------------
-# Copyright (C) 2014 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
-#
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/062 b/tests/btrfs/062
index 74c2a510..bed70637 100755
--- a/tests/btrfs/062
+++ b/tests/btrfs/062
@@ -1,28 +1,12 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2014 Red Hat Inc. All rights reserved.
+#
# FSQA Test No. btrfs/062
#
# Run btrfs balance and defrag operations simultaneously with fsstress
# running in background.
#
-#-----------------------------------------------------------------------
-# Copyright (C) 2014 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
-#
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/063 b/tests/btrfs/063
index 854c9414..f1ed6698 100755
--- a/tests/btrfs/063
+++ b/tests/btrfs/063
@@ -1,28 +1,12 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2014 Red Hat Inc. All rights reserved.
+#
# FSQA Test No. btrfs/063
#
# Run btrfs balance and remount with different compress algorithms
# simultaneously, with fsstress running in background.
#
-#-----------------------------------------------------------------------
-# Copyright (C) 2014 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
-#
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/064 b/tests/btrfs/064
index d4b1353a..81dc9372 100755
--- a/tests/btrfs/064
+++ b/tests/btrfs/064
@@ -1,28 +1,12 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2014 Red Hat Inc. All rights reserved.
+#
# FSQA Test No. btrfs/064
#
# Run btrfs balance and replace operations simultaneously with fsstress
# running in background.
#
-#-----------------------------------------------------------------------
-# Copyright (C) 2014 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
-#
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/065 b/tests/btrfs/065
index a4afe733..16a4a744 100755
--- a/tests/btrfs/065
+++ b/tests/btrfs/065
@@ -1,28 +1,12 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2014 Red Hat Inc. All rights reserved.
+#
# FSQA Test No. btrfs/065
#
# Run btrfs subvolume create/mount/umount/delete and device replace
# operation simultaneously, with fsstress running in background.
#
-#-----------------------------------------------------------------------
-# Copyright (C) 2014 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
-#
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/066 b/tests/btrfs/066
index cf4dd0da..d6cb09f7 100755
--- a/tests/btrfs/066
+++ b/tests/btrfs/066
@@ -1,28 +1,12 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2014 Red Hat Inc. All rights reserved.
+#
# FSQA Test No. btrfs/066
#
# Run btrfs subvolume create/mount/umount/delete and btrfs scrub
# operation simultaneously, with fsstress running in background.
#
-#-----------------------------------------------------------------------
-# Copyright (C) 2014 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
-#
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/067 b/tests/btrfs/067
index b76f5ec9..1b1b7002 100755
--- a/tests/btrfs/067
+++ b/tests/btrfs/067
@@ -1,28 +1,12 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2014 Red Hat Inc. All rights reserved.
+#
# FSQA Test No. btrfs/067
#
# Run btrfs subvolume create/mount/umount/delete and btrfs defrag
# operation simultaneously, with fsstress running in background.
#
-#-----------------------------------------------------------------------
-# Copyright (C) 2014 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
-#
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/068 b/tests/btrfs/068
index 534aee62..f9d05d15 100755
--- a/tests/btrfs/068
+++ b/tests/btrfs/068
@@ -1,29 +1,13 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2014 Red Hat Inc. All rights reserved.
+#
# FSQA Test No. btrfs/068
#
# Run btrfs subvolume create/mount/umount/delete and remount with
# different compress algorithms simultaneously, with fsstress running
# in background.
#
-#-----------------------------------------------------------------------
-# Copyright (C) 2014 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
-#
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/069 b/tests/btrfs/069
index d939cd8e..4b22701c 100755
--- a/tests/btrfs/069
+++ b/tests/btrfs/069
@@ -1,28 +1,12 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2014 Red Hat Inc. All rights reserved.
+#
# FSQA Test No. btrfs/069
#
# Run btrfs replace operations and scrub simultaneously with fsstress
# running in background.
#
-#-----------------------------------------------------------------------
-# Copyright (C) 2014 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
-#
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/070 b/tests/btrfs/070
index 6ef86c93..d0464bde 100755
--- a/tests/btrfs/070
+++ b/tests/btrfs/070
@@ -1,28 +1,12 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2014 Red Hat Inc. All rights reserved.
+#
# FSQA Test No. btrfs/070
#
# Run btrfs replace operations and defrag simultaneously with fsstress
# running in background.
#
-#-----------------------------------------------------------------------
-# Copyright (C) 2014 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
-#
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/071 b/tests/btrfs/071
index be3afe03..56b27086 100755
--- a/tests/btrfs/071
+++ b/tests/btrfs/071
@@ -1,28 +1,12 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2014 Red Hat Inc. All rights reserved.
+#
# FSQA Test No. btrfs/071
#
# Run btrfs replace operations and remount with different compress
# algorithms simultaneously with fsstress running in background.
#
-#-----------------------------------------------------------------------
-# Copyright (C) 2014 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
-#
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/072 b/tests/btrfs/072
index 07cc766b..c71c0a9e 100755
--- a/tests/btrfs/072
+++ b/tests/btrfs/072
@@ -1,28 +1,12 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2014 Red Hat Inc. All rights reserved.
+#
# FSQA Test No. btrfs/072
#
# Run btrfs scrub and defrag operations simultaneously with fsstress
# running in background.
#
-#-----------------------------------------------------------------------
-# Copyright (C) 2014 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
-#
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/073 b/tests/btrfs/073
index bdd6308a..f9608512 100755
--- a/tests/btrfs/073
+++ b/tests/btrfs/073
@@ -1,28 +1,12 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2014 Red Hat Inc. All rights reserved.
+#
# FSQA Test No. btrfs/073
#
# Run btrfs scrub and remount with different compress algorithms
# simultaneously with fsstress running in background.
#
-#-----------------------------------------------------------------------
-# Copyright (C) 2014 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
-#
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/074 b/tests/btrfs/074
index 08f3b416..8ee90033 100755
--- a/tests/btrfs/074
+++ b/tests/btrfs/074
@@ -1,28 +1,12 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2014 Red Hat Inc. All rights reserved.
+#
# FSQA Test No. btrfs/074
#
# Run btrfs defrag operations and remount with different compress algorithms
# simultaneously with fsstress running in background.
#
-#-----------------------------------------------------------------------
-# Copyright (C) 2014 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
-#
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/075 b/tests/btrfs/075
index 16ed8540..1fdf1a3e 100755
--- a/tests/btrfs/075
+++ b/tests/btrfs/075
@@ -1,28 +1,12 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2014 Red Hat Inc. All rights reserved.
+#
# FSQA Test No. btrfs/075
#
# If one subvolume was mounted with selinux context, other subvolumes
# should be able to be mounted with the same selinux context too.
#
-#-----------------------------------------------------------------------
-# Copyright (C) 2014 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
-#
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/076 b/tests/btrfs/076
index 1c86d815..ede8ba61 100755
--- a/tests/btrfs/076
+++ b/tests/btrfs/076
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2014 Wang Shilong. All Rights Reserved.
+#
# FS QA Test No. btrfs/076
#
# Regression test for btrfs incorrect inode ratio detection.
@@ -6,24 +9,6 @@
#
# Btrfs: fix incorrect compression ratio detection
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2014 Wang Shilong. 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/077 b/tests/btrfs/077
index 8d6541aa..f1914700 100755
--- a/tests/btrfs/077
+++ b/tests/btrfs/077
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2014 SUSE Linux Products GmbH. All Rights Reserved.
+#
# FS QA Test No. btrfs/077
#
# Regression test for a btrfs incremental send issue.
@@ -16,25 +19,6 @@
#
# Btrfs: send, don't delay dir move if there's a new parent inode
#
-#-----------------------------------------------------------------------
-# Copyright (C) 2014 SUSE Linux Products GmbH. All Rights Reserved.
-# Author: Filipe Manana <fdmanana@suse.com>
-#
-# 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/078 b/tests/btrfs/078
index 2c1dfa3b..a1af691a 100755
--- a/tests/btrfs/078
+++ b/tests/btrfs/078
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2014 SUSE Linux Products GmbH. All Rights Reserved.
+#
# FSQA Test No. 078
#
# Regression test for a btrfs issue where creation of readonly snapshots caused
@@ -10,26 +13,6 @@
# Btrfs: race free update of commit root for ro snapshots
# 9c3b306e1c9e6be4be09e99a8fe2227d1005effc
#
-#-----------------------------------------------------------------------
-#
-# Copyright (C) 2014 SUSE Linux Products GmbH. All Rights Reserved.
-# Author: Filipe Manana <fdmanana@suse.com>
-#
-# 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/079 b/tests/btrfs/079
index 560d5ece..e848a261 100755
--- a/tests/btrfs/079
+++ b/tests/btrfs/079
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2014 Fujitsu All Rights Reserved.
+#
# FS QA Test No. btrfs/079
#
# Do write along with fiemap ioctl.
@@ -14,25 +17,6 @@
# btrfs: Fix and enhance merge_extent_mapping() to insert best fitted extent map
# btrfs: Fix the wrong condition judgment about subset extent map
#
-#-----------------------------------------------------------------------
-# Copyright (C) 2014 Fujitsu All Rights Reserved.
-# Author: Qu Wenruo <quwenruo@cn.fujitsu.com>
-#
-# 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/080 b/tests/btrfs/080
index b1474d10..91f22ca9 100755
--- a/tests/btrfs/080
+++ b/tests/btrfs/080
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2014 SUSE Linux Products GmbH. All Rights Reserved.
+#
# FSQA Test No. 080
#
# Regression test for a btrfs issue where if right after the snapshot creation
@@ -13,26 +16,6 @@
#
# Btrfs: fix snapshot inconsistency after a file write followed by truncate
#
-#-----------------------------------------------------------------------
-#
-# Copyright (C) 2014 SUSE Linux Products GmbH. All Rights Reserved.
-# Author: Filipe Manana <fdmanana@suse.com>
-#
-# 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/081 b/tests/btrfs/081
index c367a012..dc357e53 100755
--- a/tests/btrfs/081
+++ b/tests/btrfs/081
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2014 SUSE Linux Products GmbH. All Rights Reserved.
+#
# FSQA Test No. 081
#
# Regression test for a btrfs clone ioctl issue where races between
@@ -13,26 +16,6 @@
# Btrfs: ensure readers see new data after a clone operation
# (commit c125b8bff1d9f6c8c91ce4eb8bd5616058c7d510)
#
-#-----------------------------------------------------------------------
-#
-# Copyright (C) 2014 SUSE Linux Products GmbH. All Rights Reserved.
-# Author: Filipe Manana <fdmanana@suse.com>
-#
-# 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/082 b/tests/btrfs/082
index 83383c68..affc91a3 100755
--- a/tests/btrfs/082
+++ b/tests/btrfs/082
@@ -1,4 +1,7 @@
#!/bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2015 Fujitsu. All Rights Reserved.
+#
# FS QA Test No. btrfs/082
#
# Regression test for a btrfs issue of resizing 'thread_pool' when
@@ -12,25 +15,6 @@
# btrfs: fix crash in remount(thread_pool=) case
# 800ee2247f483b6d05ed47ef3bbc90b56451746c
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2015 Fujitsu. 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
-#
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/083 b/tests/btrfs/083
index 80c8cc39..176f9f3e 100755
--- a/tests/btrfs/083
+++ b/tests/btrfs/083
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2015 SUSE Linux Products GmbH. All Rights Reserved.
+#
# FS QA Test No. btrfs/083
#
# Test for incremental send where the difference between the parent and child
@@ -10,25 +13,6 @@
#
# Btrfs: incremental send, don't rename a directory too soon
#
-#-----------------------------------------------------------------------
-# Copyright (C) 2015 SUSE Linux Products GmbH. All Rights Reserved.
-# Author: Filipe Manana <fdmanana@suse.com>
-#
-# 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/084 b/tests/btrfs/084
index 0dc94068..5f2ca86c 100755
--- a/tests/btrfs/084
+++ b/tests/btrfs/084
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2015 SUSE Linux Products GmbH. All Rights Reserved.
+#
# FS QA Test No. btrfs/084
#
# Test for incremental send where the difference between the parent and send
@@ -9,25 +12,6 @@
#
# Btrfs: incremental send, clear name from cache after orphanization
#
-#-----------------------------------------------------------------------
-# Copyright (C) 2015 SUSE Linux Products GmbH. All Rights Reserved.
-# Author: Filipe Manana <fdmanana@suse.com>
-#
-# 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/085 b/tests/btrfs/085
index a1edc283..8cc69c21 100755
--- a/tests/btrfs/085
+++ b/tests/btrfs/085
@@ -1,4 +1,7 @@
#!/bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2015 SUSE. All Rights Reserved.
+#
# FS QA Test No. btrfs/085
#
# Tests to ensure that orphan items are properly created and cleaned up
@@ -10,25 +13,6 @@
# (i.e. btrfs subvol set-default)
# 3) Non-default subvolume lookup
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2015 SUSE. 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
-#
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/086 b/tests/btrfs/086
index ea5489b1..750b54de 100755
--- a/tests/btrfs/086
+++ b/tests/btrfs/086
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2015 SUSE Linux Products GmbH. All Rights Reserved.
+#
# FS QA Test No. btrfs/086
#
# Test cloning a file range with a length of zero into a destination offset
@@ -12,25 +15,6 @@
#
# Btrfs: fix inode eviction infinite loop after cloning into it
#
-#-----------------------------------------------------------------------
-# Copyright (C) 2015 SUSE Linux Products GmbH. All Rights Reserved.
-# Author: Filipe Manana <fdmanana@suse.com>
-#
-# 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/087 b/tests/btrfs/087
index 15b050db..23bb4409 100755
--- a/tests/btrfs/087
+++ b/tests/btrfs/087
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2015 SUSE Linux Products GmbH. All Rights Reserved.
+#
# FS QA Test No. btrfs/087
#
# Test a very complex scenario for a btrfs incremental send operation where a
@@ -15,25 +18,6 @@
#
# Btrfs: incremental send, don't delay directory renames unnecessarily
#
-#-----------------------------------------------------------------------
-# Copyright (C) 2015 SUSE Linux Products GmbH. All Rights Reserved.
-# Author: Filipe Manana <fdmanana@suse.com>
-#
-# 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/088 b/tests/btrfs/088
index 7b8e1280..0c9c7678 100755
--- a/tests/btrfs/088
+++ b/tests/btrfs/088
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2015 SUSE Linux Products GmbH. All Rights Reserved.
+#
# FS QA Test No. btrfs/088
#
# Test that btrfs' transaction abortion does not corrupt a filesystem mounted
@@ -10,25 +13,6 @@
# Btrfs: fix fs corruption on transaction abort if device supports discard
# (commit 678886bdc6378c1cbd5072da2c5a3035000214e3)
#
-#-----------------------------------------------------------------------
-# Copyright (C) 2015 SUSE Linux Products GmbH. All Rights Reserved.
-# Author: Filipe Manana <fdmanana@suse.com>
-#
-# 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/089 b/tests/btrfs/089
index db7d511a..99320f20 100755
--- a/tests/btrfs/089
+++ b/tests/btrfs/089
@@ -1,28 +1,13 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2015 Omar Sandoval. All Rights Reserved.
+#
# FS QA Test 089
#
# Test deleting the default subvolume, making sure that submounts under it are
# not unmounted prematurely. This is a regression test for Linux commit "Btrfs:
# don't invalidate root dentry when subvolume deletion fails".
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2015 Omar Sandoval. 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/090 b/tests/btrfs/090
index 0ffafa06..2337d207 100755
--- a/tests/btrfs/090
+++ b/tests/btrfs/090
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2015 Fujitsu, Inc. All Rights Reserved.
+#
# FS QA Test No. btrfs/090
#
# Check return value of "btrfs filesystem show" command executed on
@@ -10,24 +13,6 @@
# btrfs-progs: Fix wrong return value when executing 'fi show' on
# umounted device.
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2015 Fujitsu, 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/091 b/tests/btrfs/091
index ca1d64c3..6d2a23c8 100755
--- a/tests/btrfs/091
+++ b/tests/btrfs/091
@@ -1,27 +1,12 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2015 Fujitsu. All Rights Reserved.
+#
# FS QA Test No. 091
#
# Test for incorrect exclusive reference count after cloning file
# between subvolumes.
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2015 Fujitsu. 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/092 b/tests/btrfs/092
index 5f9c5d60..127963a3 100755
--- a/tests/btrfs/092
+++ b/tests/btrfs/092
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2015 SUSE Linux Products GmbH. All Rights Reserved.
+#
# FS QA Test No. btrfs/092
#
# Test btrfs incremental send after renaming and moving directories around in a
@@ -14,25 +17,6 @@
#
# Btrfs: incremental send, check if orphanized dir inode needs delayed rename
#
-#-----------------------------------------------------------------------
-# Copyright (C) 2015 SUSE Linux Products GmbH. All Rights Reserved.
-# Author: Filipe Manana <fdmanana@suse.com>
-#
-# 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/093 b/tests/btrfs/093
index 64b7aa24..6b9f9887 100755
--- a/tests/btrfs/093
+++ b/tests/btrfs/093
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2015 SUSE Linux Products GmbH. All Rights Reserved.
+#
# FS QA Test No. btrfs/093
#
# Test btrfs file range cloning with the same file as a source and destination.
@@ -9,25 +12,6 @@
#
# Btrfs: fix range cloning when same inode used as source and destination
#
-#-----------------------------------------------------------------------
-# Copyright (C) 2015 SUSE Linux Products GmbH. All Rights Reserved.
-# Author: Filipe Manana <fdmanana@suse.com>
-#
-# 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/094 b/tests/btrfs/094
index aa1e9ab9..19317c4c 100755
--- a/tests/btrfs/094
+++ b/tests/btrfs/094
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2015 SUSE Linux Products GmbH. All Rights Reserved.
+#
# FS QA Test No. btrfs/094
#
# Test that an incremental send issues valid clone operations for compressed
@@ -14,25 +17,6 @@
#
# Btrfs: incremental send, fix clone operations for compressed extents
#
-#-----------------------------------------------------------------------
-# Copyright (C) 2015 SUSE Linux Products GmbH. All Rights Reserved.
-# Author: Filipe Manana <fdmanana@suse.com>
-#
-# 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/095 b/tests/btrfs/095
index 29e828c3..4c810a5d 100755
--- a/tests/btrfs/095
+++ b/tests/btrfs/095
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2015 SUSE Linux Products GmbH. All Rights Reserved.
+#
# FSQA Test No. 095
#
# Regression test for adding and dropping an equal number of references for
@@ -9,26 +12,6 @@
#
# The regression was introduced in the 4.2-rc1 Linux kernel.
#
-#-----------------------------------------------------------------------
-#
-# Copyright (C) 2015 SUSE Linux Products GmbH. All Rights Reserved.
-# Author: Filipe Manana <fdmanana@suse.com>
-#
-# 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/096 b/tests/btrfs/096
index fd13cf72..e8552947 100755
--- a/tests/btrfs/096
+++ b/tests/btrfs/096
@@ -1,28 +1,11 @@
#! /bin/bash
-# FSQA Test No. 096
-#
-# Test that we can not clone an inline extent into a non-zero file offset.
-#
-#-----------------------------------------------------------------------
-#
+# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2015 SUSE Linux Products GmbH. All Rights Reserved.
-# Author: Filipe Manana <fdmanana@suse.com>
#
-# 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.
+# FSQA Test No. 096
#
-# 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
-#-----------------------------------------------------------------------
+# Test that we can not clone an inline extent into a non-zero file offset.
#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/097 b/tests/btrfs/097
index 6c6988fb..aa3b0463 100755
--- a/tests/btrfs/097
+++ b/tests/btrfs/097
@@ -1,28 +1,12 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2015 SUSE Linux Products GmbH. All Rights Reserved.
+#
# FS QA Test No. btrfs/097
#
# Test that an incremental send works after a file gets one of its extents
# cloned/deduplicated into lower file offsets.
#
-#-----------------------------------------------------------------------
-# Copyright (C) 2015 SUSE Linux Products GmbH. All Rights Reserved.
-# Author: Filipe Manana <fdmanana@suse.com>
-#
-# 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/098 b/tests/btrfs/098
index c7211a66..0e0b5123 100755
--- a/tests/btrfs/098
+++ b/tests/btrfs/098
@@ -1,30 +1,13 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2015 SUSE Linux Products GmbH. All Rights Reserved.
+#
# FSQA Test No. 098
#
# Test that if we fsync a file that got one extent partially cloned into a
# lower file offset, after a power failure our file has the same content it
# had before the power failure and after the extent cloning operation.
#
-#-----------------------------------------------------------------------
-#
-# Copyright (C) 2015 SUSE Linux Products GmbH. All Rights Reserved.
-# Author: Filipe Manana <fdmanana@suse.com>
-#
-# 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/099 b/tests/btrfs/099
index 65ea79b3..0e7e95b3 100755
--- a/tests/btrfs/099
+++ b/tests/btrfs/099
@@ -1,27 +1,12 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2015 Fujitsu. All Rights Reserved.
+#
# FS QA Test 099
#
# Check for qgroup reserved space leaks caused by re-writing dirty ranges
# This bug has been present in btrfs qgroup for a long time
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2015 Fujitsu. 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/100 b/tests/btrfs/100
index 38f53f8b..5488cb95 100755
--- a/tests/btrfs/100
+++ b/tests/btrfs/100
@@ -1,24 +1,12 @@
#! /bin/bash
-# FS QA Test No. btrfs/100
-#
-# Test device replace works when the source device has EIO
-#
+# SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2015 Oracle. 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.
+# FS QA Test No. btrfs/100
#
-# 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.
+# Test device replace works when the source device has EIO
#
-# 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
#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/101 b/tests/btrfs/101
index ed91457b..f12d0be6 100755
--- a/tests/btrfs/101
+++ b/tests/btrfs/101
@@ -1,24 +1,12 @@
#! /bin/bash
-# FS QA Test No. btrfs/101
-#
-# Test device delete when the source device has EIO
-#
+# SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2015 Oracle. 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.
+# FS QA Test No. btrfs/101
#
-# 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.
+# Test device delete when the source device has EIO
#
-# 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
#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/102 b/tests/btrfs/102
index 7a33c6b7..ed50453d 100755
--- a/tests/btrfs/102
+++ b/tests/btrfs/102
@@ -1,29 +1,12 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2015 SUSE Linux Products GmbH. All Rights Reserved.
+#
# FSQA Test No. 102
#
# Regression test for an ENOSPC issue when attempting to write to a file in
# a filesystem without any data block groups allocated.
#
-#-----------------------------------------------------------------------
-#
-# Copyright (C) 2015 SUSE Linux Products GmbH. All Rights Reserved.
-# Author: Filipe Manana <fdmanana@suse.com>
-#
-# 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/103 b/tests/btrfs/103
index b672d62e..3e22d66a 100755
--- a/tests/btrfs/103
+++ b/tests/btrfs/103
@@ -1,29 +1,12 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2015 SUSE Linux Products GmbH. All Rights Reserved.
+#
# FSQA Test No. 103
#
# Regression test for file read corruption when using compressed extents that
# are shared by multiple consecutive ranges of the same file.
#
-#-----------------------------------------------------------------------
-#
-# Copyright (C) 2015 SUSE Linux Products GmbH. All Rights Reserved.
-# Author: Filipe Manana <fdmanana@suse.com>
-#
-# 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/104 b/tests/btrfs/104
index c8be4dd1..f0cc67d6 100755
--- a/tests/btrfs/104
+++ b/tests/btrfs/104
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2015 SUSE Linux Products GmbH. All Rights Reserved.
+#
# FS QA Test No. btrfs/104
#
# Test btrfs quota group consistency operations during snapshot
@@ -13,25 +16,6 @@
# Btrfs: keep dropped roots in cache until transaciton commit
# btrfs: qgroup: account shared subtree during snapshot delete
#
-#-----------------------------------------------------------------------
-# Copyright (C) 2015 SUSE Linux Products GmbH. 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
-#
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/105 b/tests/btrfs/105
index c6c12a9b..4762a078 100755
--- a/tests/btrfs/105
+++ b/tests/btrfs/105
@@ -1,30 +1,14 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2015 SUSE Linux Products GmbH. All Rights Reserved.
+# Copyright (C) 2015 Martin Raiber <martin@urbackup.org>
+#
# FS QA Test No. btrfs/105
#
# Test that an incremental send works after a file from the parent snapshot
# gets replaced in the send snapshot by another one at the same exact location,
# with the same name and with the same inode number.
#
-#-----------------------------------------------------------------------
-# Copyright (C) 2015 SUSE Linux Products GmbH. All Rights Reserved.
-# Author: Filipe Manana <fdmanana@suse.com>
-# Copyright (C) 2015 Martin Raiber <martin@urbackup.org>
-#
-# 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/106 b/tests/btrfs/106
index 98f0d086..62573d9d 100755
--- a/tests/btrfs/106
+++ b/tests/btrfs/106
@@ -1,30 +1,13 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2015 SUSE Linux Products GmbH. All Rights Reserved.
+#
# FSQA Test No. 106
#
# Regression test for file read corruption when using compressed extents
# that represent file ranges with a length that is a multiple of 16 pages
# and that are shared by multiple consecutive ranges of the same file.
#
-#-----------------------------------------------------------------------
-#
-# Copyright (C) 2015 SUSE Linux Products GmbH. All Rights Reserved.
-# Author: Filipe Manana <fdmanana@suse.com>
-#
-# 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/107 b/tests/btrfs/107
index e5516e64..3bfb638c 100755
--- a/tests/btrfs/107
+++ b/tests/btrfs/107
@@ -1,27 +1,12 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2015 Fujitsu. All Rights Reserved.
+#
# FS QA Test 107
#
# Test that calling fallocate against a range which is already
# allocated does not truncate beyond EOF
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2015 Fujitsu. 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/108 b/tests/btrfs/108
index 23d2fa6d..a8153992 100755
--- a/tests/btrfs/108
+++ b/tests/btrfs/108
@@ -1,28 +1,12 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2015 SUSE Linux Products GmbH. All Rights Reserved.
+#
# FS QA Test No. btrfs/108
#
# Test that a send operation works correctly with reflinked files (cloned
# extents which multiple files point to).
#
-#-----------------------------------------------------------------------
-# Copyright (C) 2015 SUSE Linux Products GmbH. All Rights Reserved.
-# Author: Filipe Manana <fdmanana@suse.com>
-#
-# 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/109 b/tests/btrfs/109
index c5ab0033..a2226acc 100755
--- a/tests/btrfs/109
+++ b/tests/btrfs/109
@@ -1,28 +1,12 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2015 SUSE Linux Products GmbH. All Rights Reserved.
+#
# FS QA Test No. btrfs/109
#
# Test that a send operation works correctly with reflinked files (cloned
# extents which multiple files point to) that have compressed extents.
#
-#-----------------------------------------------------------------------
-# Copyright (C) 2015 SUSE Linux Products GmbH. All Rights Reserved.
-# Author: Filipe Manana <fdmanana@suse.com>
-#
-# 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/110 b/tests/btrfs/110
index 34048879..fb5f06c9 100755
--- a/tests/btrfs/110
+++ b/tests/btrfs/110
@@ -1,28 +1,12 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2015 SUSE Linux Products GmbH. All Rights Reserved.
+#
# FS QA Test No. btrfs/110
#
# Test that sending and receiving snapshots across different filesystems works
# for full and incremental send operations.
#
-#-----------------------------------------------------------------------
-# Copyright (C) 2015 SUSE Linux Products GmbH. All Rights Reserved.
-# Author: Filipe Manana <fdmanana@suse.com>
-#
-# 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/111 b/tests/btrfs/111
index fd13469e..60cf907d 100755
--- a/tests/btrfs/111
+++ b/tests/btrfs/111
@@ -1,28 +1,12 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2015 SUSE Linux Products GmbH. All Rights Reserved.
+#
# FS QA Test No. btrfs/111
#
# Test that resending snapshots from a different filesystem is possible for
# both full and incremental send operations.
#
-#-----------------------------------------------------------------------
-# Copyright (C) 2015 SUSE Linux Products GmbH. All Rights Reserved.
-# Author: Filipe Manana <fdmanana@suse.com>
-#
-# 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/112 b/tests/btrfs/112
index a0177f67..6ecb1c79 100755
--- a/tests/btrfs/112
+++ b/tests/btrfs/112
@@ -1,29 +1,12 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2015 SUSE Linux Products GmbH. All Rights Reserved.
+#
# FSQA Test No. 112
#
# Test several cases of cloning inline extents that used to lead to file
# corruption or data loss.
#
-#-----------------------------------------------------------------------
-#
-# Copyright (C) 2015 SUSE Linux Products GmbH. All Rights Reserved.
-# Author: Filipe Manana <fdmanana@suse.com>
-#
-# 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/113 b/tests/btrfs/113
index 93ab47d3..416406df 100755
--- a/tests/btrfs/113
+++ b/tests/btrfs/113
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2015 SUSE Linux Products GmbH. All Rights Reserved.
+#
# FSQA Test No. 113
#
# Test that truncating a file that consists of a compressed and inlined extent
@@ -6,26 +9,6 @@
# does not result in leaking stale data (data past the truncation offset) nor
# losing data in the clone operation's destination file.
#
-#-----------------------------------------------------------------------
-#
-# Copyright (C) 2015 SUSE Linux Products GmbH. All Rights Reserved.
-# Author: Filipe Manana <fdmanana@suse.com>
-#
-# 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/114 b/tests/btrfs/114
index 0a0e8ba5..893db6e7 100755
--- a/tests/btrfs/114
+++ b/tests/btrfs/114
@@ -1,27 +1,12 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2015 NETGEAR, Inc. All Rights Reserved.
+#
# FS QA Test No. btrfs/114
#
# btrfs quota scan/unmount sanity test
# Make sure that unmounting during a quota rescan doesn't crash
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2015 NETGEAR, 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/115 b/tests/btrfs/115
index 0d1cb3ad..5f4526a3 100755
--- a/tests/btrfs/115
+++ b/tests/btrfs/115
@@ -1,27 +1,12 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2015 NETGEAR, Inc. All Rights Reserved.
+#
# FS QA Test No. btrfs/115
#
# btrfs quota scan/disable sanity test
# Make sure that disabling quotas during a quota rescan doesn't crash
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2015 NETGEAR, 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/116 b/tests/btrfs/116
index 1ea88c13..949a9181 100755
--- a/tests/btrfs/116
+++ b/tests/btrfs/116
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2016 SUSE Linux Products GmbH. All Rights Reserved.
+#
# FSQA Test No. 116
#
# Verify that when a fitrim operation is made against a btrfs filesystem, the
@@ -6,26 +9,6 @@
# with the content they had before the fitrim operation. These regions of the
# device are reserved for a boot loader to use at its will.
#
-#-----------------------------------------------------------------------
-#
-# Copyright (C) 2016 SUSE Linux Products GmbH. All Rights Reserved.
-# Author: Filipe Manana <fdmanana@suse.com>
-#
-# 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/117 b/tests/btrfs/117
index 2e5ecf7d..16d73c95 100755
--- a/tests/btrfs/117
+++ b/tests/btrfs/117
@@ -1,30 +1,13 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2016 SUSE Linux Products GmbH. All Rights Reserved.
+#
# FS QA Test No. btrfs/117
#
# Test that an incremental send operation which issues clone operations works
# for files that have a full path containing more than one parent directory
# component.
#
-#-----------------------------------------------------------------------
-#
-# Copyright (C) 2016 SUSE Linux Products GmbH. All Rights Reserved.
-# Author: Filipe Manana <fdmanana@suse.com>
-#
-# 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/118 b/tests/btrfs/118
index e66a4bdc..a63a4689 100755
--- a/tests/btrfs/118
+++ b/tests/btrfs/118
@@ -1,30 +1,13 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2016 SUSE Linux Products GmbH. All Rights Reserved.
+#
# FSQA Test No. 118
#
# Test that if we fsync a directory that had a snapshot entry in it that was
# deleted and crash, the next time we mount the filesystem, the log replay
# procedure will not fail and the snapshot is not present anymore.
#
-#-----------------------------------------------------------------------
-#
-# Copyright (C) 2016 SUSE Linux Products GmbH. All Rights Reserved.
-# Author: Filipe Manana <fdmanana@suse.com>
-#
-# 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/119 b/tests/btrfs/119
index 4414f02f..21cb4fbb 100755
--- a/tests/btrfs/119
+++ b/tests/btrfs/119
@@ -1,29 +1,12 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2016 SUSE Linux Products GmbH. All Rights Reserved.
+#
# FSQA Test No. 119
#
# Test log tree replay when qgroups are enabled and orphan roots (deleted
# snapshots) exist.
#
-#-----------------------------------------------------------------------
-#
-# Copyright (C) 2016 SUSE Linux Products GmbH. All Rights Reserved.
-# Author: Filipe Manana <fdmanana@suse.com>
-#
-# 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/120 b/tests/btrfs/120
index 72108ffc..54a58618 100755
--- a/tests/btrfs/120
+++ b/tests/btrfs/120
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2016 SUSE Linux Products GmbH. All Rights Reserved.
+#
# FSQA Test No. 120
#
# Test that if we delete a snapshot, delete its parent directory, create
@@ -6,26 +9,6 @@
# the new directory or a file inside the new directory, the fsync succeeds,
# the fsync log is replayable and produces a correct result.
#
-#-----------------------------------------------------------------------
-#
-# Copyright (C) 2016 SUSE Linux Products GmbH. All Rights Reserved.
-# Author: Filipe Manana <fdmanana@suse.com>
-#
-# 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/121 b/tests/btrfs/121
index 5a73235d..3a091522 100755
--- a/tests/btrfs/121
+++ b/tests/btrfs/121
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2016 SUSE Linux Products GmbH. All Rights Reserved.
+#
# FS QA Test No. btrfs/121
#
# Test that an invalid parent qgroup does not cause snapshot create to
@@ -8,25 +11,6 @@
# [PATCH] btrfs: handle non-fatal errors in btrfs_qgroup_inherit()
# http://thread.gmane.org/gmane.comp.file-systems.btrfs/54755
#
-#-----------------------------------------------------------------------
-# Copyright (C) 2016 SUSE Linux Products GmbH. 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
-#
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/122 b/tests/btrfs/122
index 213a27f8..05af7c76 100755
--- a/tests/btrfs/122
+++ b/tests/btrfs/122
@@ -1,28 +1,12 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2016 SUSE Linux Products GmbH. All Rights Reserved.
+#
# FS QA Test No. btrfs/122
#
# Test that qgroup counts are valid after snapshot creation. This has
# been broken in btrfs since Linux v4.1
#
-#-----------------------------------------------------------------------
-# Copyright (C) 2016 SUSE Linux Products GmbH. 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
-#
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/123 b/tests/btrfs/123
index 4b2e667f..03b00437 100755
--- a/tests/btrfs/123
+++ b/tests/btrfs/123
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2016 Fujitsu. All Rights Reserved.
+#
# FS QA Test 123
#
# Test if btrfs leaks qgroup numbers for data extents
@@ -7,24 +10,6 @@
# non-standard extent reference update, qgroup can't handle it correctly,
# and leads to corrupted qgroup numbers.
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2016 Fujitsu. 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/124 b/tests/btrfs/124
index 94c35fe1..ce3ad6aa 100755
--- a/tests/btrfs/124
+++ b/tests/btrfs/124
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2016 Oracle. All Rights Reserved.
+#
# FS QA Test 124
#
# This test verify the RAID1 reconstruction on the reappeared
@@ -19,24 +22,6 @@
#
# Verify if all three checkpoints match
#
-#---------------------------------------------------------------------
-# Copyright (c) 2016 Oracle. 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
-#---------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/125 b/tests/btrfs/125
index 19961a17..e38de264 100755
--- a/tests/btrfs/125
+++ b/tests/btrfs/125
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2016 Oracle. All Rights Reserved.
+#
# FS QA Test 125
#
# This test verify if the reconstructed data on the RAID5 is good.
@@ -18,24 +21,6 @@
#
# Verify if all three checkpoints match
#
-#---------------------------------------------------------------------
-# Copyright (c) 2016 Oracle. 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
-#---------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/126 b/tests/btrfs/126
index 372236ff..8635791e 100755
--- a/tests/btrfs/126
+++ b/tests/btrfs/126
@@ -1,26 +1,11 @@
#! /bin/bash
-# FS QA Test 126
-#
-# Regression test for leaking data space after hitting EDQUOTA
-#
-#-----------------------------------------------------------------------
+# SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2016 Fujitsu. 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.
+# FS QA Test 126
#
-# 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
-#-----------------------------------------------------------------------
+# Regression test for leaking data space after hitting EDQUOTA
#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/127 b/tests/btrfs/127
index d1e873ac..6150864d 100755
--- a/tests/btrfs/127
+++ b/tests/btrfs/127
@@ -1,29 +1,13 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2016 SUSE Linux Products GmbH. All Rights Reserved.
+#
# FS QA Test No. btrfs/127
#
# Test that an incremental send operation works after doing radical changes
# in the directory hierarchy that involve switching the inode that directory
# entries point to.
#
-#-----------------------------------------------------------------------
-# Copyright (C) 2016 SUSE Linux Products GmbH. All Rights Reserved.
-# Author: Filipe Manana <fdmanana@suse.com>
-#
-# 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/128 b/tests/btrfs/128
index b5563a7a..324f2872 100755
--- a/tests/btrfs/128
+++ b/tests/btrfs/128
@@ -1,28 +1,12 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2016 SUSE Linux Products GmbH. All Rights Reserved.
+#
# FS QA Test No. btrfs/128
#
# Test that, under a particular scenario, an incremental send operation does
# not leak memory (which used to emit a warning in dmesg/syslog).
#
-#-----------------------------------------------------------------------
-# Copyright (C) 2016 SUSE Linux Products GmbH. All Rights Reserved.
-# Author: Filipe Manana <fdmanana@suse.com>
-#
-# 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/129 b/tests/btrfs/129
index e1fb7b50..3d2dcf43 100755
--- a/tests/btrfs/129
+++ b/tests/btrfs/129
@@ -1,29 +1,13 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2016 SUSE Linux Products GmbH. All Rights Reserved.
+#
# FS QA Test No. btrfs/129
#
# Test that an incremental send operation does not prematurely issues rmdir
# operations under a particular scenario (the rmdir operation is sent before
# the target directory is empty).
#
-#-----------------------------------------------------------------------
-# Copyright (C) 2016 SUSE Linux Products GmbH. All Rights Reserved.
-# Author: Filipe Manana <fdmanana@suse.com>
-#
-# 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/130 b/tests/btrfs/130
index 05f92c11..fb7039f8 100755
--- a/tests/btrfs/130
+++ b/tests/btrfs/130
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2016 Fujitsu. All Rights Reserved.
+#
# FS QA Test 130
#
# Check if btrfs send can handle large deduped file, whose file extents
@@ -8,24 +11,6 @@
# And unfortunately, btrfs send is one of these operations, and will cause
# softlock or OOM on systems with small memory(<4G).
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2016 Fujitsu. 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/131 b/tests/btrfs/131
index f7a0286e..0da1e7be 100755
--- a/tests/btrfs/131
+++ b/tests/btrfs/131
@@ -1,26 +1,11 @@
#! /bin/bash
-# FS QA Test 131
-#
-# Test free space tree mount options.
-#
-#-----------------------------------------------------------------------
+# SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2016 Facebook. 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.
+# FS QA Test 131
#
-# 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
-#-----------------------------------------------------------------------
+# Test free space tree mount options.
#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/132 b/tests/btrfs/132
index db0dcb04..700da15d 100755
--- a/tests/btrfs/132
+++ b/tests/btrfs/132
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2016 Fujitsu. All Rights Reserved.
+#
# FS QA Test 132
#
# Check if false ENOSPC will happen when parallel buffer write happens
@@ -6,24 +9,6 @@
# write whose max extent size is not 128M (including compression and in-band
# dedupe).
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2016 Fujitsu. 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/133 b/tests/btrfs/133
index 34b6c131..42246c62 100755
--- a/tests/btrfs/133
+++ b/tests/btrfs/133
@@ -1,29 +1,13 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2017 Synology Inc. All Rights Reserved.
+#
# FS QA Test No. btrfs/133
#
# Test that an incremental send operation does not fail when a new inode
# replaces an old inode that has the same number but different generation,
# and both are direct children of the subvolume/snapshot root.
#
-#-----------------------------------------------------------------------
-# Copyright (C) 2017 Synology Inc. All Rights Reserved.
-# Author: Robbie Ko <robbieko@synology.com>
-#
-# 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/134 b/tests/btrfs/134
index f6520088..7f8c82c0 100755
--- a/tests/btrfs/134
+++ b/tests/btrfs/134
@@ -1,29 +1,13 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2017 Synology Inc. All Rights Reserved.
+#
# FS QA Test No. btrfs/134
#
# Test that an incremental send operation works after moving a directory into
# a new parent directory, deleting its previous parent directory and creating
# a new inode that has the same inode number as the old parent.
#
-#-----------------------------------------------------------------------
-# Copyright (C) 2017 Synology Inc. All Rights Reserved.
-# Author: Robbie Ko <robbieko@synology.com>
-#
-# 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/135 b/tests/btrfs/135
index 2199d6ae..f94975c8 100755
--- a/tests/btrfs/135
+++ b/tests/btrfs/135
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2017 Synology Inc. All Rights Reserved.
+#
# FS QA Test No. btrfs/135
#
# Test that an incremental send operation works when in both snapshots there are
@@ -6,25 +9,6 @@
# have an entry with the same name that corresponds to different inodes in each
# snapshot.
#
-#-----------------------------------------------------------------------
-# Copyright (C) 2017 Synology Inc. All Rights Reserved.
-# Author: Robbie Ko <robbieko@synology.com>
-#
-# 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/136 b/tests/btrfs/136
index 6d46bd6c..de8eb387 100755
--- a/tests/btrfs/136
+++ b/tests/btrfs/136
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2017 Lakshmipathi.G All Rights Reserved.
+#
# FS QA Test 136
#
# Test btrfs-convert
@@ -8,24 +11,6 @@
# 3) populate data.
# 4) source has combination of non-extent and extent files.
# 5) convert it to btrfs, mount and verify contents.
-#-----------------------------------------------------------------------
-# Copyright (c) 2017 Lakshmipathi.G 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/137 b/tests/btrfs/137
index eaac5d49..7e975c3a 100755
--- a/tests/btrfs/137
+++ b/tests/btrfs/137
@@ -1,28 +1,11 @@
#! /bin/bash
-# FS QA Test No. btrfs/137
-#
-# Test that both incremental and full send operations preserve file holes.
-#
-#-----------------------------------------------------------------------
-#
+# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2017 SUSE Linux Products GmbH. All Rights Reserved.
-# Author: Filipe Manana <fdmanana@suse.com>
#
-# 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.
+# FS QA Test No. btrfs/137
#
-# 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
-#-----------------------------------------------------------------------
+# Test that both incremental and full send operations preserve file holes.
#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/138 b/tests/btrfs/138
index a456a845..54211920 100755
--- a/tests/btrfs/138
+++ b/tests/btrfs/138
@@ -1,27 +1,12 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2017 Facebook. All Rights Reserved.
+#
# FS QA Test 138
#
# Test decompression in the middle of large extents. Regression test for Linux
# kernel commit 6e78b3f7a193 ("Btrfs: fix btrfs_decompress_buf2page()").
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2017 Facebook. 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/139 b/tests/btrfs/139
index e930d780..5664617c 100755
--- a/tests/btrfs/139
+++ b/tests/btrfs/139
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2017 SUSE. All Rights Reserved.
+#
# FS QA Test 139
#
# Check if btrfs quota limits are not reached when you constantly
@@ -6,24 +9,6 @@
#
# Finally we create files to exceed the quota.
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2017 SUSE. 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/140 b/tests/btrfs/140
index cf5751e5..1c5aa679 100755
--- a/tests/btrfs/140
+++ b/tests/btrfs/140
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2017 Liu Bo. All Rights Reserved.
+#
# FS QA Test 140
#
# Regression test for btrfs DIO read's repair during read.
@@ -8,24 +11,6 @@
# The upstream fix is
# commit 2e949b0a5592 ("Btrfs: fix invalid dereference in btrfs_retry_endio")
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2017 Liu Bo. 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/141 b/tests/btrfs/141
index 909a2ca3..186d18c8 100755
--- a/tests/btrfs/141
+++ b/tests/btrfs/141
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2017 Liu Bo. All Rights Reserved.
+#
# FS QA Test 141
#
# Regression test for btrfs buffered read's repair during read.
@@ -9,24 +12,6 @@
# The upstream fix is
# Commit 9d0d1c8b1c9d ("Btrfs: bring back repair during read")
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2017 Liu Bo. 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/142 b/tests/btrfs/142
index 1a6ebb62..a23fe1bf 100755
--- a/tests/btrfs/142
+++ b/tests/btrfs/142
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2017 Liu Bo. All Rights Reserved.
+#
# FS QA Test 142
#
# Regression test for btrfs DIO read's repair during read without checksum.
@@ -9,24 +12,6 @@
# The upstream fix is
# commit 97bf5a5589aa ("Btrfs: fix segmentation fault when doing dio read")
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2017 Liu Bo. 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/143 b/tests/btrfs/143
index 848014e0..91af52f9 100755
--- a/tests/btrfs/143
+++ b/tests/btrfs/143
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2017 Liu Bo. All Rights Reserved.
+#
# FS QA Test 143
#
# Regression test for btrfs buffered read's repair during read without checksum.
@@ -16,24 +19,6 @@
# The upstream fix is
# commit 9d0d1c8b1c9d ("Btrfs: bring back repair during read")
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2017 Liu Bo. 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/144 b/tests/btrfs/144
index c4c7be2a..151cded4 100755
--- a/tests/btrfs/144
+++ b/tests/btrfs/144
@@ -1,30 +1,13 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2017 SUSE Linux Products GmbH. All Rights Reserved.
+#
# FS QA Test No. btrfs/144
#
# Test that an incremental send operation works correctly when an inode A is
# renamed, a new hard link added to it and some other inode B is renamed to
# the old name of inode A.
#
-#-----------------------------------------------------------------------
-#
-# Copyright (C) 2017 SUSE Linux Products GmbH. All Rights Reserved.
-# Author: Filipe Manana <fdmanana@suse.com>
-#
-# 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/145 b/tests/btrfs/145
index ef03292e..796587ee 100755
--- a/tests/btrfs/145
+++ b/tests/btrfs/145
@@ -1,30 +1,13 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2017 SUSE Linux Products GmbH. All Rights Reserved.
+#
# FS QA Test No. btrfs/145
#
# Test that an incremental send works if we rename some directory inode A and
# then rename some file inode B to the name inode A had, for the case where the
# directory inode A is an ancestor of inode B in the parent snapshot.
#
-#-----------------------------------------------------------------------
-#
-# Copyright (C) 2017 SUSE Linux Products GmbH. All Rights Reserved.
-# Author: Filipe Manana <fdmanana@suse.com>
-#
-# 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/146 b/tests/btrfs/146
index 4d6c5be5..8ec3128b 100755
--- a/tests/btrfs/146
+++ b/tests/btrfs/146
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2017, Jeff Layton <jlayton@redhat.com>
+#
# FS QA Test No. 146
#
# Open a file several times, write to it, fsync on all fds and make sure that
@@ -6,23 +9,6 @@
# on all fds and fsync on all fds. Ensure that we get errors on all of them.
# Then fsync on all one last time and verify that all return 0.
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2017, Jeff Layton <jlayton@redhat.com>
-#
-# 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
-#-----------------------------------------------------------------------
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/147 b/tests/btrfs/147
index 15517b0c..b124b02b 100755
--- a/tests/btrfs/147
+++ b/tests/btrfs/147
@@ -1,30 +1,13 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2017 SUSE Linux Products GmbH. All Rights Reserved.
+#
# FS QA Test No. btrfs/147
#
# Test that an incremental send/receive operation works correctly after moving
# some directory inode A, renaming a regular file inode B into the old name of
# inode A and finally creating a new hard link for inode B at directory inode A.
#
-#-----------------------------------------------------------------------
-#
-# Copyright (C) 2017 SUSE Linux Products GmbH. All Rights Reserved.
-# Author: Filipe Manana <fdmanana@suse.com>
-#
-# 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/148 b/tests/btrfs/148
index 356842fb..d0e554c2 100755
--- a/tests/btrfs/148
+++ b/tests/btrfs/148
@@ -1,28 +1,11 @@
#! /bin/bash
-# FS QA Test No. btrfs/148
-#
-# Test that direct IO writes work on RAID5 and RAID6 filesystems.
-#
-#-----------------------------------------------------------------------
-#
+# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2017 SUSE Linux Products GmbH. All Rights Reserved.
-# Author: Filipe Manana <fdmanana@suse.com>
#
-# 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.
+# FS QA Test No. btrfs/148
#
-# 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
-#-----------------------------------------------------------------------
+# Test that direct IO writes work on RAID5 and RAID6 filesystems.
#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/149 b/tests/btrfs/149
index 432ec707..3e955a30 100755
--- a/tests/btrfs/149
+++ b/tests/btrfs/149
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2017 SUSE Linux Products GmbH. All Rights Reserved.
+#
# FS QA Test No. btrfs/149
#
# Test that an incremental send/receive operation will not fail when the
@@ -6,26 +9,6 @@
# has a 4K extent at a file offset 0 that is not compressed and that is
# shared.
#
-#-----------------------------------------------------------------------
-#
-# Copyright (C) 2017 SUSE Linux Products GmbH. All Rights Reserved.
-# Author: Filipe Manana <fdmanana@suse.com>
-#
-# 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/150 b/tests/btrfs/150
index 1e4586be..1c644ec6 100755
--- a/tests/btrfs/150
+++ b/tests/btrfs/150
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2017 Oracle. All Rights Reserved.
+#
# FS QA Test btrfs/150
#
# This is a regression test which ends up with a kernel oops in btrfs.
@@ -7,24 +10,6 @@
# The patch to fix it is
# Btrfs: fix kernel oops while reading compressed data
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2017 Oracle. 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/151 b/tests/btrfs/151
index 40b248c6..e67a5cb9 100755
--- a/tests/btrfs/151
+++ b/tests/btrfs/151
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2017 Oracle. All Rights Reserved.
+#
# FS QA Test 151
#
# Test if it's losing data chunk's raid profile after 'btrfs device
@@ -7,24 +10,6 @@
# The fix is
# Btrfs: avoid losing data raid profile when deleting a device
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2017 Oracle. 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/152 b/tests/btrfs/152
index ebb88ed6..faeb3900 100755
--- a/tests/btrfs/152
+++ b/tests/btrfs/152
@@ -1,28 +1,12 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2017 NETGEAR, Inc. All Rights Reserved.
+#
# FS QA Test No. btrfs/152
#
# Test that incremental send/receive operations don't corrupt metadata when
# qgroups are enabled.
#
-#-----------------------------------------------------------------------
-#
-# Copyright (c) 2017 NETGEAR, 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/153 b/tests/btrfs/153
index 95a80952..f343da32 100755
--- a/tests/btrfs/153
+++ b/tests/btrfs/153
@@ -1,27 +1,11 @@
#! /bin/bash
-# FS QA Test 153
-#
-# Test for leaking quota reservations on preallocated files.
-#
-#-----------------------------------------------------------------------
-#
+# SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2017 NETGEAR, 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.
+# FS QA Test 153
#
-# 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
-#-----------------------------------------------------------------------
+# Test for leaking quota reservations on preallocated files.
#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/154 b/tests/btrfs/154
index 7391b983..99ea232a 100755
--- a/tests/btrfs/154
+++ b/tests/btrfs/154
@@ -1,29 +1,13 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2017 Oracle. All Rights Reserved.
+#
# FS QA Test 154
#
# Test for reappearing missing device functionality.
# This test will fail without the btrfs kernel patch
# [PATCH] btrfs: handle dynamically reappearing missing device
#
-#---------------------------------------------------------------------
-# Copyright (c) 2017 Oracle. All Rights Reserved.
-# Author: Anand Jain <anand.jain@oracle.com>
-#
-# 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
-#---------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/155 b/tests/btrfs/155
index 37c23260..08c14ba9 100755
--- a/tests/btrfs/155
+++ b/tests/btrfs/155
@@ -1,30 +1,13 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2017 SUSE Linux Products GmbH. All Rights Reserved.
+#
# FS QA Test No. btrfs/155
#
# Test that an incremental send operation works if a file that has multiple
# hard links has some of its hard links renamed in the send snapshot, with one
# of them getting the same path that some other inode had in the send snapshot.
#
-#-----------------------------------------------------------------------
-#
-# Copyright (C) 2017 SUSE Linux Products GmbH. All Rights Reserved.
-# Author: Filipe Manana <fdmanana@suse.com>
-#
-# 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/156 b/tests/btrfs/156
index 1d38e959..9a97308b 100755
--- a/tests/btrfs/156
+++ b/tests/btrfs/156
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2017 SUSE Linux Products GmbH. All Rights Reserved.
+#
# FS QA Test 156
#
# Check if btrfs can correctly trim free space in block groups
@@ -11,24 +14,6 @@
#
# Fixed by patch named "btrfs: Ensure btrfs_trim_fs can trim the whole fs".
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2017 SUSE Linux Products GmbH. 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/157 b/tests/btrfs/157
index 1105253c..d9ea4b7b 100755
--- a/tests/btrfs/157
+++ b/tests/btrfs/157
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2017 Oracle. All Rights Reserved.
+#
# FS QA Test 157
#
# The test case is to reproduce a bug in raid6 reconstruction process that
@@ -17,24 +20,6 @@
# Btrfs: do not merge rbios if their fail stripe index are not identical
# Btrfs: make raid6 rebuild retry more
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2017 Oracle. 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/158 b/tests/btrfs/158
index 3bcc21ee..fe2dd956 100755
--- a/tests/btrfs/158
+++ b/tests/btrfs/158
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2017 Oracle. All Rights Reserved.
+#
# FS QA Test 158
#
# The test case is check if scrub is able fix raid6 data corruption,
@@ -9,24 +12,6 @@
# Btrfs: make raid6 rebuild retry more
# Btrfs: fix scrub to repair raid6 corruption
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2017 Oracle. 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/159 b/tests/btrfs/159
index eb667692..d4323f5a 100755
--- a/tests/btrfs/159
+++ b/tests/btrfs/159
@@ -1,30 +1,13 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2018 SUSE Linux Products GmbH. All Rights Reserved.
+#
# FSQA Test No. 159
#
# Test that when we have the no-holes mode enabled and a specific metadata
# layout, if we punch a hole and fsync the file, at replay time the whole
# hole was preserved.
#
-#-----------------------------------------------------------------------
-#
-# Copyright (C) 2018 SUSE Linux Products GmbH. All Rights Reserved.
-# Author: Filipe Manana <fdmanana@suse.com>
-#
-# 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/160 b/tests/btrfs/160
index 6cc458e8..0885b793 100755
--- a/tests/btrfs/160
+++ b/tests/btrfs/160
@@ -1,27 +1,13 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2018, Jeff Layton <jlayton@redhat.com>
+#
# FS QA Test No. 160
#
# Open a file and write to it and fsync. Then flip the data device to throw
# errors, write to it again and call sync. Close the file, reopen it and
# then call fsync on it. Is the error reported?
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2018, Jeff Layton <jlayton@redhat.com>
-#
-# 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
-#-----------------------------------------------------------------------
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/161 b/tests/btrfs/161
index 623747f3..dfff8b87 100755
--- a/tests/btrfs/161
+++ b/tests/btrfs/161
@@ -1,28 +1,13 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2018 Oracle. All Rights Reserved.
+#
# FS QA Test 161
#
# seed sprout functionality test
# Create a seed device, mount it and, add a new device to create a
# sprout filesystem.
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2018 Oracle. 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/162 b/tests/btrfs/162
index 93e4b3ca..7f119be0 100755
--- a/tests/btrfs/162
+++ b/tests/btrfs/162
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2018 Oracle. All Rights Reserved.
+#
# FS QA Test 162
#
# Nested seed device test
@@ -6,24 +9,6 @@
# Create a sprout device
# Make the sprout device a seed device and create a sprout device again
#
-#-----------------------------------------------------------------------
-# Copyright (c) 2018 Oracle. 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/163 b/tests/btrfs/163
index d5926c53..8c93e83b 100755
--- a/tests/btrfs/163
+++ b/tests/btrfs/163
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2018 Oracle. All Rights Reserved.
+#
# FS QA Test 163
#
# Test case to verify that a seed device can be replaced
@@ -6,24 +9,6 @@
# Create a sprout device
# Remount RW
# Run device replace on the seed device
-#-----------------------------------------------------------------------
-# Copyright (c) 2018 Oracle. 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
diff --git a/tests/btrfs/164 b/tests/btrfs/164
index ec70c371..097191a0 100755
--- a/tests/btrfs/164
+++ b/tests/btrfs/164
@@ -1,4 +1,7 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2018 Oracle. All Rights Reserved.
+#
# FS QA Test 164 seed device delete test
#
# Test case to verify that a seed device can be deleted
@@ -6,24 +9,6 @@
# Create a sprout device
# Remount RW
# Run device delete on the seed device
-#-----------------------------------------------------------------------
-# Copyright (c) 2018 Oracle. 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
-#-----------------------------------------------------------------------
-#
-
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"