Skip to contentSkip to conversation

SPDX conversion from UDF

PATCH In review Bagas Sanjaya 3 participants 10 messages May 22, 2023 – May 30, 2023

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

v2 cover SPDX conversion from UDF

This small SPDX conversion series targets UDF file system, which is splitted from v2 of my SPDX conversion series that is triggered by Didi's GPL full name fixes [1]. It is done to ease review.

All boilerplates in fs/udf/ is converted, except fs/udf/ecma_167.h. The latter file apparently looks like 2-clause BSD Source-Code license, yet the second clause is from third clause of 3-Clause BSD. This custom license can't be expressed satisfiably in SPDX license identifier, hence the file doesn't get converted.

This series is based on mm-nonmm-unstable branch.

Changes since v1 [2]:
* Correct SPDX tag for LGPL (correct spdxcheck warning)

[1]: https://lore.kernel.org/linux-spdx/[email protected]/
[2]: https://lore.kernel.org/linux-mm/[email protected]/

Bagas Sanjaya (2):
fs: udf: Replace GPL 2.0 boilerplate license notice with SPDX
identifier
fs: udf: udftime: Replace LGPL boilerplate with SPDX identifier

 fs/udf/balloc.c    |  6 +-----
 fs/udf/dir.c       |  6 +-----
 fs/udf/directory.c |  6 +-----
 fs/udf/file.c      |  6 +-----
 fs/udf/ialloc.c    |  6 +-----
 fs/udf/inode.c     |  6 +-----
 fs/udf/lowlevel.c  |  6 +-----
 fs/udf/misc.c      |  6 +-----
 fs/udf/namei.c     |  6 +-----
 fs/udf/partition.c |  6 +-----
 fs/udf/super.c     |  6 +-----
 fs/udf/symlink.c   |  6 +-----
 fs/udf/truncate.c  |  6 +-----
 fs/udf/udftime.c   | 18 ++----------------
 fs/udf/unicode.c   |  6 +-----
 15 files changed, 16 insertions(+), 86 deletions(-)

base-commit: 7e61b33831bc7680b24bc04af9ed9c1553dac406

Range-diff against v1:

1:  442194d17ed043 = 1:  30fb64a215be1c fs: udf: Replace GPL 2.0 boilerplate license notice with SPDX identifier
2:  ccb407446ab324 ! 2:  f7cfeaa5cec879 fs: udf: udftime: Replace LGPL boilerplate with SPDX identifier
    @@ Commit message
     
      ## fs/udf/udftime.c ##
     @@
    -+// SPDX-License-Identifier: LGPL-2.0-or-later
    ++// SPDX-License-Identifier: LGPL-2.0+
      /* Copyright (C) 1993, 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
         This file is part of the GNU C Library.
     -   Contributed by Paul Eggert ([email protected]).
Signature · 1 line
An old man doll... just what I always wanted! - Clara
#1 lore raw

PATCH v2 1/2 fs: udf: Replace GPL 2.0 boilerplate license notice with SPDX identifier

The notice refers to full GPL 2.0 text on now defunct MIT FTP site [1]. Replace it with appropriate SPDX license identifier.

---
 fs/udf/balloc.c    | 6 +-----
 fs/udf/dir.c       | 6 +-----
 fs/udf/directory.c | 6 +-----
 fs/udf/file.c      | 6 +-----
 fs/udf/ialloc.c    | 6 +-----
 fs/udf/inode.c     | 6 +-----
 fs/udf/lowlevel.c  | 6 +-----
 fs/udf/misc.c      | 6 +-----
 fs/udf/namei.c     | 6 +-----
 fs/udf/partition.c | 6 +-----
 fs/udf/super.c     | 6 +-----
 fs/udf/symlink.c   | 6 +-----
 fs/udf/truncate.c  | 6 +-----
 fs/udf/unicode.c   | 6 +-----
 14 files changed, 14 insertions(+), 70 deletions(-)
fs/udf/balloc.c +1 -5
index 14b9db4c80f03f..ab3ffc355949dc 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * balloc.c
  *
@@ -5,11 +6,6 @@
  *	Block allocation handling routines for the OSTA-UDF(tm) filesystem.
  *
  * COPYRIGHT
- *	This file is distributed under the terms of the GNU General Public
- *	License (GPL). Copies of the GPL can be obtained from:
- *		ftp://prep.ai.mit.edu/pub/gnu/GPL
- *	Each contributing author retains all rights to their own work.
- *
  *  (C) 1999-2001 Ben Fennema
  *  (C) 1999 Stelias Computing Inc
  *
fs/udf/dir.c +1 -5
index 212393b12c2266..f6533f93851b95 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * dir.c
  *
@@ -5,11 +6,6 @@
  *  Directory handling routines for the OSTA-UDF(tm) filesystem.
  *
  * COPYRIGHT
- *	This file is distributed under the terms of the GNU General Public
- *	License (GPL). Copies of the GPL can be obtained from:
- *		ftp://prep.ai.mit.edu/pub/gnu/GPL
- *	Each contributing author retains all rights to their own work.
- *
  *  (C) 1998-2004 Ben Fennema
  *
  * HISTORY
fs/udf/directory.c +1 -5
index 654536d2b60976..1c775e072b2fef 100644
@@ -1,14 +1,10 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * directory.c
  *
  * PURPOSE
  *	Directory related functions
  *
- * COPYRIGHT
- *	This file is distributed under the terms of the GNU General Public
- *	License (GPL). Copies of the GPL can be obtained from:
- *		ftp://prep.ai.mit.edu/pub/gnu/GPL
- *	Each contributing author retains all rights to their own work.
  */
 
 #include "udfdecl.h"
