Whamcloud - gitweb
LU-6142 misc: update headers in config, debian, rpm 06/52106/3
authorTimothy Day <timday@amazon.com>
Sun, 27 Aug 2023 00:19:52 +0000 (00:19 +0000)
committerOleg Drokin <green@whamcloud.com>
Wed, 13 Sep 2023 04:01:13 +0000 (04:01 +0000)
Update the file header to have the SPDX license and
use the standard format.

Fix minor style issues with comments in a few files.
Remove `dnl` from m4 files.

Files that are uncertain are left as NOASSERTION
for the license identifier. This makes no claim
about the file. It is used to track files so they
can be addressed later.

https://spdx.github.io/spdx-spec/v2-draft/package-information/#75-package-supplier-field

Test-Parameters: trivial
Signed-off-by: Timothy Day <timday@amazon.com>
Change-Id: I212ce05a4292bbb0d71372d9d75880ce45a219f3
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/52106
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
13 files changed:
config/Makefile.am
config/lustre-build-ldiskfs.m4
config/lustre-build-zfs.m4
config/lustre-build.m4
config/lustre-version.m4
debian/dkms.conf.in
debian/lustre-client-modules-dkms.postinst
debian/lustre-client-modules-dkms.prerm
debian/postinst
debian/postrm
debian/rules
rpm/find-provides
rpm/find-provides.ksyms

index 63804c6..128d9e9 100644 (file)
@@ -1,2 +1,12 @@
+# SPDX-License-Identifier: GPL-2.0
+
+#
+# This file is part of Lustre, http://www.lustre.org/
+#
+# config/Makefile.am
+#
+# Template to generate Makefile
+#
+
 EXTRA_DIST  = lustre-build.m4 lustre-build-linux.m4
 EXTRA_DIST += lustre-build-ldiskfs.m4 lustre-build-zfs.m4
index cc60964..f71ee0d 100644 (file)
@@ -1,3 +1,13 @@
+# SPDX-License-Identifier: GPL-2.0
+
+#
+# This file is part of Lustre, http://www.lustre.org/
+#
+# config/lustre-build-ldiskfs.m4
+#
+# ldiskfs OSD related configuration
+#
+
 #
 # LDISKFS_LINUX_SERIES
 #
@@ -560,6 +570,7 @@ ext4_journal_get_write_access, [
 EXTRA_KCFLAGS="$tmp_flags"
 ]) # LB_EXT4_JOURNAL_GET_WRITE_ACCESS_4A
 
+#
 # LB_HAVE_INODE_LOCK_SHARED
 #
 AC_DEFUN([LB_HAVE_INODE_LOCK_SHARED], [
@@ -576,6 +587,7 @@ inode_lock_shared, [
 ])
 ]) # LB_HAVE_INODE_LOCK_SHARED
 
