RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/gfs2-utils#01606e25fc1dc289800b53ef29011db23f0b72b9
This commit is contained in:
parent
2269733196
commit
7dc3f909e5
1
.gitignore
vendored
1
.gitignore
vendored
@ -0,0 +1 @@
|
||||
/gfs2-utils-3.3.0.tar.gz
|
15
gating.yaml
Normal file
15
gating.yaml
Normal file
@ -0,0 +1,15 @@
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- fedora-*
|
||||
decision_context: bodhi_update_push_testing
|
||||
subject_type: koji_build
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
|
||||
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- fedora-*
|
||||
decision_context: bodhi_update_push_stable
|
||||
subject_type: koji_build
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
|
212
gfs2-utils.spec
Normal file
212
gfs2-utils.spec
Normal file
@ -0,0 +1,212 @@
|
||||
Name: gfs2-utils
|
||||
Version: 3.3.0
|
||||
Release: 2%{?dist}
|
||||
License: GPLv2+ and LGPLv2+
|
||||
Summary: Utilities for managing the global file system (GFS2)
|
||||
%ifnarch %{arm}
|
||||
%{?fedora:Recommends: kmod(gfs2.ko) kmod(dlm.ko)}
|
||||
%endif
|
||||
BuildRequires: ncurses-devel
|
||||
BuildRequires: kernel-headers
|
||||
BuildRequires: automake
|
||||
BuildRequires: libtool
|
||||
BuildRequires: zlib-devel
|
||||
BuildRequires: gettext-devel
|
||||
BuildRequires: bison
|
||||
BuildRequires: flex
|
||||
BuildRequires: libblkid-devel
|
||||
BuildRequires: libuuid-devel
|
||||
BuildRequires: check-devel
|
||||
BuildRequires: bzip2-devel
|
||||
Source: https://releases.pagure.org/gfs2-utils/gfs2-utils-%{version}.tar.gz
|
||||
URL: https://pagure.io/gfs2-utils
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
./autogen.sh
|
||||
%configure
|
||||
%make_build
|
||||
|
||||
%check
|
||||
make check || { cat tests/testsuite.log; exit 1; }
|
||||
|
||||
%install
|
||||
%make_install
|
||||
# Don't ship gfs2_{trace,lockcapture} in this package
|
||||
rm -f %{buildroot}/usr/sbin/gfs2_trace
|
||||
rm -f %{buildroot}/usr/sbin/gfs2_lockcapture
|
||||
rm -f %{buildroot}%{_mandir}/man8/gfs2_trace.8
|
||||
rm -f %{buildroot}%{_mandir}/man8/gfs2_lockcapture.8
|
||||
|
||||
%description
|
||||
The gfs2-utils package contains a number of utilities for creating, checking,
|
||||
modifying, and correcting inconsistencies in GFS2 file systems.
|
||||
|
||||
%files
|
||||
%doc doc/COPYING.* doc/COPYRIGHT doc/*.txt
|
||||
%doc doc/README.contributing doc/README.licence
|
||||
%{_sbindir}/fsck.gfs2
|
||||
%{_sbindir}/gfs2_grow
|
||||
%{_sbindir}/gfs2_jadd
|
||||
%{_sbindir}/mkfs.gfs2
|
||||
%{_sbindir}/gfs2_convert
|
||||
%{_sbindir}/gfs2_edit
|
||||
%{_sbindir}/tunegfs2
|
||||
%{_sbindir}/glocktop
|
||||
%{_libexecdir}/gfs2_withdraw_helper
|
||||
%{_mandir}/man8/*gfs2*
|
||||
%{_mandir}/man8/glocktop*
|
||||
%{_mandir}/man5/*
|
||||
%{_prefix}/lib/udev/rules.d/82-gfs2-withdraw.rules
|
||||
|
||||
%changelog
|
||||
* Thu Sep 03 2020 Andrew Price <anprice@redhat.com> - 3.3.0-2
|
||||
- Version bump to enable gating tests
|
||||
|
||||
* Tue Sep 01 2020 Andrew Price <anprice@redhat.com> - 3.3.0-1
|
||||
- New upstream version
|
||||
- Add dependency on bzip2
|
||||
- Drop all patches
|
||||
- gfs2_withdraw_helper is now in /usr/libexec/
|
||||
|
||||
* Wed Jul 29 2020 Andrew Price <anprice@redhat.com> - 3.2.0-10
|
||||
- tests: Don't use fail_unless in unit tests
|
||||
Fixes build failures due to a regression in check-devel
|
||||
|
||||
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Tue Jul 21 2020 Andrew Price <anprice@redhat.com> - 3.2.0-8
|
||||
- Use make_build and make_install macros
|
||||
https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
|
||||
- Remove -C gfs2 - it's a remnant from the cluster.git days
|
||||
- Remove unnecessary header notice from spec file
|
||||
|
||||
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Mon Feb 04 2019 Andrew Price <anprice@redhat.com> - 3.2.0-5
|
||||
- Fix libuuid linking
|
||||
|
||||
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Thu Jun 21 2018 Andrew Price <anprice@redhat.com> - 3.2.0-2
|
||||
- Recommend the gfs2 and dlm kmods instead of requiring them
|
||||
Resolves: bz#1593411
|
||||
|
||||
* Thu May 24 2018 Andrew Price <anprice@redhat.com> - 3.2.0-1
|
||||
- New upstream release
|
||||
|
||||
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.10-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
* Fri Oct 13 2017 Andrew Price <anprice@redhat.com> - 3.1.10-4
|
||||
- Update URL in spec file
|
||||
|
||||
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.10-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||
|
||||
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.10-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Tue Mar 28 2017 Andrew Price <anprice@redhat.com> - 3.1.10-1
|
||||
- New upstream release
|
||||
- Make dependency on libuuid explicit
|
||||
|
||||
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.9-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
* Tue Jun 07 2016 Andrew Price <anprice@redhat.com> - 3.1.9-1
|
||||
- New upstream release
|
||||
- Drop all patches
|
||||
- Add glocktop to the package
|
||||
|
||||
* Mon Feb 15 2016 Andrew Price <anprice@redhat.com> - 3.1.8-7
|
||||
- libgfs2: Add support for dirent.de_rahead
|
||||
- gfs2_edit: Include dirent.de_rahead in directory listings
|
||||
- gfs2-utils: Add a check for the de_rahead field
|
||||
- libgfs2: Support the new dirent de_cookie field
|
||||
Resolves: bz#1307532
|
||||
|
||||
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.8-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
* Thu Aug 20 2015 Andrew Price <anprice@redhat.com> - 3.1.8-5
|
||||
- Add patches to install the withdraw helper script properly:
|
||||
scripts_rename_gfs2_wd_udev_sh_to_gfs2_withdraw_helper.patch
|
||||
scripts_install_the_withdraw_helper_script.patch
|
||||
scripts_install_the_withdraw_udev_rules_script.patch
|
||||
- Remove the obsolete udev script installation bits
|
||||
|
||||
* Tue Aug 11 2015 Andrew Price <anprice@redhat.com> - 3.1.8-4
|
||||
- gfs2-utils: Fix hang on withdraw
|
||||
- Install udev withdraw handler scripts
|
||||
|
||||
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.8-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||
|
||||
* Sat Apr 18 2015 Andrew Price <anprice@redhat.com> - 3.1.8-2
|
||||
- fsck.gfs2: replace recent i_goal fixes with simple logic
|
||||
|
||||
* Tue Apr 07 2015 Andrew Price <anprice@redhat.com> - 3.1.8-1
|
||||
- New upstream release
|
||||
- Remove perl dependency
|
||||
- Update spec per the latest packaging guidelines
|
||||
|
||||
* Mon Sep 08 2014 Andrew Price <anprice@redhat.com> - 3.1.7-1
|
||||
- New upstream release
|
||||
- Drop all patches
|
||||
- gfs2-utils tests: Build unit tests with consistent cpp flags
|
||||
|
||||
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.6-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
||||
|
||||
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.6-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||
|
||||
* Thu May 15 2014 Josh Boyer <jwboyer@fedoraproject.org> - 3.1.6-7
|
||||
- Switch to using Requires on individual kernel modules
|
||||
Resolves: bz#1056191
|
||||
|
||||
* Fri Mar 21 2014 Andrew Price <anprice@redhat.com> - 3.1.6-6
|
||||
- gfs2_grow: Don't try to open an empty string
|
||||
- libgfs2: Add lgfs2 open mnt functions
|
||||
- Switch is pathname mounted callers to lgfs2 open mnt
|
||||
- libgfs2 Remove is pathname mounted
|
||||
Resolves: bz#1079286
|
||||
|
||||
* Fri Oct 04 2013 Andrew Price <anprice@redhat.com> - 3.1.6-5
|
||||
- Suppress req on kernel-modules-extra for ARM arches.
|
||||
|
||||
* Tue Sep 17 2013 Andrew Price <anprice@redhat.com> - 3.1.6-4
|
||||
- Don't use README.* for docs (it can pick up some patch files)
|
||||
|
||||
* Wed Aug 21 2013 Andrew Price <anprice@redhat.com> - 3.1.6-3
|
||||
- Install utils into /usr/sbin instead of /sbin
|
||||
Resolves: rhbz#996539
|
||||
|
||||
* Mon Jul 29 2013 Andrew Price <anprice@redhat.com> - 3.1.6-2
|
||||
- Don't install gfs2_lockcapture and gfs2_trace
|
||||
Resolves: rhbz#987019
|
||||
- Run test suite after build (requires check-devel build req)
|
||||
- Install both of the READMEs into doc/
|
||||
|
||||
* Wed Jul 24 2013 Andrew Price <anprice@redhat.com> - 3.1.6-1
|
||||
- New upstream release
|
||||
- Drop 'file' requirement - mkfs.gfs2 now uses libblkid instead
|
||||
- Drop 'ncurses' requirement - dependency is added automatically
|
||||
- Drop requires chkconfig and initscripts - no longer installs daemons
|
||||
- Drop fix_build_on_rawhide.patch - upstream
|
||||
- Add build req on libblkid-devel
|
||||
|
||||
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.5-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
1
sources
Normal file
1
sources
Normal file
@ -0,0 +1 @@
|
||||
SHA512 (gfs2-utils-3.3.0.tar.gz) = b5ed1fb91eaf88fd163b682a73a3f54efd000e513206aba90e6286e68d8b13c325373da1bde94c8f48c0d235b60f22f6269f9103c508aebf13b15d9470b745d0
|
8
tests/atlocal
Normal file
8
tests/atlocal
Normal file
@ -0,0 +1,8 @@
|
||||
GFS_TGT="../../testvol"
|
||||
GFS_TGT_SZ=10
|
||||
GFS_MKFS="mkfs.gfs2 -O -D"
|
||||
|
||||
gfs_max_blocks()
|
||||
{
|
||||
printf $((GFS_TGT_SZ*1073741824/$1))
|
||||
}
|
20
tests/rgrifieldscheck.sh
Executable file
20
tests/rgrifieldscheck.sh
Executable file
@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
dev=$1
|
||||
i=0
|
||||
gfs2_edit -p rg 0 $dev | grep rg_data0 > /dev/null 2>&1
|
||||
# New fields not present in /usr/include/linux/gfs2_ondisk.h
|
||||
test $? = 0 || exit 0
|
||||
gfs2_edit -p rindex $dev | while read field rival unused
|
||||
do
|
||||
test $field = ri_data0 -o $field = ri_data -o $field = ri_bitbytes || continue
|
||||
rgfield=$(echo $field | sed 's/ri/rg/')
|
||||
rgval=$(gfs2_edit -p rg $i $dev | grep " $rgfield " | awk '{print $2}')
|
||||
|
||||
if test "$rival" != "$rgval"
|
||||
then
|
||||
echo "Bad $rgfield in rg $i: $rgval (expected: $rival)" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
test $field = ri_bitbytes && i=$((i+1))
|
||||
done
|
19
tests/rgskipcheck.sh
Executable file
19
tests/rgskipcheck.sh
Executable file
@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
|
||||
dev=$1
|
||||
rgcount=$(gfs2_edit -p rgcount $dev | cut -f1 -d' ')
|
||||
prevaddr=$(gfs2_edit -p rg 0 $dev | grep ^RG | awk '{print $5}')
|
||||
prevskip=0
|
||||
for i in `seq 0 $(($rgcount - 1))`; do
|
||||
addr=$(gfs2_edit -p rg $i $dev | grep ^RG | awk '{print $5}')
|
||||
expected=$(($addr - $prevaddr))
|
||||
|
||||
if test $prevskip != $expected; then
|
||||
echo "Bad rg_skip in rg $(($i - 1)): $prevskip (expected: $expected)" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
prevskip=$(gfs2_edit -p rg $i $dev | grep rg_skip | awk '{print $2}')
|
||||
prevaddr=$addr
|
||||
done
|
||||
|
11
tests/tests.yml
Normal file
11
tests/tests.yml
Normal file
@ -0,0 +1,11 @@
|
||||
- hosts: localhost
|
||||
roles:
|
||||
- role: standard-test-basic
|
||||
tags:
|
||||
- classic
|
||||
environment:
|
||||
PATH: ".:{{ ansible_env.PATH }}"
|
||||
tests:
|
||||
- upstream_test_suite:
|
||||
dir: .
|
||||
run: ./testsuite
|
5464
tests/testsuite
Executable file
5464
tests/testsuite
Executable file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user