fs/udf/file.c +1 -5
index 8238f742377bab..b871b85457e5bb 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * file.c
  *
@@ -5,11 +6,6 @@
  *  File handling routines for the OSTA-UDF(tm) filesystem.
  *
  * COPYRIGHT
- *  This file is distributed under the terms of the GNU General Public
- *  License (GPL). Copies of the GPL can be obtained from:
- *    ftp://prep.ai.mit.edu/pub/gnu/GPL
- *  Each contributing author retains all rights to their own work.
- *
  *  (C) 1998-1999 Dave Boynton
  *  (C) 1998-2004 Ben Fennema
  *  (C) 1999-2000 Stelias Computing Inc
fs/udf/ialloc.c +1 -5
index 8d50121778a57d..5f7ac8c8479873 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * ialloc.c
  *
@@ -5,11 +6,6 @@
  *	Inode allocation handling routines for the OSTA-UDF(tm) filesystem.
  *
  * COPYRIGHT
- *	This file is distributed under the terms of the GNU General Public
- *	License (GPL). Copies of the GPL can be obtained from:
- *		ftp://prep.ai.mit.edu/pub/gnu/GPL
- *	Each contributing author retains all rights to their own work.
- *
  *  (C) 1998-2001 Ben Fennema
  *
  * HISTORY
fs/udf/inode.c +1 -5
index 1e71e04ae8f6b9..28cdfc57d946e3 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * inode.c
  *
@@ -5,11 +6,6 @@
  *  Inode handling routines for the OSTA-UDF(tm) filesystem.
  *
  * COPYRIGHT
- *  This file is distributed under the terms of the GNU General Public
- *  License (GPL). Copies of the GPL can be obtained from:
- *    ftp://prep.ai.mit.edu/pub/gnu/GPL
- *  Each contributing author retains all rights to their own work.
- *
  *  (C) 1998 Dave Boynton
  *  (C) 1998-2004 Ben Fennema
  *  (C) 1999-2000 Stelias Computing Inc
fs/udf/lowlevel.c +1 -5
index c87ed942d07653..9d847a7a0905dd 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * lowlevel.c
  *
@@ -5,11 +6,6 @@
  *  Low Level Device Routines for the UDF filesystem
  *
  * COPYRIGHT
- *	This file is distributed under the terms of the GNU General Public
- *	License (GPL). Copies of the GPL can be obtained from:
- *		ftp://prep.ai.mit.edu/pub/gnu/GPL
- *	Each contributing author retains all rights to their own work.
- *
  *  (C) 1999-2001 Ben Fennema
  *
  * HISTORY
fs/udf/misc.c +1 -5
index 3777468d06ce58..0788593b6a1d8b 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * misc.c
  *
@@ -5,11 +6,6 @@
  *	Miscellaneous routines for the OSTA-UDF(tm) filesystem.
  *
  * COPYRIGHT
- *	This file is distributed under the terms of the GNU General Public
- *	License (GPL). Copies of the GPL can be obtained from:
- *		ftp://prep.ai.mit.edu/pub/gnu/GPL
- *	Each contributing author retains all rights to their own work.
- *
  *  (C) 1998 Dave Boynton
  *  (C) 1998-2004 Ben Fennema
  *  (C) 1999-2000 Stelias Computing Inc
fs/udf/namei.c +1 -5
index fd20423d3ed24c..49e1e0fe3feeb2 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * namei.c
  *
@@ -5,11 +6,6 @@
  *      Inode name handling routines for the OSTA-UDF(tm) filesystem.
  *
  * COPYRIGHT
- *      This file is distributed under the terms of the GNU General Public
- *      License (GPL). Copies of the GPL can be obtained from:
- *              ftp://prep.ai.mit.edu/pub/gnu/GPL
- *      Each contributing author retains all rights to their own work.
- *
  *  (C) 1998-2004 Ben Fennema
  *  (C) 1999-2000 Stelias Computing Inc
  *
fs/udf/partition.c +1 -5
index 5bcfe78d5cabe9..af877991edc13a 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * partition.c
  *
@@ -5,11 +6,6 @@
  *      Partition handling routines for the OSTA-UDF(tm) filesystem.
  *
  * COPYRIGHT
- *      This file is distributed under the terms of the GNU General Public
- *      License (GPL). Copies of the GPL can be obtained from:
- *              ftp://prep.ai.mit.edu/pub/gnu/GPL
- *      Each contributing author retains all rights to their own work.
- *
  *  (C) 1998-2001 Ben Fennema
  *
  * HISTORY
fs/udf/super.c +1 -5
index 6304e3c5c3d969..928a04d9d9e0ad 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * super.c
  *
@@ -15,11 +16,6 @@
  *    https://www.iso.org/
  *
  * COPYRIGHT
- *  This file is distributed under the terms of the GNU General Public
- *  License (GPL). Copies of the GPL can be obtained from:
- *    ftp://prep.ai.mit.edu/pub/gnu/GPL
- *  Each contributing author retains all rights to their own work.
- *
  *  (C) 1998 Dave Boynton
  *  (C) 1998-2004 Ben Fennema
  *  (C) 2000 Stelias Computing Inc