+#
 # LB_HAVE_INODE_IVERSION
 #
 AC_DEFUN([LB_HAVE_INODE_IVERSION], [
index ac5acce..6137f0a 100644 (file)
@@ -1,61 +1,75 @@
-dnl #
-dnl # Supported configure options.  When no options are specified support
-dnl # for ZFS OSDs will be autodetected assuming server support is enabled.
-dnl # If the ZFS OSD cannot be built support for it is disabled and a
-dnl # warning is issued but the configure process is allowed to continue.
-dnl #
-dnl # --without-zfs   - Disable zfs support.
-dnl # --with-zfs=no
-dnl #
-dnl # --with-zfs      - Enable zfs support and attempt to autodetect the zfs
-dnl # --with-zfs=yes    headers in one of the following places.  Because zfs
-dnl #                   support was explicitly required if the headers cannot
-dnl #                   be located it is treated as a fatal error.
-dnl #
-dnl #                       * /var/lib/dkms/zfs/${VERSION}/source
-dnl #                       * /usr/src/zfs-${VERSION}/${LINUXRELEASE}
-dnl #                       * /usr/src/zfs-${VERSION}
-dnl #                       * ../zfs/
-dnl #                       * $LINUX/zfs
-dnl #
-dnl # --with-zfs-devel=path
-dnl #                 - User provided directory where zfs development headers
-dnl #                   are located. This option is typically used when user
-dnl #                   uses rpm2cpio to unpack src rpm.
-dnl #                   Assumes layout of:
-dnl #                     ${zfs-devel-path}/usr/include/libzfs
-dnl #                     ${zfs-devel-path}/usr/include/libspl
-dnl #                     ${zfs-devel-path}/lib64/libzfs.so.* or
-dnl #                     ${zfs-devel-path}/lib/libzfs.so.*
-dnl #
-dnl # --with-zfs=path - Enable zfs support and use the zfs headers in the
-dnl #                   provided path.  No autodetection is performed and
-dnl #                   if no headers are found this is a fatal error.
-dnl #
-dnl # --with-zfs-obj  - When zfs support is enabled the object directory
-dnl #                   will be based on the --with-zfs directory.  If this
-dnl #                   is detected incorrectly it can be explicitly
-dnl #                   specified using this option.
-dnl #
-dnl # --without-spl   - Disable spl support.
-dnl # --with-spl=no
-dnl #
-dnl # --with-spl      - Enable spl support and attempt to autodetect the spl
-dnl # --with-spl=yes    headers in one of the following places in this order:
-dnl #                   * /var/lib/dkms/spl/${VERSION}/source
-dnl #                   * /usr/src/spl-${VERSION}/${LINUXRELEASE}
-dnl #                   * /usr/src/spl-${VERSION}
-dnl #                   * ../spl/
-dnl #                   * $LINUX/spl
-dnl #
-dnl # --with-spl=path - Enable spl support and use the spl headers in the
-dnl #                   provided path.  No autodetection is performed.
-dnl #
-dnl # --with-spl-obj  - When spl support is enabled the object directory
-dnl #                   will be based on the --with-spl directory.  If this
-dnl #                   is detected incorrectly it can be explicitly
-dnl #                   specified using this option.
-dnl #
+# SPDX-License-Identifier: NOASSERTION
+
+#
+# This file is part of Lustre, http://www.lustre.org/
+#
+# config/lustre-build-zfs.m4
+#
+# openZFS OSD related configuration
+#
+
+#
+# Supported configure options.  When no options are specified support
+# for ZFS OSDs will be autodetected assuming server support is enabled.
+# If the ZFS OSD cannot be built support for it is disabled and a
+# warning is issued but the configure process is allowed to continue.
+#
+# --without-zfs   - Disable zfs support.
+# --with-zfs=no
+#
+# --with-zfs      - Enable zfs support and attempt to autodetect the zfs
+# --with-zfs=yes    headers in one of the following places.  Because zfs
+#                   support was explicitly required if the headers cannot
+#                   be located it is treated as a fatal error.
+#
+#                       * /var/lib/dkms/zfs/${VERSION}/source
+#                       * /usr/src/zfs-${VERSION}/${LINUXRELEASE}
+#                       * /usr/src/zfs-${VERSION}
+#                       * ../zfs/
+#                       * $LINUX/zfs
+#
+# --with-zfs-devel=path
+#                 - User provided directory where zfs development headers
+#                   are located. This option is typically used when user
+#                   uses rpm2cpio to unpack src rpm.
+#                   Assumes layout of:
+#                     ${zfs-devel-path}/usr/include/libzfs
+#                     ${zfs-devel-path}/usr/include/libspl
+#                     ${zfs-devel-path}/lib64/libzfs.so.* or
+#                     ${zfs-devel-path}/lib/libzfs.so.*
+#
+# --with-zfs=path - Enable zfs support and use the zfs headers in the
+#                   provided path.  No autodetection is performed and
+#                   if no headers are found this is a fatal error.
+#
+# --with-zfs-obj  - When zfs support is enabled the object directory
+#                   will be based on the --with-zfs directory.  If this
+#                   is detected incorrectly it can be explicitly
+#                   specified using this option.
+#
+# --without-spl   - Disable spl support.
+# --with-spl=no
+#
+# --with-spl      - Enable spl support and attempt to autodetect the spl
+# --with-spl=yes    headers in one of the following places in this order:
+#                   * /var/lib/dkms/spl/${VERSION}/source
+#                   * /usr/src/spl-${VERSION}/${LINUXRELEASE}
+#                   * /usr/src/spl-${VERSION}
+#                   * ../spl/
+#                   * $LINUX/spl
+#
+# --with-spl=path - Enable spl support and use the spl headers in the
+#                   provided path.  No autodetection is performed.
+#
+# --with-spl-obj  - When spl support is enabled the object directory
+#                   will be based on the --with-spl directory.  If this
+#                   is detected incorrectly it can be explicitly
+#                   specified using this option.
+#
+
+#
+# LB_SPL
+#
 AC_DEFUN([LB_SPL], [
        AC_ARG_WITH([spl],
                AS_HELP_STRING([--with-spl=PATH],
@@ -67,10 +81,10 @@ AC_DEFUN([LB_SPL], [
                [Path to spl build objects]),
                [splobj="$withval"])
 
-       dnl #
-       dnl # The existence of spl.release[.in] is used to identify a valid
-       dnl # source directory.  In order of preference:
-       dnl #
+       #
+       # The existence of spl.release[.in] is used to identify a valid
+       # source directory.  In order of preference:
+       #
        splver=$(ls -1 /usr/src/ | grep ^spl- | cut -f2 -d'-' |
                 sort -V | head -n1)
        spldkms="/var/lib/dkms/spl/${splver}"
@@ -102,14 +116,14 @@ AC_DEFUN([LB_SPL], [
                enable_zfs=no
        ])
 
-       dnl #
-       dnl # The existence of the spl_config.h is used to identify a valid
-       dnl # spl object directory.  In many cases the object and source
-       dnl # directory are the same, however the objects may also reside
-       dnl # is a subdirectory named after the kernel version.  When
-       dnl # weak modules are used, the kernel version may not be the
-       dnl # same as the LINUXRELEASE against which we are building lustre.
-       dnl #
+       #
+       # The existence of the spl_config.h is used to identify a valid
+       # spl object directory.  In many cases the object and source
+       # directory are the same, however the objects may also reside
+       # is a subdirectory named after the kernel version.  When
+       # weak modules are used, the kernel version may not be the
+       # same as the LINUXRELEASE against which we are building lustre.
+       #
        AC_MSG_CHECKING([spl build directory])
        AS_IF([test -z "$splobj"], [
                last_spl_obj_dir=$(ls -d ${splsrc}/[[0-9]]*/  2> /dev/null | tail -n 1 | sed 's|/$||')
@@ -135,9 +149,9 @@ AC_DEFUN([LB_SPL], [
                enable_zfs=no
        ])
 
-       dnl #
-       dnl # Verify the source version using SPL_META_VERSION in spl_config.h
-       dnl #
+       #
+       # Verify the source version using SPL_META_VERSION in spl_config.h
+       #
        AS_IF([test x$enable_zfs = xyes], [
                AC_MSG_CHECKING([spl source version])
                AS_IF([fgrep -q SPL_META_VERSION $splobj/spl_config.h], [
@@ -152,9 +166,9 @@ AC_DEFUN([LB_SPL], [
                AC_MSG_RESULT([$splver])
        ])
 
-       dnl #
-       dnl # Verify the modules systems exist by the expect name.
-       dnl #
+       #
+       # Verify the modules systems exist by the expect name.
+       #
        AS_IF([test x$enable_zfs = xyes], [
                AC_MSG_CHECKING([spl file name for module symbols])
                AS_IF([test -r $splobj/$SYMVERFILE], [
@@ -181,18 +195,21 @@ AC_DEFUN([LB_SPL], [
                AC_SUBST(EXTRA_SYMBOLS)
        ])
 
-])
+]) # LB_SPL
 
+#
+# LB_ZFS
+#
 AC_DEFUN([LB_ZFS], [
        AC_ARG_WITH([zfs-obj],
                AS_HELP_STRING([--with-zfs-obj=PATH],
                [Path to zfs build objects]),
                [zfsobj="$withval"])
 
-       dnl #
-       dnl # The existence of zfs.release[.in] is used to identify a valid
-       dnl # source directory.  In order of preference:
-       dnl #
+       #
+       # The existence of zfs.release[.in] is used to identify a valid
+       # source directory.  In order of preference:
+       #
        zfsver=$(ls -1 /usr/src/ | grep ^zfs- | cut -f2 -d'-' |
                 sort -V | head -n1)
        zfsdkms="/var/lib/dkms/zfs/${zfsver}"
@@ -224,14 +241,14 @@ AC_DEFUN([LB_ZFS], [
                enable_zfs=no
        ])
 
-       dnl #
-       dnl # The existence of the zfs_config.h is used to identify a valid
-       dnl # zfs object directory.  In many cases the object and source
-       dnl # directory are the same, however the objects may also reside
-       dnl # is a subdirectory named after the kernel version.  When
-       dnl # weak modules are used, the kernel version may not be the
-       dnl # same as the LINUXRELEASE against which we are building lustre.
-       dnl #
+       #
+       # The existence of the zfs_config.h is used to identify a valid
+       # zfs object directory.  In many cases the object and source
+       # directory are the same, however the objects may also reside
+       # is a subdirectory named after the kernel version.  When
+       # weak modules are used, the kernel version may not be the
+       # same as the LINUXRELEASE against which we are building lustre.
+       #
        AC_MSG_CHECKING([zfs build directory])
        AS_IF([test -z "$zfsobj"], [
                last_zfs_obj_dir=$(ls -d ${zfssrc}/[[0-9]]*/ 2> /dev/null | tail -n 1 | sed 's|/$||')
@@ -257,9 +274,9 @@ AC_DEFUN([LB_ZFS], [
                enable_zfs=no
        ])
 
-       dnl #
-       dnl # Verify the source version using SPL_META_VERSION in spl_config.h
-       dnl #
+       #
+       # Verify the source version using SPL_META_VERSION in spl_config.h
+       #
        AS_IF([test x$enable_zfs = xyes], [
                AC_MSG_CHECKING([zfs source version])
                AS_IF([fgrep -q ZFS_META_VERSION $zfsobj/zfs_config.h], [
@@ -274,9 +291,9 @@ AC_DEFUN([LB_ZFS], [
                AC_MSG_RESULT([$zfsver])
        ])
 
-       dnl #
-       dnl # Verify the modules systems exist by the expect name.
-       dnl #
+       #
+       # Verify the modules systems exist by the expect name.
+       #
        AS_IF([test x$enable_zfs = xyes], [
                AC_MSG_CHECKING([zfs file name for module symbols])
                AS_IF([test -r $zfsobj/$SYMVERFILE], [
@@ -303,8 +320,11 @@ AC_DEFUN([LB_ZFS], [
                AC_SUBST(EXTRA_SYMBOLS)
        ])
 
-])
+]) # LB_ZFS
 
+#
+# LB_ZFS_DEVEL
+#
 AC_DEFUN([LB_ZFS_DEVEL], [
        AC_ARG_WITH([zfs-devel],
                [AS_HELP_STRING([--with-zfs-devel=PATH],
@@ -321,12 +341,15 @@ AC_DEFUN([LB_ZFS_DEVEL], [
                ])
        ])
        AC_MSG_RESULT([$zfsinc])
-])
+]) # LB_ZFS_DEVEL
 
+#
+# LB_ZFS_USER
+#
 AC_DEFUN([LB_ZFS_USER], [
-       dnl #
-       dnl # Detect user space zfs development headers.
-       dnl #
+       #
+       # Detect user space zfs development headers.
+       #
        AC_MSG_CHECKING([zfs devel headers])
        AS_IF([test -z "${zfsinc}"], [
                AS_IF([test -e "${zfssrc}/include/libzfs.h" && test -e "${zfssrc}/lib/libspl/include"], [
@@ -349,8 +372,11 @@ AC_DEFUN([LB_ZFS_USER], [
        AC_SUBST(ZFS_LIBZFS_INCLUDE)
        AC_SUBST(ZFS_LIBZFS_LDFLAGS)
        AC_SUBST(ZFS_LIBZFS_LIBS)
-])
+]) # LB_ZFS_USER
 
+#
+# LB_CONFIG_ZFS
+#
 AC_DEFUN([LB_CONFIG_ZFS], [
        AC_ARG_WITH([zfs],
                [AS_HELP_STRING([--with-zfs=PATH], [Path to zfs source])],
@@ -391,9 +417,9 @@ AC_DEFUN([LB_CONFIG_ZFS], [
                LB_ZFS_DEVEL
                LB_ZFS_USER
 
-               dnl #
-               dnl # Define zfs source code version
-               dnl #
+               #
+               # Define zfs source code version
+               #
                ZFS_MAJOR=$(echo $zfsver | sed -re ['s/([0-9]+)\.([0-9]+)\.([0-9]+)(\.([0-9]+))?.*/\1/'])
                ZFS_MINOR=$(echo $zfsver | sed -re ['s/([0-9]+)\.([0-9]+)\.([0-9]+)(\.([0-9]+))?.*/\2/'])
                ZFS_PATCH=$(echo $zfsver | sed -re ['s/([0-9]+)\.([0-9]+)\.([0-9]+)(\.([0-9]+))?.*/\3/'])
@@ -405,9 +431,9 @@ AC_DEFUN([LB_CONFIG_ZFS], [
                AC_DEFINE_UNQUOTED([ZFS_PATCH], [$ZFS_PATCH], [zfs patch version])
                AC_DEFINE_UNQUOTED([ZFS_FIX],   [$ZFS_FIX],   [zfs fix version])
 
-               dnl #
-               dnl # SPL is only needed if ZFS is prior to 0.8.0
-               dnl #
+               #
+               # SPL is only needed if ZFS is prior to 0.8.0
+               #
                AS_IF([test x$enable_modules = xyes && test -n "$ZFS_MAJOR" &&
                            test $ZFS_MAJOR -eq 0 && test $ZFS_MINOR -lt 8], [
                        LB_SPL
@@ -415,10 +441,10 @@ AC_DEFUN([LB_CONFIG_ZFS], [
                        enable_spl=no
                ])
 
-               dnl #
-               dnl # enable_zfs will be set to no in LB_SPL or LB_ZFS if
-               dnl # one of more of the build requirements is not met.
-               dnl #
+               #
+               # enable_zfs will be set to no in LB_SPL or LB_ZFS if
+               # one of more of the build requirements is not met.
+               #
                AS_IF([test x$enable_zfs = xyes], [
                        AC_DEFINE(HAVE_ZFS_OSD, 1, Enable zfs osd)
                ],[
@@ -485,14 +511,14 @@ your distribution.
                        AC_MSG_ERROR([spa_maxblocksize does not exist])
                ])
 
-               dnl #
-               dnl # ZFS 0.7.x adds support for large dnodes.  This
-               dnl # allows Lustre to optionally specify the size of a
-               dnl # dnode which ZFS will then use to store metadata such
-               dnl # as xattrs. The default dnode size specified by the
-               dnl # 'dnodesize' dataset property will be used unless a
-               dnl # specific value is provided.
-               dnl #
+               #
+               # ZFS 0.7.x adds support for large dnodes.  This
+               # allows Lustre to optionally specify the size of a
+               # dnode which ZFS will then use to store metadata such
+               # as xattrs. The default dnode size specified by the
+               # 'dnodesize' dataset property will be used unless a
+               # specific value is provided.
+               #
                LB_CHECK_COMPILE([if zfs defines dmu_object_alloc_dnsize],
                dmu_object_alloc_dnsize, [
                        #include <sys/dmu.h>
@@ -517,12 +543,12 @@ your distribution.
                        AC_MSG_ERROR([dmu_object_alloc_dnsize does not exist])
                ])
 
-               dnl #
-               dnl # ZFS 0.7.x extended dmu_prefetch() to take an additional
-               dnl # 'level' and 'priority' argument.  Use a level of 0 and a
-               dnl # priority of ZIO_PRIORITY_SYNC_READ to replicate the
-               dnl # behavior of the four argument version.
-               dnl #
+               #
+               # ZFS 0.7.x extended dmu_prefetch() to take an additional
+               # 'level' and 'priority' argument.  Use a level of 0 and a
+               # priority of ZIO_PRIORITY_SYNC_READ to replicate the
+               # behavior of the four argument version.
+               #
                LB_CHECK_COMPILE([if ZFS has 'dmu_prefetch' with 6 args],
                dmu_prefetch, [
                        #include <sys/dmu.h>
@@ -541,9 +567,9 @@ your distribution.
                ],[
                        AC_MSG_ERROR([6 argument dmu_pretch does not exist])
                ])
-               dnl #
-               dnl # ZFS 0.7.0 feature: SPA_FEATURE_USEROBJ_ACCOUNTING
-               dnl #
+               #
+               # ZFS 0.7.0 feature: SPA_FEATURE_USEROBJ_ACCOUNTING
+               #
                LB_CHECK_COMPILE([if ZFS has native dnode accounting supported],
                dmu_objset_userobjused_enabled, [
                        #include <sys/dmu_objset.h>
@@ -555,9 +581,9 @@ your distribution.
                ],[
                        AC_MSG_ERROR([native dnode accounting does not exist])
                ])
-               dnl #
-               dnl # ZFS 0.7.0 feature: MULTIHOST
-               dnl #
+               #
+               # ZFS 0.7.0 feature: MULTIHOST
+               #
                LB_CHECK_COMPILE([if ZFS has multihost protection],
                spa_multihost, [
                        #include <sys/fs/zfs.h>
@@ -571,9 +597,9 @@ your distribution.
                ],[
                        AC_MSG_ERROR([multihost protection does not exist])
                ])
-               dnl #
-               dnl # ZFS 0.7.x adds new method zap_lookup_by_dnode
-               dnl #
+               #
+               # ZFS 0.7.x adds new method zap_lookup_by_dnode
+               #
                LB_CHECK_COMPILE([if ZFS has 'zap_lookup_by_dnode'],
                zap_lookup_by_dnode, [
                        #include <sys/zap.h>
@@ -587,9 +613,9 @@ your distribution.
                ],[
                        AC_MSG_ERROR([zap_lookup_by_dnode does not exist])
                ])
-               dnl #
-               dnl # ZFS 0.7.x adds new method zap_add_by_dnode
-               dnl #
+               #
+               # ZFS 0.7.x adds new method zap_add_by_dnode
+               #
                LB_CHECK_COMPILE([if ZFS has 'zap_add_by_dnode'],
                zap_add_by_dnode, [
                        #include <sys/zap.h>
@@ -603,9 +629,9 @@ your distribution.
                ],[
                        AC_MSG_ERROR([zap_add_by_dnode does not exist])
                ])
-               dnl #
-               dnl # ZFS 0.7.x adds new method zap_remove_by_dnode
-               dnl #
+               #
+               # ZFS 0.7.x adds new method zap_remove_by_dnode
+               #
                LB_CHECK_COMPILE([if ZFS has 'zap_remove_by_dnode'],
                zap_remove_by_dnode, [
                        #include <sys/zap.h>
@@ -619,9 +645,9 @@ your distribution.
                ],[
                        AC_MSG_ERROR([zap_remove_by_dnode does not exist])
                ])
-               dnl #
-               dnl # ZFS 0.7.x adds new method dmu_tx_hold_zap_by_dnode
-               dnl #
+               #
+               # ZFS 0.7.x adds new method dmu_tx_hold_zap_by_dnode
+               #
                LB_CHECK_COMPILE([if ZFS has 'dmu_tx_hold_zap_by_dnode'],
                dmu_tx_hold_zap_by_dnode, [
                        #include <sys/zap.h>
@@ -635,9 +661,9 @@ your distribution.
                ],[
                        AC_MSG_ERROR([dmu_tx_hold_zap_by_dnode does not exist])
                ])
-               dnl #
-               dnl # ZFS 0.7.x adds new method dmu_tx_hold_write_by_dnode
-               dnl #
+               #
+               # ZFS 0.7.x adds new method dmu_tx_hold_write_by_dnode
+               #
                LB_CHECK_COMPILE([if ZFS has 'dmu_tx_hold_write_by_dnode'],
                dmu_tx_hold_write_by_dnode, [
                        #include <sys/zap.h>
@@ -651,9 +677,9 @@ your distribution.
                ],[
                        AC_MSG_ERROR([dmu_tx_hold_write_by_dnode does not exist])
                ])
-               dnl #
-               dnl # ZFS 0.7.x adds new method dmu_write_by_dnode
-               dnl #
+               #
+               # ZFS 0.7.x adds new method dmu_write_by_dnode
+               #
                LB_CHECK_COMPILE([if ZFS has 'dmu_write_by_dnode'],
                dmu_write_by_dnode, [
                        #include <sys/zap.h>
@@ -667,9 +693,9 @@ your distribution.
                ],[
                        AC_MSG_ERROR([dmu_write_by_dnode does not exist])
                ])
-               dnl #
-               dnl # ZFS 0.7.x adds new method dmu_read_by_dnode
-               dnl #
+               #
+               # ZFS 0.7.x adds new method dmu_read_by_dnode
+               #
                LB_CHECK_COMPILE([if ZFS has 'dmu_read_by_dnode'],
                dmu_read_by_dnode, [
                        #include <sys/zap.h>
@@ -683,9 +709,9 @@ your distribution.
                ],[
                        AC_MSG_ERROR([dmu_read_by_dnode does not exist])
                ])
-               dnl #
-               dnl # ZFS 0.7.2 adds new method dmu_tx_mark_netfree
-               dnl #
+               #
+               # ZFS 0.7.2 adds new method dmu_tx_mark_netfree
+               #
                LB_CHECK_COMPILE([if ZFS has 'dmu_tx_mark_netfree'],
                dmu_tx_mark_netfree, [
                        #include <sys/dmu.h>
@@ -696,9 +722,9 @@ your distribution.
                        AC_DEFINE(HAVE_DMU_TX_MARK_NETFREE, 1,
                                [Have dmu_tx_mark_netfree])
                ])
-               dnl #
-               dnl # ZFS 0.7.10 changes timestruc_t to inode_timespec_t
-               dnl #
+               #
+               # ZFS 0.7.10 changes timestruc_t to inode_timespec_t
+               #
                LB_CHECK_COMPILE([if SPL has 'inode_timespec_t'],
                zfs_have_inode_timespec, [
                        #include <sys/fs/zfs.h>
@@ -709,12 +735,12 @@ your distribution.
                        AC_DEFINE(HAVE_ZFS_INODE_TIMESPEC, 1,
                                [Have inode_timespec_t])
                ])
-               dnl # ZFS 0.7.12/0.8.x uses zfs_refcount_add() instead of
-               dnl # refcount_add().  ZFS 2.0 renamed sys/refcount.h to
-               dnl # sys/zfs_refcount.h, rather the add another check to
-               dnl # determine the correct header name include it
-               dnl # indirectly through sys/dnode.h.
-               dnl #
+               # ZFS 0.7.12/0.8.x uses zfs_refcount_add() instead of
+               # refcount_add().  ZFS 2.0 renamed sys/refcount.h to
+               # sys/zfs_refcount.h, rather the add another check to
+               # determine the correct header name include it
+               # indirectly through sys/dnode.h.
+               #
                LB_CHECK_COMPILE([if ZFS has 'zfs_refcount_add'],
                zfs_refcount_add, [
                        #include <sys/dnode.h>
@@ -724,9 +750,9 @@ your distribution.
                        AC_DEFINE(HAVE_ZFS_REFCOUNT_ADD, 1,
                                [Have zfs_refcount_add])
                ])
-               dnl #
-               dnl # ZFS 0.8.x changes dmu_objset_own for encryption
-               dnl #
+               #
+               # ZFS 0.8.x changes dmu_objset_own for encryption
+               #
                LB_CHECK_COMPILE([if ZFS has 'dmu_objset_own' with 6 args],
                dmu_objset_own, [
                        #include <sys/dmu_objset.h>
@@ -738,9 +764,9 @@ your distribution.
                        AC_DEFINE(HAVE_DMU_OBJSET_OWN_6ARG, 1,
                                [Have dmu_objset_own() with 6 args])
                ])
-               dnl #
-               dnl # ZFS 0.8.x changes dmu_objset_disown for encryption
-               dnl #
+               #
+               # ZFS 0.8.x changes dmu_objset_disown for encryption
+               #
                LB_CHECK_COMPILE([if ZFS has 'dmu_objset_disown' with 3 args],
                dmu_objset_disown, [
                        #include <sys/dmu_objset.h>
@@ -751,9 +777,9 @@ your distribution.
                        AC_DEFINE(HAVE_DMU_OBJSET_DISOWN_3ARG, 1,
                                [Have dmu_objset_disown() with 3 args])
                ])
-               dnl #
-               dnl # ZFS exports dmu_offet_next
-               dnl #
+               #
+               # ZFS exports dmu_offet_next
+               #
                AC_CACHE_CHECK([if ZFS exports 'dmu_offset_next'],
                [lb_cv_dmu_offset_next], [
                lb_cv_dmu_offset_next="no"
@@ -764,10 +790,10 @@ your distribution.
                        AC_DEFINE(HAVE_DMU_OFFSET_NEXT, 1,
                                [Have dmu_offset_next() exported])
                ])
-               dnl #
-               dnl # ZFS 2.0 replaced .db_last_dirty / .dr_next with a list_t
-               dnl # and list_node_t named .db_dirty_records / .dr_dbuf_node.
-               dnl #
+               #
+               # ZFS 2.0 replaced .db_last_dirty / .dr_next with a list_t
+               # and list_node_t named .db_dirty_records / .dr_dbuf_node.
+               #
                LB_CHECK_COMPILE([if ZFS has 'db_dirty_records' list_t],
                db_dirty_records, [
                        #include <sys/dbuf.h>
@@ -779,10 +805,10 @@ your distribution.
                        AC_DEFINE(HAVE_DB_DIRTY_RECORDS_LIST, 1,
                                [Have db_dirty_records list_t])
                ])
-               dnl #
-               dnl # ZFS 2.0 renamed sys/refcount.h to zfs_refcount.h
-               dnl # This build issue shows up with ZFS 2.0.7 and Lustre 2.12 LTS
-               dnl #
+               #
+               # ZFS 2.0 renamed sys/refcount.h to zfs_refcount.h
+               # This build issue shows up with ZFS 2.0.7 and Lustre 2.12 LTS
+               #
                LB_CHECK_COMPILE([if ZFS renamed sys/refcount to zfs_refcount.h],
                zfs_zfs_refcount, [
                        #include <sys/zfs_refcount.h>
@@ -801,4 +827,4 @@ your distribution.
        ])
        AM_CONDITIONAL(ZFS_ENABLED, [test "x$enable_zfs" = xyes])
        AM_CONDITIONAL(SPL_ENABLED, [test "x$enable_spl" = xyes])
-])
+]) # LB_CONFIG_ZFS
index c853504..85d9b96 100644 (file)
@@ -1,3 +1,13 @@
+# SPDX-License-Identifier: GPL-2.0
+
+#
+# This file is part of Lustre, http://www.lustre.org/
+#
+# config/lustre-build.m4
+#
+# Generic Lustre configuration options
+#
+
 #
 # LB_CANONICAL_SYSTEM
 #
index 307a372..cf88cc2 100644 (file)
@@ -1,3 +1,13 @@
+# SPDX-License-Identifier: GPL-2.0
+
+#
+# This file is part of Lustre, http://www.lustre.org/
+#
+# config/lustre-version.m4
+#
+# Defines variables for Lustre version number
+#
+
 #
 # LUSTRE_VERSION_CPP_MACROS
 #
@@ -17,4 +27,4 @@ AC_DEFINE_UNQUOTED([LUSTRE_FIX], [$LUSTRE_FIX], [Fourth number in the Lustre ver
 # divergence from the Lustre client code in the upstream Linux kernel code.
 AC_DEFINE_UNQUOTED([LUSTRE_VERSION_STRING], ["$PACKAGE_VERSION"], [A copy of PACKAGE_VERSION])
 
-])
+]) # LUSTRE_VERSION_CPP_MACROS
index 2cd63b0..0bd0be0 100644 (file)
@@ -1,8 +1,20 @@
+# SPDX-License-Identifier: NOASSERTION
+
+#
+# Copyright 2012 Genome Research Ltd.
+#           2017-2018 Universität Hamburg
+#
+
+#
+# This file is part of Lustre, http://www.lustre.org/
+#
+# debian/dkms.conf.in
+#
 # Lustre Linux kernel module (DKMS)
+#
 # Created by Guy Coates
 # Updated by Michael Kuhn
-# Copyright 2012 Genome Research Ltd.
-#           2017-2018 Universität Hamburg
+#
 
 PACKAGE_NAME="lustre-client-modules"
 PACKAGE_VERSION="@UPVERSION@"
index 0e4500b..4395283 100644 (file)
@@ -1,4 +1,13 @@
 #!/bin/bash
+# SPDX-License-Identifier: NOASSERTION
+
+#
+# This file is part of Lustre, http://www.lustre.org/
+#
+# debian/lustre-client-module-dkms.postinst
+#
+# Script run after Lustre DKMS modules are installed
+#
 
 set -e
 
index 79154d4..31fc7a0 100644 (file)
@@ -1,4 +1,13 @@
 #!/bin/bash
+# SPDX-License-Identifier: NOASSERTION
+
+#
+# This file is part of Lustre, http://www.lustre.org/
+#
+# debian/lustre-client-module-dkms.prerm
+#
+# Script run before Lustre DKMS modules are removed
+#
 
 set -e
 
index d2343eb..7f81f9a 100755 (executable)
@@ -1,4 +1,13 @@
 #!/bin/bash
+# SPDX-License-Identifier: NOASSERTION
+
+#
+# This file is part of Lustre, http://www.lustre.org/
+#
+# debian/postinst
+#
+# Script run before Lustre module/utils are installed
+#
 
 DEPMOD_DIR="/etc/depmod.d"
 LUSTRE_DEPMOD_FILE="${DEPMOD_DIR}/lustre.conf"
index 476b60f..eae5bbc 100755 (executable)
@@ -1,4 +1,13 @@
 #!/bin/bash
+# SPDX-License-Identifier: NOASSERTION
+
+#
+# This file is part of Lustre, http://www.lustre.org/
+#
+# debian/postrm
+#
+# Script run before Lustre module/utils are removed
+#
 
 DEPMOD_DIR="/etc/depmod.d"
 LUSTRE_DEPMOD_FILE="${DEPMOD_DIR}/lustre.conf"
index 87edcda..c9c9fb8 100755 (executable)
@@ -1,12 +1,21 @@
 #!/usr/bin/make -f
+# SPDX-License-Identifier: NOASSERTION
+
 #
-# Created 2009 by Brian J. Murrell based on work by
-# Alastair McKinstry, <alastair.mckinstry@ichec.ie>, <mckinstry@debian.org>
-# Patrick Winnertz, and the pkg-lustre Debian maintainers
+# This file is part of Lustre, http://www.lustre.org/
+#
+# debian/rules
+#
+# Debian rules file
 #
 # Copying and modification is unlimited, provided that the modified
 # version is marked as being modified.
 # (This version has been modified from the original)
+#
+# Created 2009 by Brian J. Murrell based on work by
+# Alastair McKinstry, <alastair.mckinstry@ichec.ie>, <mckinstry@debian.org>
+# Patrick Winnertz, and the pkg-lustre Debian maintainers
+#
 
 # Uncomment this to turn on verbose mode.
 # export DH_VERBOSE=1
@@ -34,11 +43,6 @@ else
         CFLAGS += -O2
 endif
 
-# We need the kernels to be built with gcc-3.3; suspect that gcc-4.1 uses too
-# much stack and crashes because of it.
-#CC?=gcc-3.3
-#export CC
-
 # This is the debhelper compatibility version to use.
 export DH_COMPAT=11
 
index e0738e0..f25d4e6 100755 (executable)
@@ -1,11 +1,18 @@
 #!/bin/bash
+# SPDX-License-Identifier: GPL-2.0
 
+#
+# This file is part of Lustre, http://www.lustre.org/
+#
+# rpm/find-provides
+#
 # This script reads filenames from STDIN and outputs any relevant provides
 # information that needs to be included in the package.
+#
 
 if [ "$1" ]
 then
-   package_name="$1"
+    package_name="$1"
 fi
 
 filelist=`sed "s/['\"]/\\\&/g"`
@@ -18,7 +25,7 @@ filelist=`sed "s/['\"]/\\\&/g"`
 for i in /usr/lib/rpm/redhat/find-provides.d/*.prov
 do
     [ -x $i ] &&
-        (echo $filelist | tr '[:blank:]' \\n | $i | sort -u)
+       (echo $filelist | tr '[:blank:]' \\n | $i | sort -u)
 done
 
 #
@@ -32,7 +39,7 @@ is_kmod=1
 for f in $filelist; do
     if [ $(echo "$f" | sed -r -ne 's:^.*/lib/modules/(.*)/(.*)\.ko(\.gz|\.bz2|\.xz)?$:\2:p') ]
     then
-        is_kernel=1;
+       is_kernel=1;
     fi
     if [ $(echo "$f" | sed -r -ne 's:^.*/boot/(.*):\1:p') ]
     then
index 7f4c863..b290135 100755 (executable)
@@ -1,4 +1,13 @@
-#! /bin/bash
+#!/bin/bash
+# SPDX-License-Identifier: GPL-2.0
+
+#
+# This file is part of Lustre, http://www.lustre.org/
+#
+# rpm/find-provides.ksyms
+#
+# Find which kernel symbols a particular module provides
+#
 
 IFS=$'\n'