fs/udf/symlink.c +1 -5
index a34c8c4e6d2109..779b5c2c75f61e 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * symlink.c
  *
@@ -5,11 +6,6 @@
  *	Symlink handling routines for the OSTA-UDF(tm) filesystem.
  *
  * COPYRIGHT
- *	This file is distributed under the terms of the GNU General Public
- *	License (GPL). Copies of the GPL can be obtained from:
- *		ftp://prep.ai.mit.edu/pub/gnu/GPL
- *	Each contributing author retains all rights to their own work.
- *
  *  (C) 1998-2001 Ben Fennema
  *  (C) 1999 Stelias Computing Inc
  *
fs/udf/truncate.c +1 -5
index 2e7ba234bab8b8..a686c10fd709d1 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * truncate.c
  *
@@ -5,11 +6,6 @@
  *	Truncate handling routines for the OSTA-UDF(tm) filesystem.
  *
  * COPYRIGHT
- *	This file is distributed under the terms of the GNU General Public
- *	License (GPL). Copies of the GPL can be obtained from:
- *		ftp://prep.ai.mit.edu/pub/gnu/GPL
- *	Each contributing author retains all rights to their own work.
- *
  *  (C) 1999-2004 Ben Fennema
  *  (C) 1999 Stelias Computing Inc
  *
fs/udf/unicode.c +1 -5
index 622569007b530b..ae6e809fa3aac7 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * unicode.c
  *
@@ -11,11 +12,6 @@
  *	UTF-8 is explained in the IETF RFC XXXX.
  *		ftp://ftp.internic.net/rfc/rfcxxxx.txt
  *
- * COPYRIGHT
- *	This file is distributed under the terms of the GNU General Public
- *	License (GPL). Copies of the GPL can be obtained from:
- *		ftp://prep.ai.mit.edu/pub/gnu/GPL
- *	Each contributing author retains all rights to their own work.
  */
 
 #include "udfdecl.h"
Signature · 1 line
An old man doll... just what I always wanted! - Clara
#2 lore raw

Re: [PATCH v2 1/2] fs: udf: Replace GPL 2.0 boilerplate license notice with SPDX identifier

it looks like in a couple cases you have removed the word, "COPYRIGHT" and in the other cases you have not. I could be consistent one way or another and lean towards removing it, as I see it as a heading for the old license notice, but Richard may have a different view :)

Jilayne

Quoted 317 lines · Bagas Sanjaya

The notice refers to full GPL 2.0 text on now defunct MIT FTP site [1]. Replace it with appropriate SPDX license identifier.

---
  fs/udf/balloc.c    | 6 +-----
  fs/udf/dir.c       | 6 +-----
  fs/udf/directory.c | 6 +-----
  fs/udf/file.c      | 6 +-----
  fs/udf/ialloc.c    | 6 +-----
  fs/udf/inode.c     | 6 +-----
  fs/udf/lowlevel.c  | 6 +-----
  fs/udf/misc.c      | 6 +-----
  fs/udf/namei.c     | 6 +-----
  fs/udf/partition.c | 6 +-----
  fs/udf/super.c     | 6 +-----
  fs/udf/symlink.c   | 6 +-----
  fs/udf/truncate.c  | 6 +-----
  fs/udf/unicode.c   | 6 +-----
  14 files changed, 14 insertions(+), 70 deletions(-)
fs/udf/balloc.c +1 -5
index 14b9db4c80f03f..ab3ffc355949dc 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
  /*
   * balloc.c
   *
@@ -5,11 +6,6 @@
   *	Block allocation handling routines for the OSTA-UDF(tm) filesystem.
   *
   * COPYRIGHT
- *	This file is distributed under the terms of the GNU General Public
- *	License (GPL). Copies of the GPL can be obtained from:
- *		ftp://prep.ai.mit.edu/pub/gnu/GPL
- *	Each contributing author retains all rights to their own work.
- *
   *  (C) 1999-2001 Ben Fennema
   *  (C) 1999 Stelias Computing Inc
   *
fs/udf/dir.c +1 -5
index 212393b12c2266..f6533f93851b95 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
  /*
   * dir.c
   *
@@ -5,11 +6,6 @@
   *  Directory handling routines for the OSTA-UDF(tm) filesystem.
   *
   * COPYRIGHT
- *	This file is distributed under the terms of the GNU General Public
- *	License (GPL). Copies of the GPL can be obtained from:
- *		ftp://prep.ai.mit.edu/pub/gnu/GPL
- *	Each contributing author retains all rights to their own work.
- *
   *  (C) 1998-2004 Ben Fennema
   *
   * HISTORY
fs/udf/directory.c +1 -5
index 654536d2b60976..1c775e072b2fef 100644
@@ -1,14 +1,10 @@
+// SPDX-License-Identifier: GPL-2.0-only
  /*
   * directory.c
   *
   * PURPOSE
   *	Directory related functions
   *
- * COPYRIGHT
- *	This file is distributed under the terms of the GNU General Public
- *	License (GPL). Copies of the GPL can be obtained from:
- *		ftp://prep.ai.mit.edu/pub/gnu/GPL
- *	Each contributing author retains all rights to their own work.
   */
 
  #include "udfdecl.h"
fs/udf/file.c +1 -5
index 8238f742377bab..b871b85457e5bb 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
  /*
   * file.c
   *
@@ -5,11 +6,6 @@
   *  File handling routines for the OSTA-UDF(tm) filesystem.
   *
   * COPYRIGHT
- *  This file is distributed under the terms of the GNU General Public
- *  License (GPL). Copies of the GPL can be obtained from:
- *ftp://prep.ai.mit.edu/pub/gnu/GPL
- *  Each contributing author retains all rights to their own work.
- *
   *  (C) 1998-1999 Dave Boynton
   *  (C) 1998-2004 Ben Fennema
   *  (C) 1999-2000 Stelias Computing Inc
fs/udf/ialloc.c +1 -5
index 8d50121778a57d..5f7ac8c8479873 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
  /*
   * ialloc.c
   *
@@ -5,11 +6,6 @@
   *	Inode allocation handling routines for the OSTA-UDF(tm) filesystem.
   *
   * COPYRIGHT
- *	This file is distributed under the terms of the GNU General Public
- *	License (GPL). Copies of the GPL can be obtained from:
- *		ftp://prep.ai.mit.edu/pub/gnu/GPL
- *	Each contributing author retains all rights to their own work.
- *
   *  (C) 1998-2001 Ben Fennema
   *
   * HISTORY
fs/udf/inode.c +1 -5
index 1e71e04ae8f6b9..28cdfc57d946e3 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
  /*
   * inode.c
   *
@@ -5,11 +6,6 @@
   *  Inode handling routines for the OSTA-UDF(tm) filesystem.
   *
   * COPYRIGHT
- *  This file is distributed under the terms of the GNU General Public
- *  License (GPL). Copies of the GPL can be obtained from:
- *ftp://prep.ai.mit.edu/pub/gnu/GPL
- *  Each contributing author retains all rights to their own work.
- *
   *  (C) 1998 Dave Boynton
   *  (C) 1998-2004 Ben Fennema
   *  (C) 1999-2000 Stelias Computing Inc
fs/udf/lowlevel.c +1 -5
index c87ed942d07653..9d847a7a0905dd 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
  /*
   * lowlevel.c
   *
@@ -5,11 +6,6 @@
   *  Low Level Device Routines for the UDF filesystem
   *
   * COPYRIGHT
- *	This file is distributed under the terms of the GNU General Public
- *	License (GPL). Copies of the GPL can be obtained from:
- *		ftp://prep.ai.mit.edu/pub/gnu/GPL
- *	Each contributing author retains all rights to their own work.
- *
   *  (C) 1999-2001 Ben Fennema
   *
   * HISTORY
fs/udf/misc.c +1 -5
index 3777468d06ce58..0788593b6a1d8b 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
  /*
   * misc.c
   *
@@ -5,11 +6,6 @@
   *	Miscellaneous routines for the OSTA-UDF(tm) filesystem.
   *
   * COPYRIGHT
- *	This file is distributed under the terms of the GNU General Public
- *	License (GPL). Copies of the GPL can be obtained from:
- *		ftp://prep.ai.mit.edu/pub/gnu/GPL
- *	Each contributing author retains all rights to their own work.
- *
   *  (C) 1998 Dave Boynton
   *  (C) 1998-2004 Ben Fennema
   *  (C) 1999-2000 Stelias Computing Inc
fs/udf/namei.c +1 -5
index fd20423d3ed24c..49e1e0fe3feeb2 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
  /*
   * namei.c
   *
@@ -5,11 +6,6 @@
   *      Inode name handling routines for the OSTA-UDF(tm) filesystem.
   *
   * COPYRIGHT
- *      This file is distributed under the terms of the GNU General Public
- *      License (GPL). Copies of the GPL can be obtained from:
- *ftp://prep.ai.mit.edu/pub/gnu/GPL
- *      Each contributing author retains all rights to their own work.
- *
   *  (C) 1998-2004 Ben Fennema
   *  (C) 1999-2000 Stelias Computing Inc
   *
fs/udf/partition.c +1 -5
index 5bcfe78d5cabe9..af877991edc13a 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
  /*
   * partition.c
   *
@@ -5,11 +6,6 @@
   *      Partition handling routines for the OSTA-UDF(tm) filesystem.
   *
   * COPYRIGHT
- *      This file is distributed under the terms of the GNU General Public
- *      License (GPL). Copies of the GPL can be obtained from:
- *ftp://prep.ai.mit.edu/pub/gnu/GPL
- *      Each contributing author retains all rights to their own work.
- *
   *  (C) 1998-2001 Ben Fennema
   *
   * HISTORY
fs/udf/super.c +1 -5
index 6304e3c5c3d969..928a04d9d9e0ad 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
  /*
   * super.c
   *
@@ -15,11 +16,6 @@
   *https://www.iso.org/
   *
   * COPYRIGHT
- *  This file is distributed under the terms of the GNU General Public
- *  License (GPL). Copies of the GPL can be obtained from:
- *ftp://prep.ai.mit.edu/pub/gnu/GPL
- *  Each contributing author retains all rights to their own work.
- *
   *  (C) 1998 Dave Boynton
   *  (C) 1998-2004 Ben Fennema
   *  (C) 2000 Stelias Computing Inc
fs/udf/symlink.c +1 -5
index a34c8c4e6d2109..779b5c2c75f61e 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
  /*
   * symlink.c
   *
@@ -5,11 +6,6 @@
   *	Symlink handling routines for the OSTA-UDF(tm) filesystem.
   *
   * COPYRIGHT
- *	This file is distributed under the terms of the GNU General Public
- *	License (GPL). Copies of the GPL can be obtained from:
- *		ftp://prep.ai.mit.edu/pub/gnu/GPL
- *	Each contributing author retains all rights to their own work.
- *
   *  (C) 1998-2001 Ben Fennema
   *  (C) 1999 Stelias Computing Inc
   *
fs/udf/truncate.c +1 -5
index 2e7ba234bab8b8..a686c10fd709d1 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
  /*
   * truncate.c
   *
@@ -5,11 +6,6 @@
   *	Truncate handling routines for the OSTA-UDF(tm) filesystem.
   *
   * COPYRIGHT
- *	This file is distributed under the terms of the GNU General Public
- *	License (GPL). Copies of the GPL can be obtained from:
- *		ftp://prep.ai.mit.edu/pub/gnu/GPL
- *	Each contributing author retains all rights to their own work.
- *
   *  (C) 1999-2004 Ben Fennema
   *  (C) 1999 Stelias Computing Inc
   *
fs/udf/unicode.c +1 -5
index 622569007b530b..ae6e809fa3aac7 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
  /*
   * unicode.c
   *
@@ -11,11 +12,6 @@
   *	UTF-8 is explained in the IETF RFC XXXX.
   *		ftp://ftp.internic.net/rfc/rfcxxxx.txt
   *
- * COPYRIGHT
- *	This file is distributed under the terms of the GNU General Public
- *	License (GPL). Copies of the GPL can be obtained from:
- *		ftp://prep.ai.mit.edu/pub/gnu/GPL
- *	Each contributing author retains all rights to their own work.
   */
 
  #include "udfdecl.h"
#3 lore raw

Re: [PATCH v2 1/2] fs: udf: Replace GPL 2.0 boilerplate license notice with SPDX identifier

Quoted 2 lines · J Lovejoy

it looks like in a couple cases you have removed the word, "COPYRIGHT" and in the other cases you have not. I could be consistent one way or another and lean towards removing it, as I see it as a heading for the old license notice, but Richard may have a different view :)

I don't have the context that you mean (I have no idea what code you're referring to). Please reply inline with appropriate context in the future.

Signature · 1 line
An old man doll... just what I always wanted! - Clara
#4 lore raw

Re: [PATCH v2 1/2] fs: udf: Replace GPL 2.0 boilerplate license notice with SPDX identifier

In reply to Bagas Sanjaya
Quoted 56 lines · Bagas Sanjaya

The notice refers to full GPL 2.0 text on now defunct MIT FTP site [1]. Replace it with appropriate SPDX license identifier.

---
  fs/udf/balloc.c    | 6 +-----
  fs/udf/dir.c       | 6 +-----
  fs/udf/directory.c | 6 +-----
  fs/udf/file.c      | 6 +-----
  fs/udf/ialloc.c    | 6 +-----
  fs/udf/inode.c     | 6 +-----
  fs/udf/lowlevel.c  | 6 +-----
  fs/udf/misc.c      | 6 +-----
  fs/udf/namei.c     | 6 +-----
  fs/udf/partition.c | 6 +-----
  fs/udf/super.c     | 6 +-----
  fs/udf/symlink.c   | 6 +-----
  fs/udf/truncate.c  | 6 +-----
  fs/udf/unicode.c   | 6 +-----
  14 files changed, 14 insertions(+), 70 deletions(-)
fs/udf/balloc.c +1 -5
index 14b9db4c80f03f..ab3ffc355949dc 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
  /*
   * balloc.c
   *
@@ -5,11 +6,6 @@
   *	Block allocation handling routines for the OSTA-UDF(tm) filesystem.
   *
   * COPYRIGHT
- *	This file is distributed under the terms of the GNU General Public
- *	License (GPL). Copies of the GPL can be obtained from:
- *		ftp://prep.ai.mit.edu/pub/gnu/GPL
- *	Each contributing author retains all rights to their own work.
- *
   *  (C) 1999-2001 Ben Fennema
   *  (C) 1999 Stelias Computing Inc
   *
fs/udf/dir.c +1 -0
index 212393b12c2266..f6533f93851b95 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
  /*
   * dir.c
   *
@@ -5,11 +6,6 @@
   *  Directory handling routines for the OSTA-UDF(tm) filesystem.

fs/udf/dir.c line 11

Quoted 10 lines
fs/udf/dir.c +0 -5
   *
   * COPYRIGHT
- *	This file is distributed under the terms of the GNU General Public
- *	License (GPL). Copies of the GPL can be obtained from:
- *		ftp://prep.ai.mit.edu/pub/gnu/GPL
- *	Each contributing author retains all rights to their own work.
- *
   *  (C) 1998-2004 Ben Fennema
   *
   * HISTORY

In these first two patches you have retained the word "COPYRIGHT" but...

Quoted 10 lines
fs/udf/directory.c +1 -0
index 654536d2b60976..1c775e072b2fef 100644
@@ -1,14 +1,10 @@
+// SPDX-License-Identifier: GPL-2.0-only
  /*
   * directory.c
   *
   * PURPOSE

fs/udf/directory.c line 10

Quoted 10 lines
fs/udf/directory.c +0 -5
   *	Directory related functions
   *
- * COPYRIGHT
- *	This file is distributed under the terms of the GNU General Public
- *	License (GPL). Copies of the GPL can be obtained from:
- *		ftp://prep.ai.mit.edu/pub/gnu/GPL
- *	Each contributing author retains all rights to their own work.
   */
 
  #include "udfdecl.h"

In this patch (as well as the last one below), you have removed the word "COPYRIGHT" - I'm not sure having that word or not makes any meaningful difference (I'd lean toward removing), but either way, I think it should be consistent

Quoted 231 lines
fs/udf/file.c +1 -5
index 8238f742377bab..b871b85457e5bb 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
  /*
   * file.c
   *
@@ -5,11 +6,6 @@
   *  File handling routines for the OSTA-UDF(tm) filesystem.
   *
   * COPYRIGHT
- *  This file is distributed under the terms of the GNU General Public
- *  License (GPL). Copies of the GPL can be obtained from:
- *    ftp://prep.ai.mit.edu/pub/gnu/GPL
- *  Each contributing author retains all rights to their own work.
- *
   *  (C) 1998-1999 Dave Boynton
   *  (C) 1998-2004 Ben Fennema
   *  (C) 1999-2000 Stelias Computing Inc
fs/udf/ialloc.c +1 -5
index 8d50121778a57d..5f7ac8c8479873 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
  /*
   * ialloc.c
   *
@@ -5,11 +6,6 @@
   *	Inode allocation handling routines for the OSTA-UDF(tm) filesystem.
   *
   * COPYRIGHT
- *	This file is distributed under the terms of the GNU General Public
- *	License (GPL). Copies of the GPL can be obtained from:
- *		ftp://prep.ai.mit.edu/pub/gnu/GPL
- *	Each contributing author retains all rights to their own work.
- *
   *  (C) 1998-2001 Ben Fennema
   *
   * HISTORY
fs/udf/inode.c +1 -5
index 1e71e04ae8f6b9..28cdfc57d946e3 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
  /*
   * inode.c
   *
@@ -5,11 +6,6 @@
   *  Inode handling routines for the OSTA-UDF(tm) filesystem.
   *
   * COPYRIGHT
- *  This file is distributed under the terms of the GNU General Public
- *  License (GPL). Copies of the GPL can be obtained from:
- *    ftp://prep.ai.mit.edu/pub/gnu/GPL
- *  Each contributing author retains all rights to their own work.
- *
   *  (C) 1998 Dave Boynton
   *  (C) 1998-2004 Ben Fennema
   *  (C) 1999-2000 Stelias Computing Inc
fs/udf/lowlevel.c +1 -5
index c87ed942d07653..9d847a7a0905dd 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
  /*
   * lowlevel.c
   *
@@ -5,11 +6,6 @@
   *  Low Level Device Routines for the UDF filesystem
   *
   * COPYRIGHT
- *	This file is distributed under the terms of the GNU General Public
- *	License (GPL). Copies of the GPL can be obtained from:
- *		ftp://prep.ai.mit.edu/pub/gnu/GPL
- *	Each contributing author retains all rights to their own work.
- *
   *  (C) 1999-2001 Ben Fennema
   *
   * HISTORY
fs/udf/misc.c +1 -5
index 3777468d06ce58..0788593b6a1d8b 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
  /*
   * misc.c
   *
@@ -5,11 +6,6 @@
   *	Miscellaneous routines for the OSTA-UDF(tm) filesystem.
   *
   * COPYRIGHT
- *	This file is distributed under the terms of the GNU General Public
- *	License (GPL). Copies of the GPL can be obtained from:
- *		ftp://prep.ai.mit.edu/pub/gnu/GPL
- *	Each contributing author retains all rights to their own work.
- *
   *  (C) 1998 Dave Boynton
   *  (C) 1998-2004 Ben Fennema
   *  (C) 1999-2000 Stelias Computing Inc
fs/udf/namei.c +1 -5
index fd20423d3ed24c..49e1e0fe3feeb2 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
  /*
   * namei.c
   *
@@ -5,11 +6,6 @@
   *      Inode name handling routines for the OSTA-UDF(tm) filesystem.
   *
   * COPYRIGHT
- *      This file is distributed under the terms of the GNU General Public
- *      License (GPL). Copies of the GPL can be obtained from:
- *              ftp://prep.ai.mit.edu/pub/gnu/GPL
- *      Each contributing author retains all rights to their own work.
- *
   *  (C) 1998-2004 Ben Fennema
   *  (C) 1999-2000 Stelias Computing Inc
   *
fs/udf/partition.c +1 -5
index 5bcfe78d5cabe9..af877991edc13a 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
  /*
   * partition.c
   *
@@ -5,11 +6,6 @@
   *      Partition handling routines for the OSTA-UDF(tm) filesystem.
   *
   * COPYRIGHT
- *      This file is distributed under the terms of the GNU General Public
- *      License (GPL). Copies of the GPL can be obtained from:
- *              ftp://prep.ai.mit.edu/pub/gnu/GPL
- *      Each contributing author retains all rights to their own work.
- *
   *  (C) 1998-2001 Ben Fennema
   *
   * HISTORY
fs/udf/super.c +1 -5
index 6304e3c5c3d969..928a04d9d9e0ad 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
  /*
   * super.c
   *
@@ -15,11 +16,6 @@
   *    https://www.iso.org/
   *
   * COPYRIGHT
- *  This file is distributed under the terms of the GNU General Public
- *  License (GPL). Copies of the GPL can be obtained from:
- *    ftp://prep.ai.mit.edu/pub/gnu/GPL
- *  Each contributing author retains all rights to their own work.
- *
   *  (C) 1998 Dave Boynton
   *  (C) 1998-2004 Ben Fennema
   *  (C) 2000 Stelias Computing Inc
fs/udf/symlink.c +1 -5
index a34c8c4e6d2109..779b5c2c75f61e 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
  /*
   * symlink.c
   *
@@ -5,11 +6,6 @@
   *	Symlink handling routines for the OSTA-UDF(tm) filesystem.
   *
   * COPYRIGHT
- *	This file is distributed under the terms of the GNU General Public
- *	License (GPL). Copies of the GPL can be obtained from:
- *		ftp://prep.ai.mit.edu/pub/gnu/GPL
- *	Each contributing author retains all rights to their own work.
- *
   *  (C) 1998-2001 Ben Fennema
   *  (C) 1999 Stelias Computing Inc
   *
fs/udf/truncate.c +1 -5
index 2e7ba234bab8b8..a686c10fd709d1 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
  /*
   * truncate.c
   *
@@ -5,11 +6,6 @@
   *	Truncate handling routines for the OSTA-UDF(tm) filesystem.
   *
   * COPYRIGHT
- *	This file is distributed under the terms of the GNU General Public
- *	License (GPL). Copies of the GPL can be obtained from:
- *		ftp://prep.ai.mit.edu/pub/gnu/GPL
- *	Each contributing author retains all rights to their own work.
- *
   *  (C) 1999-2004 Ben Fennema
   *  (C) 1999 Stelias Computing Inc
   *
fs/udf/unicode.c +1 -5
index 622569007b530b..ae6e809fa3aac7 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
  /*
   * unicode.c
   *
@@ -11,11 +12,6 @@
   *	UTF-8 is explained in the IETF RFC XXXX.
   *		ftp://ftp.internic.net/rfc/rfcxxxx.txt
   *
- * COPYRIGHT
- *	This file is distributed under the terms of the GNU General Public
- *	License (GPL). Copies of the GPL can be obtained from:
- *		ftp://prep.ai.mit.edu/pub/gnu/GPL
- *	Each contributing author retains all rights to their own work.
   */
 
  #include "udfdecl.h"
#5 lore raw

PATCH v2 2/2 fs: udf: udftime: Replace LGPL boilerplate with SPDX identifier

In reply to Bagas Sanjaya

Replace license boilerplate in udftime.c with SPDX identifier for LGPL-2.0.

Cc Paul Eggert <[email protected]>
Cc Richard Fontana <[email protected]>
Cc Pali Rohár <[email protected]>
---
 fs/udf/udftime.c | 18 ++----------------
 1 file changed, 2 insertions(+), 16 deletions(-)
fs/udf/udftime.c +2 -16
index fce4ad976c8c29..758163af39c262 100644
@@ -1,21 +1,7 @@
+// SPDX-License-Identifier: LGPL-2.0+
 /* Copyright (C) 1993, 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
-   Contributed by Paul Eggert ([email protected]).
-
-   The GNU C Library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Library General Public License as
-   published by the Free Software Foundation; either version 2 of the
-   License, or (at your option) any later version.
-
-   The GNU C Library is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-   Library General Public License for more details.
-
-   You should have received a copy of the GNU Library General Public
-   License along with the GNU C Library; see the file COPYING.LIB.  If not,
-   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-   Boston, MA 02111-1307, USA.  */
+   Contributed by Paul Eggert ([email protected]). */
 
 /*
  * dgb 10/02/98: ripped this from glibc source to help convert timestamps
Signature · 1 line
An old man doll... just what I always wanted! - Clara
Reviewed-by on v2 2/2
#6 lore raw

Re: [PATCH v2 2/2] fs: udf: udftime: Replace LGPL boilerplate with SPDX identifier

Quoted 29 lines · Bagas Sanjaya

Replace license boilerplate in udftime.c with SPDX identifier for LGPL-2.0.

Cc Paul Eggert <[email protected]>
Cc Richard Fontana <[email protected]>
Cc Pali Rohár <[email protected]>
---
  fs/udf/udftime.c | 18 ++----------------
  1 file changed, 2 insertions(+), 16 deletions(-)
fs/udf/udftime.c +1 -10
index fce4ad976c8c29..758163af39c262 100644
@@ -1,21 +1,7 @@
+// SPDX-License-Identifier: LGPL-2.0+
  /* Copyright (C) 1993, 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
     This file is part of the GNU C Library.
-   Contributed by Paul Eggert ([email protected]).
-
-   The GNU C Library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Library General Public License as
-   published by the Free Software Foundation; either version 2 of the
-   License, or (at your option) any later version.
-
-   The GNU C Library is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU

fs/udf/udftime.c line 7

Quoted 10 lines
fs/udf/udftime.c +1 -6
-   Library General Public License for more details.
-
-   You should have received a copy of the GNU Library General Public
-   License along with the GNU C Library; see the file COPYING.LIB.  If not,
-   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-   Boston, MA 02111-1307, USA.  */
+   Contributed by Paul Eggert ([email protected]). */
 
  /*
   * dgb 10/02/98: ripped this from glibc source to help convert timestamps
#7 lore raw

Re: [PATCH v2 2/2] fs: udf: udftime: Replace LGPL boilerplate with SPDX identifier

Quoted 34 lines · J Lovejoy
Quoted 31 lines · Bagas Sanjaya

Replace license boilerplate in udftime.c with SPDX identifier for LGPL-2.0.

Cc Paul Eggert <[email protected]>
Cc Richard Fontana <[email protected]>
Cc Pali Rohár <[email protected]>

---
  fs/udf/udftime.c | 18 ++----------------

  1 file changed, 2 insertions(+), 16 deletions(-)
fs/udf/udftime.c +1 -0
index fce4ad976c8c29..758163af39c262 100644
@@ -1,21 +1,7 @@
+// SPDX-License-Identifier: LGPL-2.0+
   /* Copyright (C) 1993, 1994, 1995, 1996, 1997 Free Software Foundation, Inc.

     This file is part of the GNU C Library. -   Contributed by Paul Eggert ([email protected]).

fs/udf/udftime.c +0 -11
-
-   The GNU C Library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Library General Public License as
-   published by the Free Software Foundation; either version 2 of the
-   License, or (at your option) any later version.
-
-   The GNU C Library is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-   Library General Public License for more details.
-
Quoted 8 lines
Quoted 7 lines

-   You should have received a copy of the GNU Library General Public -   License along with the GNU C Library; see the file COPYING.LIB.  If not, -   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, -   Boston, MA 02111-1307, USA.  */
+   Contributed by Paul Eggert ([email protected]). */
    /*
   * dgb 10/02/98: ripped this from glibc source to help convert timestamps

OK, thanks!

Signature · 1 line
An old man doll... just what I always wanted! - Clara
#8 lore raw
In reply to Bagas Sanjaya
Quoted 15 lines · Bagas Sanjaya

This small SPDX conversion series targets UDF file system, which is splitted from v2 of my SPDX conversion series that is triggered by Didi's GPL full name fixes [1]. It is done to ease review.

All boilerplates in fs/udf/ is converted, except fs/udf/ecma_167.h. The latter file apparently looks like 2-clause BSD Source-Code license, yet the second clause is from third clause of 3-Clause BSD. This custom license can't be expressed satisfiably in SPDX license identifier, hence the file doesn't get converted.

This series is based on mm-nonmm-unstable branch.

Changes since v1 [2]:
* Correct SPDX tag for LGPL (correct spdxcheck warning)

Quoted 7 lines

[1]: https://lore.kernel.org/linux-spdx/[email protected]/
[2]: https://lore.kernel.org/linux-mm/[email protected]/

Bagas Sanjaya (2):
fs: udf: Replace GPL 2.0 boilerplate license notice with SPDX
identifier
fs: udf: udftime: Replace LGPL boilerplate with SPDX identifier

The patches look good to me. So unless someone objects in a few days, I'll queue them into my tree. Thanks!

Honza

Quoted 38 lines
 fs/udf/balloc.c    |  6 +-----
 fs/udf/dir.c       |  6 +-----
 fs/udf/directory.c |  6 +-----
 fs/udf/file.c      |  6 +-----
 fs/udf/ialloc.c    |  6 +-----
 fs/udf/inode.c     |  6 +-----
 fs/udf/lowlevel.c  |  6 +-----
 fs/udf/misc.c      |  6 +-----
 fs/udf/namei.c     |  6 +-----
 fs/udf/partition.c |  6 +-----
 fs/udf/super.c     |  6 +-----
 fs/udf/symlink.c   |  6 +-----
 fs/udf/truncate.c  |  6 +-----
 fs/udf/udftime.c   | 18 ++----------------
 fs/udf/unicode.c   |  6 +-----
 15 files changed, 16 insertions(+), 86 deletions(-)

base-commit: 7e61b33831bc7680b24bc04af9ed9c1553dac406

Range-diff against v1:

1:  442194d17ed043 = 1:  30fb64a215be1c fs: udf: Replace GPL 2.0 boilerplate license notice with SPDX identifier
2:  ccb407446ab324 ! 2:  f7cfeaa5cec879 fs: udf: udftime: Replace LGPL boilerplate with SPDX identifier
    @@ Commit message
     
      ## fs/udf/udftime.c ##
     @@
    -+// SPDX-License-Identifier: LGPL-2.0-or-later
    ++// SPDX-License-Identifier: LGPL-2.0+
      /* Copyright (C) 1993, 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
         This file is part of the GNU C Library.
     -   Contributed by Paul Eggert ([email protected]).
Signature · 1 line
An old man doll... just what I always wanted! - Clara
Signature · 2 lines
Jan Kara <[email protected]>
SUSE Labs, CR
#9 lore raw
Quoted 19 lines · Jan Kara
Quoted 18 lines · Bagas Sanjaya

This small SPDX conversion series targets UDF file system, which is splitted from v2 of my SPDX conversion series that is triggered by Didi's GPL full name fixes [1]. It is done to ease review.

All boilerplates in fs/udf/ is converted, except fs/udf/ecma_167.h. The latter file apparently looks like 2-clause BSD Source-Code license, yet the second clause is from third clause of 3-Clause BSD. This custom license can't be expressed satisfiably in SPDX license identifier, hence the file doesn't get converted.

This series is based on mm-nonmm-unstable branch.

Changes since v1 [2]:
* Correct SPDX tag for LGPL (correct spdxcheck warning)

[1]: https://lore.kernel.org/linux-spdx/[email protected]/
[2]: https://lore.kernel.org/linux-mm/[email protected]/

Quoted 7 lines
Quoted 4 lines

Bagas Sanjaya (2):
fs: udf: Replace GPL 2.0 boilerplate license notice with SPDX
identifier
fs: udf: udftime: Replace LGPL boilerplate with SPDX identifier

The patches look good to me. So unless someone objects in a few days, I'll queue them into my tree. Thanks!

Patches queued now.

Honza