ocfs2-tools/ocfs2-tools.spec

339 lines
9.2 KiB
RPMSpec
Raw Normal View History

#
# spec file for package ocfs2-tools
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
#Compat macro for new _fillupdir macro introduced in Nov 2017
%if ! %{defined _fillupdir}
%define _fillupdir /var/adm/fillup-templates
%endif
#if run "rpmbuild --with=ocfs2console"
#_with_ocfs2console will be automatically defined
%if %{defined _with_ocfs2console}
%define _ocfs2console 1
%else
%if 0%{?suse_version} >= 1500
%define _ocfs2console 0
%else
%define _ocfs2console 1
%endif
%endif
Name: ocfs2-tools
Version: 1.8.5
Release: 0
Summary: Oracle Cluster File System 2 Core Tools
License: GPL-2.0-only
Group: System/Filesystems
Url: https://ocfs2.wiki.kernel.org/
Source: ocfs2-tools-%{version}.tar.gz
Accepting request 544564 from home:ganghe:branches:network:ha-clustering:Factory - Remove o2cb resource agent which is obsolete (bsc#1069099) - Fix dependencies problem between ocfs2-tools and ocfs2-kmp (bsc#1060601) - Add fsck.ocfs2-fix-compile-error-when-glibc-upgrade.patch (bsc#1057008) - Change license to GPL-2.0 from GPL-2.0+ - Update ocfs2-tools.tar.gz to upstream v1.8.5 (fate#322956) - Unify the source files between openSUSE:Factory and SLE12SP3 + 0004-mkfs.ocfs2-Abort-if-cluster-information-is-not-detec.patch - bnc883550-Fix-mkfs.ocfs2-man-page-for-default-slots.patch - Drop patches (merged upstream): - 0001-libo2dlm-Close-file-description-after-use.patch - 0002-debugfs.ocfs2-Fix-a-bug-in-process_open_args.patch - 0003-o2cb-add-build-scripts-for-rhel7.patch - 0004-add-systemd-support.patch - 0005-do-not-write-sysconfig-if-status-not-changed.patch - 0006-o2cb-mount-debugfs-when-load-config.patch - 0009-o2cb-fix-systemd-o2cb.service-failure.patch - Add 0009-o2cb-fix-systemd-o2cb.service-failure.patch to fix bsc#963959 - Add bnc#96864-ocfs2console-fix-starting-failure.patch - Make pcmk as default stack for ocfs2, and this patch may go along with us forever bnc#959660 +auto-setup-pcmk-stack-as-default-if-no-stack-is-setup.patch - Add systemd support for o2cb and ocfs2 service + 0003-o2cb-add-build-scripts-for-rhel7.patch + 0004-add-systemd-support.patch + 0005-do-not-write-sysconfig-if-status-not-changed.patch + 0006-o2cb-mount-debugfs-when-load-config.patch + 0007-vendor-Add-vendor-files-for-sles12.patch + 0008-ocfs2-tools-add-systemd-support-fix.patch - libo2dlm: Close file description after use + 0001-libo2dlm-Close-file-description-after-use.patch - debugfs.ocfs2: Fix a bug in process_open_args() + 0002-debugfs.ocfs2-Fix-a-bug-in-process_open_args.patch - Update ocfs2-tools.tar.bz2 to upstream v1.8.4 - Use new ocfs2-tools git URL https://github.com/markfasheh/ocfs2-tools.git - Drop patches (merged upstream): - 0001-Use-cmap-for-getting-cluster-name.patch - 0002-Remove-controld-dependency-in-group_join-leave.patch - 0003-Auto-setup-cluster_stack-based-on-what-is-on-disk.patch - 0004-mkfs.ocfs2-Abort-if-cluster-information-is-not-detec.patch - 0005-mkfs-Setup-cluster_stack-if-not-setup-based-on-what-.patch - 0006-Auto-setup-pcmk-stack-as-default-if-no-stack-is-setu.patch - Update ocfs2-tools.tar.bz2 to upstream v1.8.3 - Drop patches (merged upstream): - fix-indexed-dirs.patch - 0001-fswreck-Create-a-loop-in-group-chains.patch - 0002-Break-a-chain-loop-in-group-desc.patch - restore-g_list_append.patch - ocfs2console-libraries-include-aio.patch - libocfs2-needs-libaio.patch - libocfs2-Change-asserts-to-error.patch - Drop patches for ocfs2_controld - force-debug.patch - extra-debug.patch - bug-805764-ocfs2-controld.patch - bnc804707-reduce-RR-priority.patch - use-symlink-in-udev-rules.patch - Fix mkfs.ocfs2 man page to meniton number of slots are dynamically determined based on filesystem size. - Corrected udev directory from /etc/udev/rules.d - Improve error message if DLM is not available (bnc#867329) + 0007-Improve-error-message-if-DLM-service-is-unavailable.patch - (bnc#867330) Fix group leave in patch: 0002-Remove-controld-dependency-in-group_join-leave.patch - Recommend ocfs2-kmp - Autosetup pcmk if no cluster stack found (bnc#862758) + 0006-Auto-setup-pcmk-stack-as-default-if-no-stack-is-setu.patch - Err if cannot write to cluster_stack (cluster mismatch) + 0003-Auto-setup-cluster_stack-based-on-what-is-on-disk.patch - Update summary and description for the -o2cb package (bnc#862761) - Use libcmap.so.4 for dlopen in 0001-Use-cmap-for-getting-cluster-name.patch to remove dependency on devel package (bnc#860982) - Patch re-factoring, so that we don't have to compile with ldlm + 0001-Use-cmap-for-getting-cluster-name.patch + 0002-Remove-controld-dependency-in-group_join-leave.patch + 0003-Auto-setup-cluster_stack-based-on-what-is-on-disk.patch + 0004-mkfs.ocfs2-Abort-if-cluster-information-is-not-detec.patch + 0005-mkfs-Setup-cluster_stack-if-not-setup-based-on-what-.patch - 0001-libo2cb-Remove-controld-actions-from-group-join-leav.patch - 0002-libo2cb-Remove-rest-of-controld-functions.patch - 0003-Get-cluster-name-from-corosync-cmap.patch - 0004-Remove-controld-structures-from-debugfs.ocfs2.patch - 0005-Check-for-DLM-kernel-version-in-user_begin_group_joi.patch - 0006-Add-cmap-and-dlm-libraries-in-the-tools.patch - 0008-mount.ocfs2-Read-stack-from-device-and-setup-stack-i.patch - 0009-mkfs.ocfs2-Abort-if-cluster-information-is-not-detec.patch - 0010-mkfs-Setup-cluster_stack-if-not-setup-based-on-what-.patch - 0011-Use-dlm_lt-instead-of-dlm-for-DLM-libraries.patch - mkfs.ocfs2: Setup cluster_stack if not setup + 0010-mkfs-Setup-cluster_stack-if-not-setup-based-on-what-.patch - Remove patch numbers for easier future maintainability. - Move static libraries to devel-static subpackage. - mkfs.ocfs2/tunefs.ocfs2 may hang there because of dlm_unlock + 0011-Use-dlm_lt-instead-of-dlm-for-DLM-libraries.patch - mkfs.ocfs2 aborts if cluster information is not found/supplied + 0009-mkfs.ocfs2-Abort-if-cluster-information-is-not-detec.patch - Make mount.ocfs2 load ocfs2 kmp and setup cluster_stack if not found + 0008-mount.ocfs2-Read-stack-from-device-and-setup-stack-i.patch - Mark o2cb.ocf as obsolete. Anyone using o2cb.ocf will get an info message stating so. - The nocontrold effort (added nocontrold patches and disabled corosync-2.3 controld compatibility patches): + 0001-libo2cb-Remove-controld-actions-from-group-join-leav.patch + 0002-libo2cb-Remove-rest-of-controld-functions.patch + 0003-Get-cluster-name-from-corosync-cmap.patch + 0004-Remove-controld-structures-from-debugfs.ocfs2.patch + 0005-Check-for-DLM-kernel-version-in-user_begin_group_joi.patch + 0006-Add-cmap-and-dlm-libraries-in-the-tools.patch - 0001-Remove-pacemaker-ais-stuff.patch - 0002-Add-corosync-cfg-to-get-configuration-information.patch - 0003-Remove-daemon-protocol-versions-and-consolidate-fs-v.patch - 0005-Add-cluster_name-and-stack-name.patch - libocfs2-Change-asserts-to-error.patch: Return control to fsck.ocfs2 instead of erring - Add libraries back in devel package. This is required for ocfs2-test - libocfs2-needs-libaio.patch: Add -laio to ocfs2.pc - Fix FS protocol versions: + 0003-Remove-daemon-protocol-versions-and-consolidate-fs-v.patch - 0003-Hard-code-protocol-versions.patch - Get ocfs2_controld up to speed with corosync 2.3.x + 0001-Remove-pacemaker-ais-stuff.patch + 0002-Add-corosync-cfg-to-get-configuration-information.patch + 0003-Hard-code-protocol-versions.patch + 0005-Add-cluster_name-and-stack-name.patch - ocfs2_controld-pacemaker.diff - ocfs2_controld: ocfs2_controld-pacemaker.diff * Replace use of send_ais_text() with send_cluster_text() * Replace use of ais_dispatch() with plugin_dispatch() - ocfs2console-libraries-include-aio.patch: Include aio while compiling ocfs2console (bnc#827504) - Replace NAME= with SYMLINK+= in udev rules (bnc#779718) + use-symlink-in-udev-rules.patch - reduce ocfs2_controld priority to RR(1). (bnc#804707) + bnc804707-reduce-RR-priority.patch - Fix the race between udev making misc device node and ocfs2 opening that device (bnc#805764) + bug-805764-ocfs2-controld.patch - ocfs2_controld: ocfs2_controld-pacemaker.diff -- changes to be compatible with pacemaker >= 1.1.8 - Update config.guess/sub in the coreutils copy - g_list_append.patch: Fix o2cb node listing - Add _service file to automatically pull from git. It can be invoked locally by "osc service disabledrun" - Use spec-cleaner - No need to call ldconfig without shared objects - Drop unneeded %clean section - No need to export CFLAGS, %configure does that. - Also provide ocfs2-support to have clean upgrade path - Drop patches (merged upstream): + fix-pacemaker-libs.patch + support-for-xvd-devices.patch - Reverted tarball to v1.8.2 - Added support-for-xvd-devices.patch: Support for xvd devices - Fixed a couple of rpmlint errors - libdlm requirement - devel package grouping changed - restore-g_list_append.patch is not required for old tarball - Update ocfs2-tools.tar.bz2 to latest upstream for upstream fixes - restore-g_list_append.patch: Fix o2cb node listing - add explicit buildrequire to libbz2-devel - Fix infinite loop while checking for group desc chains (bnc#781122) - Updated to 1.8.2 - o2cluster: change cluster stack stamped on ocfs2 filesystem - added man pages ocfs2, ocfs2.cluster.conf, o2hbmonitor - fsck: faster fsck times because of aio; progress - fix-indexed-dirs.patch: Fix corrupt indexed directories through fsck - Include sys/resource.h for getrlimit etc. - Add ocfs2-tools-kernel33.patch: Fix build with kernel 3.3, which dropped umode_t. - add autoconf as buildrequire to avoid implicit dependency - remove call to suse_update_config (very old work around) - Fix ocfs2_controld build (/usr/include/pacemaker/crm/common/stack.h moved to /usr/include/pacemaker/crm/cluster/stack.h) - Don't use /var/lock/subsys in /etc/init.d/ocfs2 (bnc#714644) - Add -lcrmcommon to fix ocfs2_controld build. - update ocfs2-tools to 1.8.0 - mkfs.ocfs2 enables file system features indexed-dirs, discontig-bg, refcount & extended-slotmap by default. - ocfs2console is no longer built by default. - ocfs2-tools: fsck.ocfs2 and *ctl built dynamically by default - debugfs: Add -T to logdump - mounted.ocfs2: Show cluster and global heartbeat - mount.ocfs2: Validate mount path before mount - mount.ocfs2: Add support for o2cb global heartbeat - tools: Detect differing cluster name and heartbeat modes - mkfs.ocfs2: Add -U option to allow custom UUIDs - mkfs.ocfs2: Add --global-heartbeat option - libo2cb: Validate cluster name and cluster flags in classic_begin_group_join() - o2cb: Add man page - o2cb: Add ops start-heartbeat and stop-heartbeat - o2cb: Add ops register-cluster and unregister-cluster - o2cb: Add ops list-clusters, list-cluster, list-nodes and list-heartbeats - o2cb: Add ops add-heartbeat, remove-heartbeat and heartbeat-mode - o2cb: Add ops add-node and remove-node - o2cb: Add ops add-cluster and remove-cluster - o2cb: Add a new cluster configuration tool - libo2cb: Adds support for global heartbeat - libo2cb: Extend libo2cb api to learn ip address/port/local of a registered node - o2cb_scandisk: Scan heartbeat devices - debugfs.ocfs2: Journal logdump prints full inode and extent blocks - debugfs.ocfs2: Improve block detection - ocfs2-tools: Set hash seed when convert ocfs2 to support indexed-dirs - ocfs2-tools: o2hbmonitor moved to /usr/sbin - add '-q' in %setup of ocfs2-tools.spec, to make build log shorter. (patch written by aj@suse.de) - remove ocfs2-o2cb_ctl-static-glibc.diff, since it is unnecessary to link glib2 statically in ocfs2-o2cb_ctl now. - update ocfs2-tools to 1.6.3 - remove gcc45-ftbfs-deb-565100.patch, the fix is in upstream now. - Make ocfs2-kmp a Recommend instead of a Requires. This allows easier building of packages which in turn depend on ocfs2-tools. - remove ocfs2-kmp dependency, since opensuse kernel does not privide such kmp. - change version string from 1.4.3 to 1.6.0 in ocfs2-tools.spec - remove bug-585080-handle-symbolic-link.patch since it's upstream now. - remove version-1.4.3.patch, update to ocfs2-tools 1.6.0 - remove dx_dirs patch set, since they are upstream now. 0001-dx_dirs-Add-library-support-for-directory-indexing.patch 0002-dx_dirs-debugfs.ocfs2-support.patch 0003-dx_dirs-mkfs.ocfs2-support.patch 0004-dx_dirs-Add-tunefs.ocfs2-feature-for-indexed-directo.patch 0005-dx_dirs-Update-for-dr_num_entries.patch 0006-dx_dirs-add-missing-ocfs2_filesys-fs-parameter.patch 0007-dx_dirs-more-library-support-for-directory-indexing.patch 0008-dx_dirs-fsck.ocfs2-support.patch 0009-dx_dirs-add-blocknr-in-callback-of-ocfs2_dir_iterate.patch 0010-dx_dirs-add-disable-indexed-dirs-support-in-tunefs.o.patch 0011-dx_dirs-build-indexed-trees-when-enabling-indexed-di.patch 0012-dx_dirs-fix-return-value-of-walk_dirblock-when-enabl.patch 0013-dx_dirs-try-to-install-dir-trailers-when-enable-inde.patch 0014-dx_dirs-add-an-initial-man-page-entry-for-indexed-di.patch 0015-fsck.ocfs2-prompt-before-truncating-an-invalid-dir-i.patch 0016-tunefs.ocfs2-move-o2ne_add_tailers-into-libocfs2ne.c.patch 0017-dx_dirs-add-check-for-invalid-slot-in-ocfs2_new_dx_r.patch 0018-mkfs.ocfs2-create-root-and-orphan-directories-as-ind.patch 0019-libocfs2-fix-flag-check-in-ocfs2_init_dir.patch 0020-libocfs2-fix-ocfs2_init_dir-to-retain-indexed-flag.patch 0021-fsck.ocfs2-verify-dirent-dx-entry-linkages.patch 0022-dx_dirs-stop-iterate-dir-entries-for-I-O-error.patch 0023-dx_dirs-check-callback-iter-dx_func-return-value-in-.patch 0024-dx_dirs-remove-unncessary-return-value-assignment.patch 0025-dx_dirs-unifiy-feature-string-of-indexed-dirs.patch 0026-dx_dirs-Improve-information-displayed-by-dump_dx_roo.patch 0027-dx_dirs-stop-iteration-of-dir-trailer-initialization.patch 0028-dx_dirs-stop-dx-insert-iteration-for-callback-error.patch 0029-dx_dirs-set-OCFS2_INDEXED_DIR_FL-after-indexed-tree-.patch 0030-dx_dirs-fix-ocfs2_swap_dx_entry_list-for-big-endian.patch 0031-dx_dirs-enable-metaecc-and-indexed-dirs-support-as-d.patch - Fix mount.ocfs2.c compilation issue on gcc 4.5 (deb#565100) - Fix configure checks for cpg and SaCkpt libraries - ocfs2_controld.pcmk: compilation issue fixed. - fixes for indexed-dirs - 0016-tunefs.ocfs2-move-o2ne_add_tailers-into-libocfs2ne.c.patch - 0017-dx_dirs-add-check-for-invalid-slot-in-ocfs2_new_dx_r.patch - 0018-mkfs.ocfs2-create-root-and-orphan-directories-as-ind.patch - 0019-libocfs2-fix-flag-check-in-ocfs2_init_dir.patch - 0020-libocfs2-fix-ocfs2_init_dir-to-retain-indexed-flag.patch - 0021-fsck.ocfs2-verify-dirent-dx-entry-linkages.patch - 0022-dx_dirs-stop-iterate-dir-entries-for-I-O-error.patch - 0023-dx_dirs-check-callback-iter-dx_func-return-value-in-.patch - 0024-dx_dirs-remove-unncessary-return-value-assignment.patch - 0025-dx_dirs-unifiy-feature-string-of-indexed-dirs.patch - 0026-dx_dirs-Improve-information-displayed-by-dump_dx_roo.patch - 0027-dx_dirs-stop-iteration-of-dir-trailer-initialization.patch - 0028-dx_dirs-stop-dx-insert-iteration-for-callback-error.patch - 0029-dx_dirs-set-OCFS2_INDEXED_DIR_FL-after-indexed-tree-.patch - 0030-dx_dirs-fix-ocfs2_swap_dx_entry_list-for-big-endian.patch - update indexed-dirs patches to v11 patches - a bug fix in fsck.ocfs2/pass2.c - extra check whether the directory trailer overwrites valid directory items. - Add reflink user-space utility to expose the copy-on-write links in OCFS2 for all platforms (bnc#594979). - 0015-dx_dirs-enable-metaecc-and-indexed-dirs-support-as-d.patch: enable metaecc and indexed-dirs support as default features. - ocfs2-tools-static-glib.diff: rename to ocfs2-o2cb_ctl-static-glibc.diff, don't explicitly link pthread anymore. - update ocfs2-tools.tar.bz2 to upstream (0a1c1970): - mkfs.ocfs2: enable xattr support as a default feature - Fsck.ocfs2: Correctly check i_size for directory in a sparse filesystem. - fsck.ocfs2: Freshen up some fsck messages - mkfs.ocfs2: Add dry-run option - mkfs.ocfs2: Allocate groups to the extent allocator - libocfs2: Add ocfs2_grow_chain_allocator() - libocfs2: ocfs2_chain_add_group() adds new groups to the next logical chain - mounted.ocfs2: Add the stack/local to the output - mounted.ocfs2: Display uuid in all caps - mkfs.ocfs2: Tweak the feature compatibility list in manpage - mkfs.ocfs2: Print fs features during make - 0014-dx_dirs-man-page.diff: add an initial man page entry for indexed-dirs feature. - bug-585080-handle-symbolic-link.patch: handle symbolic link device file for tunefs.ocfs2 online resize (bnc#585080) - version-1.4.3.patch: keep package version as 1.4.3 for SLES11 HAE SP1. - 0013-dx_dirs-try-to-install-dir-trailers-when-enable-inde.patch: try to install dir trailers when enable indexed-dirs feature while metaecc features is not enabled. The fix can avoid ocfs2_dx_dir_build() in ocfs2-tools to overwrite existed dir entries lying in trailer area by moving them into other dir blocks. No BNC associated. - update indexed-dirs patches for - remove the metaecc dependence code for indexed dirs. (bnc#584578) - indexed dirs does not depend on metaecc, remove all incorrect dependence code in mkfs.ocfs2 and tunefs.ocfs2 (bnc#585418) - code clean up in mkfs.ocfs2 - back port ocfs2-tools version 1.6 to SP1 ocfs2-tools package. - add 0012-dx_dirs-fix-for-tunefs-metaecc-and-indexed-dirs.patch (bnc#584578) - update indexed dirs patches for fate#300315 - delete 64bytes_lvb_len_in_libo2dlm.diff (bnc#573460) - update indexed dirs patches. - compiling fix - add disable indexed-dirs support in tunefs.ocfs2 (fate#300315) - more fixes for previous indexed-dirs patches - add the first version of indexed dir support (fate#300315) - ocfs2-tools requires openais for the user-space cluster stack. - Fix ocfs2-tools build (bnc#561625). - Add libcorosync-devel build dependency. - 64bytes_lvb_len_in_libo2dlm.diff: use 64 bytes lvb len ((bnc#515645)) - change version number to 1.4.3 - update ocfs2-tools-1.4.3 to SLES11SP1 - bug-543119-o2dlm.patch: load libdlm_lt.so.3 explicitly in o2dlm.c (bnc#543119) - drop bug-543119_0001-Option-to-skip-cluster-checking-in-tunefs.ocfs2.patch since bnc#543119 is a dlopen() issue, and this patch is not accepted by upstream. - Implement a -F/--force option to bypass the cluster stack in tunefs.ocfs2 (bnc#543119). - fix kill_deamon() from o2cb.ocf, now when the deamon to be killed is not running, kill_deamon() will return SUCESS. Thanks to Dejan. - add quota patches from Jan Kara, full support for enabling, disabling and checking quotas. - Update code to upstream 1.4.2, to support xattr and acl in sles11 (bnc#499278), thanks to Goldwyn Rodrigues. - bug-478794-ocfs2_hb_ctl.diff: Fix crash on parsing corrupt file systems (bnc#478794) - debug-ocfs2_hb_ctl.patch: Better error logging. - Fix the logging of calls to crm_terminate_member_no_mainloop() - ocfs2_controld.pcmk crashed immediately on x86-64 (bnc#486104) - ocfs2_controld-retry-470741.diff: removed. - bug-470741_000{1,2,3}-ocfs2_controld.patch: retry most CKPT operations forever, and recover from partially installed checkpoints (bnc#470741). - Use a Pacemaker library function for kicking nodes form the cluster - Add some extra logging for bnc#484028 - Allow debug message to been seen in syslog for bnc#484028 - Adjust packaging split. - tunefs.ocfs2.8.in_more_options.diff: add manual info for -y, -n and --update-cluster-statck options (bnc#478259) - ocfs2_controld-retry-470741.diff: Increase retry count. - Split off legacy O2CB init scripts and binaries into ocfs2-tools-o2cb. - update o2cb.ocf to fix return value format (bnc#474353) - ocfs2console: Whoops, don't reset all warnings, just pop the DISPLAY one. Thanks to Hu Ziming from IBM and Joel Becker from Oracle. - ocfs2console: remove unsupported option when calling tunefs.ocfs2 (bnc#472353) - Re-implement kill_stack_node() to use node attributes instead of stonithd - Reuse more functions from Pacemaker shared libraries - Have the o2cb OCF agent produce extra output if the daemon doesn't come up - Replace Hu Ziming's patch to Jeol Becker's patch for bnc#448523. - fix ocfs2console crashing when DISOPLAY is not correclty set(bnc#448523), thanks to Hu Ziming from IBM. - add ocfs2-kmp (ocfs2 KMP package) into installation dependency(bnc#459437) - ensure o2cb OCF resource agent is executable - add libdlm to ocfs2-tools' dependency (bnc#448751) - Add a quota fixup patch to match up system file names in tools with the kernel. - Add an OCF-style script to allow Pacemaker to reliably manage the ocfs2 modules. The existing LSB-style one is inadequate. - Refresh package to upstream a93731c164d024e0016520a1f4cd8f9007d7c05e - Remove part of the static glib patch as tunefs.ocfs2 no longer uses glib - Combine patches yet to be upstreamed to ease maintenance - Add quota support patches - New patch for ocfs2_controld - make sure stad(err|out|in) are mapped to /dev/null and not left unassigned (which causes issues when logging) - ocfs2console: Allow ocfs2console to enumerate device mapper devices (bnc#414756) - Update for new pacemaker dependancies - Use correct path for ocfs2_controld.* - Package required udev rules - Refresh from upstream 1.4.1 (0ead2f1b45568ca441cb3ed679efbbd7eeb68d98) - Add support for OpenAIS/Pacemaker (userspace cluster stack) integration based on upstream OCFS2 interface - Remove the custom Heartbeat integration - Bugfixes - Made init scripts LSB compliant. - Re-added init script support for userspace heartbeat. - Statically link glib-2.0 with tunefs and o2cb_ctl. - Update to 1.3.9 - Update to 1.2.7 - Add shrinking journal size support - Fix crash in slotmap - Don't append _netdev for local mounts - Add query support for tunefs - Add remove slot features to tunefs - Update to 1.2.6 - Support for file attributes field - Fix for automatically selecting next node number - Multiple fsck fixes - Offline resize - Documentation updates - Don't use kernel headers. - define offsetof locally if it does not come from kernel header - Upgrade to version 1.2.2 to match in-kernel version. - Split-off devel subpackage. - use RPM_OPT_FLAGS - Cleanup BuildRequires. - buildrequire python-gtk-devel instead of python-gtk - Fix compile with new glibc - Update to 1.2.1 to match in-kernel version. - Create /sbin/rcocfs2, rco2cb symlinks (#167261). - Install "ocfs2" init script and enable it (#160724). - Updated to version 1.2.0, per Oracle - Enabled o2cb by default on package install to allow it to shut down when manually started. Otherwise, the system will hang during shutdown. - converted neededforbuild to BuildRequires - Should-Start: iscsi added (from SLES9) (#114733) - don't build as root - Update to version 1.1.3 - SVN 1105 - Fix python defines. - Fix build with different python versions. - Fix package description. - Initial packaging of ocfs2-tools, from SLES9. - Update to version 1.1.1 - SVN 1063 OBS-URL: https://build.opensuse.org/request/show/544564 OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/ocfs2-tools?expand=0&rev=107
2017-11-23 11:02:10 +01:00
Source1: reflink.tar.bz2
Patch001: auto-setup-pcmk-stack-as-default-if-no-stack-is-setup.patch
Patch103: debug-ocfs2_hb_ctl.patch
Patch105: bug-470741-debug_start_failures.patch
Patch106: ocfs2-devel.diff
Patch107: reflink-no-syscall.patch
Patch201: bug-543119-o2dlm.patch
Patch202: fix-configure-check-libs.patch
Patch204: dont-use-var-lock-subsys.patch
Patch205: ocfs2-tools-kernel33.patch
Patch206: ocfs2-tools-resource.patch
Patch225: 0004-mkfs.ocfs2-Abort-if-cluster-information-is-not-detec.patch
Patch228: 0007-Improve-error-message-if-DLM-service-is-unavailable.patch
Patch405: 0007-vendor-Add-vendor-files-for-sles12.patch
Patch406: 0008-ocfs2-tools-add-systemd-support-fix.patch
Patch501: bnc#96864-ocfs2console-fix-starting-failure.patch
Accepting request 520604 from home:ganghe:branches:network:ha-clustering:Factory - Add fsck.ocfs2-fix-compile-error-when-glibc-upgrade.patch (bsc#1057008) - Update ocfs2-tools.tar.gz to upstream v1.8.5 (fate#322956) - Unify the source files between openSUSE:Factory and SLE12SP3 + 0004-mkfs.ocfs2-Abort-if-cluster-information-is-not-detec.patch - bnc883550-Fix-mkfs.ocfs2-man-page-for-default-slots.patch - Drop patches (merged upstream): - 0001-libo2dlm-Close-file-description-after-use.patch - 0002-debugfs.ocfs2-Fix-a-bug-in-process_open_args.patch - 0003-o2cb-add-build-scripts-for-rhel7.patch - 0004-add-systemd-support.patch - 0005-do-not-write-sysconfig-if-status-not-changed.patch - 0006-o2cb-mount-debugfs-when-load-config.patch - 0009-o2cb-fix-systemd-o2cb.service-failure.patch - Add 0009-o2cb-fix-systemd-o2cb.service-failure.patch to fix bsc#963959 - Add bnc#96864-ocfs2console-fix-starting-failure.patch - Make pcmk as default stack for ocfs2, and this patch may go along with us forever bnc#959660 +auto-setup-pcmk-stack-as-default-if-no-stack-is-setup.patch - Add systemd support for o2cb and ocfs2 service + 0003-o2cb-add-build-scripts-for-rhel7.patch + 0004-add-systemd-support.patch + 0005-do-not-write-sysconfig-if-status-not-changed.patch + 0006-o2cb-mount-debugfs-when-load-config.patch + 0007-vendor-Add-vendor-files-for-sles12.patch + 0008-ocfs2-tools-add-systemd-support-fix.patch - libo2dlm: Close file description after use + 0001-libo2dlm-Close-file-description-after-use.patch - debugfs.ocfs2: Fix a bug in process_open_args() + 0002-debugfs.ocfs2-Fix-a-bug-in-process_open_args.patch - Update ocfs2-tools.tar.bz2 to upstream v1.8.4 - Use new ocfs2-tools git URL https://github.com/markfasheh/ocfs2-tools.git - Drop patches (merged upstream): - 0001-Use-cmap-for-getting-cluster-name.patch - 0002-Remove-controld-dependency-in-group_join-leave.patch - 0003-Auto-setup-cluster_stack-based-on-what-is-on-disk.patch - 0004-mkfs.ocfs2-Abort-if-cluster-information-is-not-detec.patch - 0005-mkfs-Setup-cluster_stack-if-not-setup-based-on-what-.patch - 0006-Auto-setup-pcmk-stack-as-default-if-no-stack-is-setu.patch - Update ocfs2-tools.tar.bz2 to upstream v1.8.3 - Drop patches (merged upstream): - fix-indexed-dirs.patch - 0001-fswreck-Create-a-loop-in-group-chains.patch - 0002-Break-a-chain-loop-in-group-desc.patch - restore-g_list_append.patch - ocfs2console-libraries-include-aio.patch - libocfs2-needs-libaio.patch - libocfs2-Change-asserts-to-error.patch - Drop patches for ocfs2_controld - force-debug.patch - extra-debug.patch - bug-805764-ocfs2-controld.patch - bnc804707-reduce-RR-priority.patch - use-symlink-in-udev-rules.patch - Fix mkfs.ocfs2 man page to meniton number of slots are dynamically determined based on filesystem size. - Corrected udev directory from /etc/udev/rules.d - Improve error message if DLM is not available (bnc#867329) + 0007-Improve-error-message-if-DLM-service-is-unavailable.patch - (bnc#867330) Fix group leave in patch: 0002-Remove-controld-dependency-in-group_join-leave.patch - Recommend ocfs2-kmp - Autosetup pcmk if no cluster stack found (bnc#862758) + 0006-Auto-setup-pcmk-stack-as-default-if-no-stack-is-setu.patch - Err if cannot write to cluster_stack (cluster mismatch) + 0003-Auto-setup-cluster_stack-based-on-what-is-on-disk.patch - Update summary and description for the -o2cb package (bnc#862761) - Use libcmap.so.4 for dlopen in 0001-Use-cmap-for-getting-cluster-name.patch to remove dependency on devel package (bnc#860982) - Patch re-factoring, so that we don't have to compile with ldlm + 0001-Use-cmap-for-getting-cluster-name.patch + 0002-Remove-controld-dependency-in-group_join-leave.patch + 0003-Auto-setup-cluster_stack-based-on-what-is-on-disk.patch + 0004-mkfs.ocfs2-Abort-if-cluster-information-is-not-detec.patch + 0005-mkfs-Setup-cluster_stack-if-not-setup-based-on-what-.patch - 0001-libo2cb-Remove-controld-actions-from-group-join-leav.patch - 0002-libo2cb-Remove-rest-of-controld-functions.patch - 0003-Get-cluster-name-from-corosync-cmap.patch - 0004-Remove-controld-structures-from-debugfs.ocfs2.patch - 0005-Check-for-DLM-kernel-version-in-user_begin_group_joi.patch - 0006-Add-cmap-and-dlm-libraries-in-the-tools.patch - 0008-mount.ocfs2-Read-stack-from-device-and-setup-stack-i.patch - 0009-mkfs.ocfs2-Abort-if-cluster-information-is-not-detec.patch - 0010-mkfs-Setup-cluster_stack-if-not-setup-based-on-what-.patch - 0011-Use-dlm_lt-instead-of-dlm-for-DLM-libraries.patch - mkfs.ocfs2: Setup cluster_stack if not setup + 0010-mkfs-Setup-cluster_stack-if-not-setup-based-on-what-.patch - Remove patch numbers for easier future maintainability. - Move static libraries to devel-static subpackage. - mkfs.ocfs2/tunefs.ocfs2 may hang there because of dlm_unlock + 0011-Use-dlm_lt-instead-of-dlm-for-DLM-libraries.patch - mkfs.ocfs2 aborts if cluster information is not found/supplied + 0009-mkfs.ocfs2-Abort-if-cluster-information-is-not-detec.patch - Make mount.ocfs2 load ocfs2 kmp and setup cluster_stack if not found + 0008-mount.ocfs2-Read-stack-from-device-and-setup-stack-i.patch - Mark o2cb.ocf as obsolete. Anyone using o2cb.ocf will get an info message stating so. - The nocontrold effort (added nocontrold patches and disabled corosync-2.3 controld compatibility patches): + 0001-libo2cb-Remove-controld-actions-from-group-join-leav.patch + 0002-libo2cb-Remove-rest-of-controld-functions.patch + 0003-Get-cluster-name-from-corosync-cmap.patch + 0004-Remove-controld-structures-from-debugfs.ocfs2.patch + 0005-Check-for-DLM-kernel-version-in-user_begin_group_joi.patch + 0006-Add-cmap-and-dlm-libraries-in-the-tools.patch - 0001-Remove-pacemaker-ais-stuff.patch - 0002-Add-corosync-cfg-to-get-configuration-information.patch - 0003-Remove-daemon-protocol-versions-and-consolidate-fs-v.patch - 0005-Add-cluster_name-and-stack-name.patch - libocfs2-Change-asserts-to-error.patch: Return control to fsck.ocfs2 instead of erring - Add libraries back in devel package. This is required for ocfs2-test - libocfs2-needs-libaio.patch: Add -laio to ocfs2.pc - Fix FS protocol versions: + 0003-Remove-daemon-protocol-versions-and-consolidate-fs-v.patch - 0003-Hard-code-protocol-versions.patch - Get ocfs2_controld up to speed with corosync 2.3.x + 0001-Remove-pacemaker-ais-stuff.patch + 0002-Add-corosync-cfg-to-get-configuration-information.patch + 0003-Hard-code-protocol-versions.patch + 0005-Add-cluster_name-and-stack-name.patch - ocfs2_controld-pacemaker.diff - ocfs2_controld: ocfs2_controld-pacemaker.diff * Replace use of send_ais_text() with send_cluster_text() * Replace use of ais_dispatch() with plugin_dispatch() - ocfs2console-libraries-include-aio.patch: Include aio while compiling ocfs2console (bnc#827504) - Replace NAME= with SYMLINK+= in udev rules (bnc#779718) + use-symlink-in-udev-rules.patch - reduce ocfs2_controld priority to RR(1). (bnc#804707) + bnc804707-reduce-RR-priority.patch - Fix the race between udev making misc device node and ocfs2 opening that device (bnc#805764) + bug-805764-ocfs2-controld.patch - ocfs2_controld: ocfs2_controld-pacemaker.diff -- changes to be compatible with pacemaker >= 1.1.8 - Update config.guess/sub in the coreutils copy - g_list_append.patch: Fix o2cb node listing - Add _service file to automatically pull from git. It can be invoked locally by "osc service disabledrun" - Use spec-cleaner - No need to call ldconfig without shared objects - Drop unneeded %clean section - No need to export CFLAGS, %configure does that. - Also provide ocfs2-support to have clean upgrade path - Drop patches (merged upstream): + fix-pacemaker-libs.patch + support-for-xvd-devices.patch - Reverted tarball to v1.8.2 - Added support-for-xvd-devices.patch: Support for xvd devices - Fixed a couple of rpmlint errors - libdlm requirement - devel package grouping changed - restore-g_list_append.patch is not required for old tarball - Update ocfs2-tools.tar.bz2 to latest upstream for upstream fixes - restore-g_list_append.patch: Fix o2cb node listing - add explicit buildrequire to libbz2-devel - Fix infinite loop while checking for group desc chains (bnc#781122) - Updated to 1.8.2 - o2cluster: change cluster stack stamped on ocfs2 filesystem - added man pages ocfs2, ocfs2.cluster.conf, o2hbmonitor - fsck: faster fsck times because of aio; progress - fix-indexed-dirs.patch: Fix corrupt indexed directories through fsck - Include sys/resource.h for getrlimit etc. - Add ocfs2-tools-kernel33.patch: Fix build with kernel 3.3, which dropped umode_t. - add autoconf as buildrequire to avoid implicit dependency - remove call to suse_update_config (very old work around) - Fix ocfs2_controld build (/usr/include/pacemaker/crm/common/stack.h moved to /usr/include/pacemaker/crm/cluster/stack.h) - Don't use /var/lock/subsys in /etc/init.d/ocfs2 (bnc#714644) - Add -lcrmcommon to fix ocfs2_controld build. - update ocfs2-tools to 1.8.0 - mkfs.ocfs2 enables file system features indexed-dirs, discontig-bg, refcount & extended-slotmap by default. - ocfs2console is no longer built by default. - ocfs2-tools: fsck.ocfs2 and *ctl built dynamically by default - debugfs: Add -T to logdump - mounted.ocfs2: Show cluster and global heartbeat - mount.ocfs2: Validate mount path before mount - mount.ocfs2: Add support for o2cb global heartbeat - tools: Detect differing cluster name and heartbeat modes - mkfs.ocfs2: Add -U option to allow custom UUIDs - mkfs.ocfs2: Add --global-heartbeat option - libo2cb: Validate cluster name and cluster flags in classic_begin_group_join() - o2cb: Add man page - o2cb: Add ops start-heartbeat and stop-heartbeat - o2cb: Add ops register-cluster and unregister-cluster - o2cb: Add ops list-clusters, list-cluster, list-nodes and list-heartbeats - o2cb: Add ops add-heartbeat, remove-heartbeat and heartbeat-mode - o2cb: Add ops add-node and remove-node - o2cb: Add ops add-cluster and remove-cluster - o2cb: Add a new cluster configuration tool - libo2cb: Adds support for global heartbeat - libo2cb: Extend libo2cb api to learn ip address/port/local of a registered node - o2cb_scandisk: Scan heartbeat devices - debugfs.ocfs2: Journal logdump prints full inode and extent blocks - debugfs.ocfs2: Improve block detection - ocfs2-tools: Set hash seed when convert ocfs2 to support indexed-dirs - ocfs2-tools: o2hbmonitor moved to /usr/sbin - add '-q' in %setup of ocfs2-tools.spec, to make build log shorter. (patch written by aj@suse.de) - remove ocfs2-o2cb_ctl-static-glibc.diff, since it is unnecessary to link glib2 statically in ocfs2-o2cb_ctl now. - update ocfs2-tools to 1.6.3 - remove gcc45-ftbfs-deb-565100.patch, the fix is in upstream now. - Make ocfs2-kmp a Recommend instead of a Requires. This allows easier building of packages which in turn depend on ocfs2-tools. - remove ocfs2-kmp dependency, since opensuse kernel does not privide such kmp. - change version string from 1.4.3 to 1.6.0 in ocfs2-tools.spec - remove bug-585080-handle-symbolic-link.patch since it's upstream now. - remove version-1.4.3.patch, update to ocfs2-tools 1.6.0 - remove dx_dirs patch set, since they are upstream now. 0001-dx_dirs-Add-library-support-for-directory-indexing.patch 0002-dx_dirs-debugfs.ocfs2-support.patch 0003-dx_dirs-mkfs.ocfs2-support.patch 0004-dx_dirs-Add-tunefs.ocfs2-feature-for-indexed-directo.patch 0005-dx_dirs-Update-for-dr_num_entries.patch 0006-dx_dirs-add-missing-ocfs2_filesys-fs-parameter.patch 0007-dx_dirs-more-library-support-for-directory-indexing.patch 0008-dx_dirs-fsck.ocfs2-support.patch 0009-dx_dirs-add-blocknr-in-callback-of-ocfs2_dir_iterate.patch 0010-dx_dirs-add-disable-indexed-dirs-support-in-tunefs.o.patch 0011-dx_dirs-build-indexed-trees-when-enabling-indexed-di.patch 0012-dx_dirs-fix-return-value-of-walk_dirblock-when-enabl.patch 0013-dx_dirs-try-to-install-dir-trailers-when-enable-inde.patch 0014-dx_dirs-add-an-initial-man-page-entry-for-indexed-di.patch 0015-fsck.ocfs2-prompt-before-truncating-an-invalid-dir-i.patch 0016-tunefs.ocfs2-move-o2ne_add_tailers-into-libocfs2ne.c.patch 0017-dx_dirs-add-check-for-invalid-slot-in-ocfs2_new_dx_r.patch 0018-mkfs.ocfs2-create-root-and-orphan-directories-as-ind.patch 0019-libocfs2-fix-flag-check-in-ocfs2_init_dir.patch 0020-libocfs2-fix-ocfs2_init_dir-to-retain-indexed-flag.patch 0021-fsck.ocfs2-verify-dirent-dx-entry-linkages.patch 0022-dx_dirs-stop-iterate-dir-entries-for-I-O-error.patch 0023-dx_dirs-check-callback-iter-dx_func-return-value-in-.patch 0024-dx_dirs-remove-unncessary-return-value-assignment.patch 0025-dx_dirs-unifiy-feature-string-of-indexed-dirs.patch 0026-dx_dirs-Improve-information-displayed-by-dump_dx_roo.patch 0027-dx_dirs-stop-iteration-of-dir-trailer-initialization.patch 0028-dx_dirs-stop-dx-insert-iteration-for-callback-error.patch 0029-dx_dirs-set-OCFS2_INDEXED_DIR_FL-after-indexed-tree-.patch 0030-dx_dirs-fix-ocfs2_swap_dx_entry_list-for-big-endian.patch 0031-dx_dirs-enable-metaecc-and-indexed-dirs-support-as-d.patch - Fix mount.ocfs2.c compilation issue on gcc 4.5 (deb#565100) - Fix configure checks for cpg and SaCkpt libraries - ocfs2_controld.pcmk: compilation issue fixed. - fixes for indexed-dirs - 0016-tunefs.ocfs2-move-o2ne_add_tailers-into-libocfs2ne.c.patch - 0017-dx_dirs-add-check-for-invalid-slot-in-ocfs2_new_dx_r.patch - 0018-mkfs.ocfs2-create-root-and-orphan-directories-as-ind.patch - 0019-libocfs2-fix-flag-check-in-ocfs2_init_dir.patch - 0020-libocfs2-fix-ocfs2_init_dir-to-retain-indexed-flag.patch - 0021-fsck.ocfs2-verify-dirent-dx-entry-linkages.patch - 0022-dx_dirs-stop-iterate-dir-entries-for-I-O-error.patch - 0023-dx_dirs-check-callback-iter-dx_func-return-value-in-.patch - 0024-dx_dirs-remove-unncessary-return-value-assignment.patch - 0025-dx_dirs-unifiy-feature-string-of-indexed-dirs.patch - 0026-dx_dirs-Improve-information-displayed-by-dump_dx_roo.patch - 0027-dx_dirs-stop-iteration-of-dir-trailer-initialization.patch - 0028-dx_dirs-stop-dx-insert-iteration-for-callback-error.patch - 0029-dx_dirs-set-OCFS2_INDEXED_DIR_FL-after-indexed-tree-.patch - 0030-dx_dirs-fix-ocfs2_swap_dx_entry_list-for-big-endian.patch - update indexed-dirs patches to v11 patches - a bug fix in fsck.ocfs2/pass2.c - extra check whether the directory trailer overwrites valid directory items. - Add reflink user-space utility to expose the copy-on-write links in OCFS2 for all platforms (bnc#594979). - 0015-dx_dirs-enable-metaecc-and-indexed-dirs-support-as-d.patch: enable metaecc and indexed-dirs support as default features. - ocfs2-tools-static-glib.diff: rename to ocfs2-o2cb_ctl-static-glibc.diff, don't explicitly link pthread anymore. - update ocfs2-tools.tar.bz2 to upstream (0a1c1970): - mkfs.ocfs2: enable xattr support as a default feature - Fsck.ocfs2: Correctly check i_size for directory in a sparse filesystem. - fsck.ocfs2: Freshen up some fsck messages - mkfs.ocfs2: Add dry-run option - mkfs.ocfs2: Allocate groups to the extent allocator - libocfs2: Add ocfs2_grow_chain_allocator() - libocfs2: ocfs2_chain_add_group() adds new groups to the next logical chain - mounted.ocfs2: Add the stack/local to the output - mounted.ocfs2: Display uuid in all caps - mkfs.ocfs2: Tweak the feature compatibility list in manpage - mkfs.ocfs2: Print fs features during make - 0014-dx_dirs-man-page.diff: add an initial man page entry for indexed-dirs feature. - bug-585080-handle-symbolic-link.patch: handle symbolic link device file for tunefs.ocfs2 online resize (bnc#585080) - version-1.4.3.patch: keep package version as 1.4.3 for SLES11 HAE SP1. - 0013-dx_dirs-try-to-install-dir-trailers-when-enable-inde.patch: try to install dir trailers when enable indexed-dirs feature while metaecc features is not enabled. The fix can avoid ocfs2_dx_dir_build() in ocfs2-tools to overwrite existed dir entries lying in trailer area by moving them into other dir blocks. No BNC associated. - update indexed-dirs patches for - remove the metaecc dependence code for indexed dirs. (bnc#584578) - indexed dirs does not depend on metaecc, remove all incorrect dependence code in mkfs.ocfs2 and tunefs.ocfs2 (bnc#585418) - code clean up in mkfs.ocfs2 - back port ocfs2-tools version 1.6 to SP1 ocfs2-tools package. - add 0012-dx_dirs-fix-for-tunefs-metaecc-and-indexed-dirs.patch (bnc#584578) - update indexed dirs patches for fate#300315 - delete 64bytes_lvb_len_in_libo2dlm.diff (bnc#573460) - update indexed dirs patches. - compiling fix - add disable indexed-dirs support in tunefs.ocfs2 (fate#300315) - more fixes for previous indexed-dirs patches - add the first version of indexed dir support (fate#300315) - ocfs2-tools requires openais for the user-space cluster stack. - Fix ocfs2-tools build (bnc#561625). - Add libcorosync-devel build dependency. - 64bytes_lvb_len_in_libo2dlm.diff: use 64 bytes lvb len ((bnc#515645)) - change version number to 1.4.3 - update ocfs2-tools-1.4.3 to SLES11SP1 - bug-543119-o2dlm.patch: load libdlm_lt.so.3 explicitly in o2dlm.c (bnc#543119) - drop bug-543119_0001-Option-to-skip-cluster-checking-in-tunefs.ocfs2.patch since bnc#543119 is a dlopen() issue, and this patch is not accepted by upstream. - Implement a -F/--force option to bypass the cluster stack in tunefs.ocfs2 (bnc#543119). - fix kill_deamon() from o2cb.ocf, now when the deamon to be killed is not running, kill_deamon() will return SUCESS. Thanks to Dejan. - add quota patches from Jan Kara, full support for enabling, disabling and checking quotas. - Update code to upstream 1.4.2, to support xattr and acl in sles11 (bnc#499278), thanks to Goldwyn Rodrigues. - bug-478794-ocfs2_hb_ctl.diff: Fix crash on parsing corrupt file systems (bnc#478794) - debug-ocfs2_hb_ctl.patch: Better error logging. - Fix the logging of calls to crm_terminate_member_no_mainloop() - ocfs2_controld.pcmk crashed immediately on x86-64 (bnc#486104) - ocfs2_controld-retry-470741.diff: removed. - bug-470741_000{1,2,3}-ocfs2_controld.patch: retry most CKPT operations forever, and recover from partially installed checkpoints (bnc#470741). - Use a Pacemaker library function for kicking nodes form the cluster - Add some extra logging for bnc#484028 - Allow debug message to been seen in syslog for bnc#484028 - Adjust packaging split. - tunefs.ocfs2.8.in_more_options.diff: add manual info for -y, -n and --update-cluster-statck options (bnc#478259) - ocfs2_controld-retry-470741.diff: Increase retry count. - Split off legacy O2CB init scripts and binaries into ocfs2-tools-o2cb. - update o2cb.ocf to fix return value format (bnc#474353) - ocfs2console: Whoops, don't reset all warnings, just pop the DISPLAY one. Thanks to Hu Ziming from IBM and Joel Becker from Oracle. - ocfs2console: remove unsupported option when calling tunefs.ocfs2 (bnc#472353) - Re-implement kill_stack_node() to use node attributes instead of stonithd - Reuse more functions from Pacemaker shared libraries - Have the o2cb OCF agent produce extra output if the daemon doesn't come up - Replace Hu Ziming's patch to Jeol Becker's patch for bnc#448523. - fix ocfs2console crashing when DISOPLAY is not correclty set(bnc#448523), thanks to Hu Ziming from IBM. - add ocfs2-kmp (ocfs2 KMP package) into installation dependency(bnc#459437) - ensure o2cb OCF resource agent is executable - add libdlm to ocfs2-tools' dependency (bnc#448751) - Add a quota fixup patch to match up system file names in tools with the kernel. - Add an OCF-style script to allow Pacemaker to reliably manage the ocfs2 modules. The existing LSB-style one is inadequate. - Refresh package to upstream a93731c164d024e0016520a1f4cd8f9007d7c05e - Remove part of the static glib patch as tunefs.ocfs2 no longer uses glib - Combine patches yet to be upstreamed to ease maintenance - Add quota support patches - New patch for ocfs2_controld - make sure stad(err|out|in) are mapped to /dev/null and not left unassigned (which causes issues when logging) - ocfs2console: Allow ocfs2console to enumerate device mapper devices (bnc#414756) - Update for new pacemaker dependancies - Use correct path for ocfs2_controld.* - Package required udev rules - Refresh from upstream 1.4.1 (0ead2f1b45568ca441cb3ed679efbbd7eeb68d98) - Add support for OpenAIS/Pacemaker (userspace cluster stack) integration based on upstream OCFS2 interface - Remove the custom Heartbeat integration - Bugfixes - Made init scripts LSB compliant. - Re-added init script support for userspace heartbeat. - Statically link glib-2.0 with tunefs and o2cb_ctl. - Update to 1.3.9 - Update to 1.2.7 - Add shrinking journal size support - Fix crash in slotmap - Don't append _netdev for local mounts - Add query support for tunefs - Add remove slot features to tunefs - Update to 1.2.6 - Support for file attributes field - Fix for automatically selecting next node number - Multiple fsck fixes - Offline resize - Documentation updates - Don't use kernel headers. - define offsetof locally if it does not come from kernel header - Upgrade to version 1.2.2 to match in-kernel version. - Split-off devel subpackage. - use RPM_OPT_FLAGS - Cleanup BuildRequires. - buildrequire python-gtk-devel instead of python-gtk - Fix compile with new glibc - Update to 1.2.1 to match in-kernel version. - Create /sbin/rcocfs2, rco2cb symlinks (#167261). - Install "ocfs2" init script and enable it (#160724). - Updated to version 1.2.0, per Oracle - Enabled o2cb by default on package install to allow it to shut down when manually started. Otherwise, the system will hang during shutdown. - converted neededforbuild to BuildRequires - Should-Start: iscsi added (from SLES9) (#114733) - don't build as root - Update to version 1.1.3 - SVN 1105 - Fix python defines. - Fix build with different python versions. - Fix package description. - Initial packaging of ocfs2-tools, from SLES9. - Update to version 1.1.1 - SVN 1063 OBS-URL: https://build.opensuse.org/request/show/520604 OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/ocfs2-tools?expand=0&rev=99
2017-09-04 10:40:18 +02:00
Patch502: fsck.ocfs2-fix-compile-error-when-glibc-upgrade.patch
BuildRequires: autoconf
BuildRequires: e2fsprogs-devel
BuildRequires: libaio-devel
BuildRequires: libbz2-devel
BuildRequires: libcorosync-devel
BuildRequires: libdlm-devel
BuildRequires: libxslt-devel
BuildRequires: libz1
BuildRequires: readline-devel
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(libxml-2.0)
Requires(pre): %fillup_prereq
Requires: /sbin/chkconfig
Requires: e2fsprogs
Requires: glib2 >= 2.2.3
Requires: modutils
Requires: net-tools
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Recommends: ocfs2-kmp
%if 0%{?suse_version} >= 1315
%define systemd_enabled 1
%else
%define systemd_enabled 0
Requires(pre): %insserv_prereq
%endif
%description
OCFS2 is the Oracle Cluster File System.
This package contains the core user-space tools needed for creating and
managing the file system.
%if 0%{_ocfs2console} == 1
%package -n ocfs2console
Summary: Oracle Cluster Filesystem 2 GUI tools
Group: System/Filesystems
BuildRequires: python-devel
BuildRequires: python-gtk-devel
Requires: e2fsprogs
Requires: glib2 >= 2.2.3
Requires: ocfs2-tools = %{version}
Requires: ocfs2-tools = %{version}
Requires: python-gtk >= 1.99.16
Requires: vte >= 0.11.10
Provides: ocfs2-support = %{version}
Obsoletes: ocfs2-support < %{version}
%description -n ocfs2console
OCFS2 is the Oracle Cluster Filesystem.
This package contains additional tools and a GUI (python-gtk).
%endif
%package devel
Summary: Oracle Cluster File System 2 Development files
Group: Development/Libraries/C and C++
Requires: libcom_err
Requires: libcom_err-devel
Requires: ocfs2-tools = %{version}
%description devel
OCFS2 is the Oracle Cluster File System.
This package contains the header files for developing low-level
OCFS2-aware applications.
%package devel-static
Summary: Oracle Cluster File System 2 static libraries
Group: Development/Libraries/C and C++
Requires: libcom_err
Requires: libcom_err-devel
Requires: ocfs2-tools = %{version}
%description devel-static
OCFS2 is the Oracle Cluster File System.
This package contains the static libraries for developing low-level
OCFS2-aware applications.
%package o2cb
Summary: Oracle Cluster File System 2 tools for the native o2cb stack
Group: System/Filesystems
Requires: ocfs2-tools = %{version}
%description o2cb
OCFS is the Oracle Cluster File System.
This package contains the tools to manage the native o2cb stack for the
OCFS2 filesystem.
%prep
Accepting request 544564 from home:ganghe:branches:network:ha-clustering:Factory - Remove o2cb resource agent which is obsolete (bsc#1069099) - Fix dependencies problem between ocfs2-tools and ocfs2-kmp (bsc#1060601) - Add fsck.ocfs2-fix-compile-error-when-glibc-upgrade.patch (bsc#1057008) - Change license to GPL-2.0 from GPL-2.0+ - Update ocfs2-tools.tar.gz to upstream v1.8.5 (fate#322956) - Unify the source files between openSUSE:Factory and SLE12SP3 + 0004-mkfs.ocfs2-Abort-if-cluster-information-is-not-detec.patch - bnc883550-Fix-mkfs.ocfs2-man-page-for-default-slots.patch - Drop patches (merged upstream): - 0001-libo2dlm-Close-file-description-after-use.patch - 0002-debugfs.ocfs2-Fix-a-bug-in-process_open_args.patch - 0003-o2cb-add-build-scripts-for-rhel7.patch - 0004-add-systemd-support.patch - 0005-do-not-write-sysconfig-if-status-not-changed.patch - 0006-o2cb-mount-debugfs-when-load-config.patch - 0009-o2cb-fix-systemd-o2cb.service-failure.patch - Add 0009-o2cb-fix-systemd-o2cb.service-failure.patch to fix bsc#963959 - Add bnc#96864-ocfs2console-fix-starting-failure.patch - Make pcmk as default stack for ocfs2, and this patch may go along with us forever bnc#959660 +auto-setup-pcmk-stack-as-default-if-no-stack-is-setup.patch - Add systemd support for o2cb and ocfs2 service + 0003-o2cb-add-build-scripts-for-rhel7.patch + 0004-add-systemd-support.patch + 0005-do-not-write-sysconfig-if-status-not-changed.patch + 0006-o2cb-mount-debugfs-when-load-config.patch + 0007-vendor-Add-vendor-files-for-sles12.patch + 0008-ocfs2-tools-add-systemd-support-fix.patch - libo2dlm: Close file description after use + 0001-libo2dlm-Close-file-description-after-use.patch - debugfs.ocfs2: Fix a bug in process_open_args() + 0002-debugfs.ocfs2-Fix-a-bug-in-process_open_args.patch - Update ocfs2-tools.tar.bz2 to upstream v1.8.4 - Use new ocfs2-tools git URL https://github.com/markfasheh/ocfs2-tools.git - Drop patches (merged upstream): - 0001-Use-cmap-for-getting-cluster-name.patch - 0002-Remove-controld-dependency-in-group_join-leave.patch - 0003-Auto-setup-cluster_stack-based-on-what-is-on-disk.patch - 0004-mkfs.ocfs2-Abort-if-cluster-information-is-not-detec.patch - 0005-mkfs-Setup-cluster_stack-if-not-setup-based-on-what-.patch - 0006-Auto-setup-pcmk-stack-as-default-if-no-stack-is-setu.patch - Update ocfs2-tools.tar.bz2 to upstream v1.8.3 - Drop patches (merged upstream): - fix-indexed-dirs.patch - 0001-fswreck-Create-a-loop-in-group-chains.patch - 0002-Break-a-chain-loop-in-group-desc.patch - restore-g_list_append.patch - ocfs2console-libraries-include-aio.patch - libocfs2-needs-libaio.patch - libocfs2-Change-asserts-to-error.patch - Drop patches for ocfs2_controld - force-debug.patch - extra-debug.patch - bug-805764-ocfs2-controld.patch - bnc804707-reduce-RR-priority.patch - use-symlink-in-udev-rules.patch - Fix mkfs.ocfs2 man page to meniton number of slots are dynamically determined based on filesystem size. - Corrected udev directory from /etc/udev/rules.d - Improve error message if DLM is not available (bnc#867329) + 0007-Improve-error-message-if-DLM-service-is-unavailable.patch - (bnc#867330) Fix group leave in patch: 0002-Remove-controld-dependency-in-group_join-leave.patch - Recommend ocfs2-kmp - Autosetup pcmk if no cluster stack found (bnc#862758) + 0006-Auto-setup-pcmk-stack-as-default-if-no-stack-is-setu.patch - Err if cannot write to cluster_stack (cluster mismatch) + 0003-Auto-setup-cluster_stack-based-on-what-is-on-disk.patch - Update summary and description for the -o2cb package (bnc#862761) - Use libcmap.so.4 for dlopen in 0001-Use-cmap-for-getting-cluster-name.patch to remove dependency on devel package (bnc#860982) - Patch re-factoring, so that we don't have to compile with ldlm + 0001-Use-cmap-for-getting-cluster-name.patch + 0002-Remove-controld-dependency-in-group_join-leave.patch + 0003-Auto-setup-cluster_stack-based-on-what-is-on-disk.patch + 0004-mkfs.ocfs2-Abort-if-cluster-information-is-not-detec.patch + 0005-mkfs-Setup-cluster_stack-if-not-setup-based-on-what-.patch - 0001-libo2cb-Remove-controld-actions-from-group-join-leav.patch - 0002-libo2cb-Remove-rest-of-controld-functions.patch - 0003-Get-cluster-name-from-corosync-cmap.patch - 0004-Remove-controld-structures-from-debugfs.ocfs2.patch - 0005-Check-for-DLM-kernel-version-in-user_begin_group_joi.patch - 0006-Add-cmap-and-dlm-libraries-in-the-tools.patch - 0008-mount.ocfs2-Read-stack-from-device-and-setup-stack-i.patch - 0009-mkfs.ocfs2-Abort-if-cluster-information-is-not-detec.patch - 0010-mkfs-Setup-cluster_stack-if-not-setup-based-on-what-.patch - 0011-Use-dlm_lt-instead-of-dlm-for-DLM-libraries.patch - mkfs.ocfs2: Setup cluster_stack if not setup + 0010-mkfs-Setup-cluster_stack-if-not-setup-based-on-what-.patch - Remove patch numbers for easier future maintainability. - Move static libraries to devel-static subpackage. - mkfs.ocfs2/tunefs.ocfs2 may hang there because of dlm_unlock + 0011-Use-dlm_lt-instead-of-dlm-for-DLM-libraries.patch - mkfs.ocfs2 aborts if cluster information is not found/supplied + 0009-mkfs.ocfs2-Abort-if-cluster-information-is-not-detec.patch - Make mount.ocfs2 load ocfs2 kmp and setup cluster_stack if not found + 0008-mount.ocfs2-Read-stack-from-device-and-setup-stack-i.patch - Mark o2cb.ocf as obsolete. Anyone using o2cb.ocf will get an info message stating so. - The nocontrold effort (added nocontrold patches and disabled corosync-2.3 controld compatibility patches): + 0001-libo2cb-Remove-controld-actions-from-group-join-leav.patch + 0002-libo2cb-Remove-rest-of-controld-functions.patch + 0003-Get-cluster-name-from-corosync-cmap.patch + 0004-Remove-controld-structures-from-debugfs.ocfs2.patch + 0005-Check-for-DLM-kernel-version-in-user_begin_group_joi.patch + 0006-Add-cmap-and-dlm-libraries-in-the-tools.patch - 0001-Remove-pacemaker-ais-stuff.patch - 0002-Add-corosync-cfg-to-get-configuration-information.patch - 0003-Remove-daemon-protocol-versions-and-consolidate-fs-v.patch - 0005-Add-cluster_name-and-stack-name.patch - libocfs2-Change-asserts-to-error.patch: Return control to fsck.ocfs2 instead of erring - Add libraries back in devel package. This is required for ocfs2-test - libocfs2-needs-libaio.patch: Add -laio to ocfs2.pc - Fix FS protocol versions: + 0003-Remove-daemon-protocol-versions-and-consolidate-fs-v.patch - 0003-Hard-code-protocol-versions.patch - Get ocfs2_controld up to speed with corosync 2.3.x + 0001-Remove-pacemaker-ais-stuff.patch + 0002-Add-corosync-cfg-to-get-configuration-information.patch + 0003-Hard-code-protocol-versions.patch + 0005-Add-cluster_name-and-stack-name.patch - ocfs2_controld-pacemaker.diff - ocfs2_controld: ocfs2_controld-pacemaker.diff * Replace use of send_ais_text() with send_cluster_text() * Replace use of ais_dispatch() with plugin_dispatch() - ocfs2console-libraries-include-aio.patch: Include aio while compiling ocfs2console (bnc#827504) - Replace NAME= with SYMLINK+= in udev rules (bnc#779718) + use-symlink-in-udev-rules.patch - reduce ocfs2_controld priority to RR(1). (bnc#804707) + bnc804707-reduce-RR-priority.patch - Fix the race between udev making misc device node and ocfs2 opening that device (bnc#805764) + bug-805764-ocfs2-controld.patch - ocfs2_controld: ocfs2_controld-pacemaker.diff -- changes to be compatible with pacemaker >= 1.1.8 - Update config.guess/sub in the coreutils copy - g_list_append.patch: Fix o2cb node listing - Add _service file to automatically pull from git. It can be invoked locally by "osc service disabledrun" - Use spec-cleaner - No need to call ldconfig without shared objects - Drop unneeded %clean section - No need to export CFLAGS, %configure does that. - Also provide ocfs2-support to have clean upgrade path - Drop patches (merged upstream): + fix-pacemaker-libs.patch + support-for-xvd-devices.patch - Reverted tarball to v1.8.2 - Added support-for-xvd-devices.patch: Support for xvd devices - Fixed a couple of rpmlint errors - libdlm requirement - devel package grouping changed - restore-g_list_append.patch is not required for old tarball - Update ocfs2-tools.tar.bz2 to latest upstream for upstream fixes - restore-g_list_append.patch: Fix o2cb node listing - add explicit buildrequire to libbz2-devel - Fix infinite loop while checking for group desc chains (bnc#781122) - Updated to 1.8.2 - o2cluster: change cluster stack stamped on ocfs2 filesystem - added man pages ocfs2, ocfs2.cluster.conf, o2hbmonitor - fsck: faster fsck times because of aio; progress - fix-indexed-dirs.patch: Fix corrupt indexed directories through fsck - Include sys/resource.h for getrlimit etc. - Add ocfs2-tools-kernel33.patch: Fix build with kernel 3.3, which dropped umode_t. - add autoconf as buildrequire to avoid implicit dependency - remove call to suse_update_config (very old work around) - Fix ocfs2_controld build (/usr/include/pacemaker/crm/common/stack.h moved to /usr/include/pacemaker/crm/cluster/stack.h) - Don't use /var/lock/subsys in /etc/init.d/ocfs2 (bnc#714644) - Add -lcrmcommon to fix ocfs2_controld build. - update ocfs2-tools to 1.8.0 - mkfs.ocfs2 enables file system features indexed-dirs, discontig-bg, refcount & extended-slotmap by default. - ocfs2console is no longer built by default. - ocfs2-tools: fsck.ocfs2 and *ctl built dynamically by default - debugfs: Add -T to logdump - mounted.ocfs2: Show cluster and global heartbeat - mount.ocfs2: Validate mount path before mount - mount.ocfs2: Add support for o2cb global heartbeat - tools: Detect differing cluster name and heartbeat modes - mkfs.ocfs2: Add -U option to allow custom UUIDs - mkfs.ocfs2: Add --global-heartbeat option - libo2cb: Validate cluster name and cluster flags in classic_begin_group_join() - o2cb: Add man page - o2cb: Add ops start-heartbeat and stop-heartbeat - o2cb: Add ops register-cluster and unregister-cluster - o2cb: Add ops list-clusters, list-cluster, list-nodes and list-heartbeats - o2cb: Add ops add-heartbeat, remove-heartbeat and heartbeat-mode - o2cb: Add ops add-node and remove-node - o2cb: Add ops add-cluster and remove-cluster - o2cb: Add a new cluster configuration tool - libo2cb: Adds support for global heartbeat - libo2cb: Extend libo2cb api to learn ip address/port/local of a registered node - o2cb_scandisk: Scan heartbeat devices - debugfs.ocfs2: Journal logdump prints full inode and extent blocks - debugfs.ocfs2: Improve block detection - ocfs2-tools: Set hash seed when convert ocfs2 to support indexed-dirs - ocfs2-tools: o2hbmonitor moved to /usr/sbin - add '-q' in %setup of ocfs2-tools.spec, to make build log shorter. (patch written by aj@suse.de) - remove ocfs2-o2cb_ctl-static-glibc.diff, since it is unnecessary to link glib2 statically in ocfs2-o2cb_ctl now. - update ocfs2-tools to 1.6.3 - remove gcc45-ftbfs-deb-565100.patch, the fix is in upstream now. - Make ocfs2-kmp a Recommend instead of a Requires. This allows easier building of packages which in turn depend on ocfs2-tools. - remove ocfs2-kmp dependency, since opensuse kernel does not privide such kmp. - change version string from 1.4.3 to 1.6.0 in ocfs2-tools.spec - remove bug-585080-handle-symbolic-link.patch since it's upstream now. - remove version-1.4.3.patch, update to ocfs2-tools 1.6.0 - remove dx_dirs patch set, since they are upstream now. 0001-dx_dirs-Add-library-support-for-directory-indexing.patch 0002-dx_dirs-debugfs.ocfs2-support.patch 0003-dx_dirs-mkfs.ocfs2-support.patch 0004-dx_dirs-Add-tunefs.ocfs2-feature-for-indexed-directo.patch 0005-dx_dirs-Update-for-dr_num_entries.patch 0006-dx_dirs-add-missing-ocfs2_filesys-fs-parameter.patch 0007-dx_dirs-more-library-support-for-directory-indexing.patch 0008-dx_dirs-fsck.ocfs2-support.patch 0009-dx_dirs-add-blocknr-in-callback-of-ocfs2_dir_iterate.patch 0010-dx_dirs-add-disable-indexed-dirs-support-in-tunefs.o.patch 0011-dx_dirs-build-indexed-trees-when-enabling-indexed-di.patch 0012-dx_dirs-fix-return-value-of-walk_dirblock-when-enabl.patch 0013-dx_dirs-try-to-install-dir-trailers-when-enable-inde.patch 0014-dx_dirs-add-an-initial-man-page-entry-for-indexed-di.patch 0015-fsck.ocfs2-prompt-before-truncating-an-invalid-dir-i.patch 0016-tunefs.ocfs2-move-o2ne_add_tailers-into-libocfs2ne.c.patch 0017-dx_dirs-add-check-for-invalid-slot-in-ocfs2_new_dx_r.patch 0018-mkfs.ocfs2-create-root-and-orphan-directories-as-ind.patch 0019-libocfs2-fix-flag-check-in-ocfs2_init_dir.patch 0020-libocfs2-fix-ocfs2_init_dir-to-retain-indexed-flag.patch 0021-fsck.ocfs2-verify-dirent-dx-entry-linkages.patch 0022-dx_dirs-stop-iterate-dir-entries-for-I-O-error.patch 0023-dx_dirs-check-callback-iter-dx_func-return-value-in-.patch 0024-dx_dirs-remove-unncessary-return-value-assignment.patch 0025-dx_dirs-unifiy-feature-string-of-indexed-dirs.patch 0026-dx_dirs-Improve-information-displayed-by-dump_dx_roo.patch 0027-dx_dirs-stop-iteration-of-dir-trailer-initialization.patch 0028-dx_dirs-stop-dx-insert-iteration-for-callback-error.patch 0029-dx_dirs-set-OCFS2_INDEXED_DIR_FL-after-indexed-tree-.patch 0030-dx_dirs-fix-ocfs2_swap_dx_entry_list-for-big-endian.patch 0031-dx_dirs-enable-metaecc-and-indexed-dirs-support-as-d.patch - Fix mount.ocfs2.c compilation issue on gcc 4.5 (deb#565100) - Fix configure checks for cpg and SaCkpt libraries - ocfs2_controld.pcmk: compilation issue fixed. - fixes for indexed-dirs - 0016-tunefs.ocfs2-move-o2ne_add_tailers-into-libocfs2ne.c.patch - 0017-dx_dirs-add-check-for-invalid-slot-in-ocfs2_new_dx_r.patch - 0018-mkfs.ocfs2-create-root-and-orphan-directories-as-ind.patch - 0019-libocfs2-fix-flag-check-in-ocfs2_init_dir.patch - 0020-libocfs2-fix-ocfs2_init_dir-to-retain-indexed-flag.patch - 0021-fsck.ocfs2-verify-dirent-dx-entry-linkages.patch - 0022-dx_dirs-stop-iterate-dir-entries-for-I-O-error.patch - 0023-dx_dirs-check-callback-iter-dx_func-return-value-in-.patch - 0024-dx_dirs-remove-unncessary-return-value-assignment.patch - 0025-dx_dirs-unifiy-feature-string-of-indexed-dirs.patch - 0026-dx_dirs-Improve-information-displayed-by-dump_dx_roo.patch - 0027-dx_dirs-stop-iteration-of-dir-trailer-initialization.patch - 0028-dx_dirs-stop-dx-insert-iteration-for-callback-error.patch - 0029-dx_dirs-set-OCFS2_INDEXED_DIR_FL-after-indexed-tree-.patch - 0030-dx_dirs-fix-ocfs2_swap_dx_entry_list-for-big-endian.patch - update indexed-dirs patches to v11 patches - a bug fix in fsck.ocfs2/pass2.c - extra check whether the directory trailer overwrites valid directory items. - Add reflink user-space utility to expose the copy-on-write links in OCFS2 for all platforms (bnc#594979). - 0015-dx_dirs-enable-metaecc-and-indexed-dirs-support-as-d.patch: enable metaecc and indexed-dirs support as default features. - ocfs2-tools-static-glib.diff: rename to ocfs2-o2cb_ctl-static-glibc.diff, don't explicitly link pthread anymore. - update ocfs2-tools.tar.bz2 to upstream (0a1c1970): - mkfs.ocfs2: enable xattr support as a default feature - Fsck.ocfs2: Correctly check i_size for directory in a sparse filesystem. - fsck.ocfs2: Freshen up some fsck messages - mkfs.ocfs2: Add dry-run option - mkfs.ocfs2: Allocate groups to the extent allocator - libocfs2: Add ocfs2_grow_chain_allocator() - libocfs2: ocfs2_chain_add_group() adds new groups to the next logical chain - mounted.ocfs2: Add the stack/local to the output - mounted.ocfs2: Display uuid in all caps - mkfs.ocfs2: Tweak the feature compatibility list in manpage - mkfs.ocfs2: Print fs features during make - 0014-dx_dirs-man-page.diff: add an initial man page entry for indexed-dirs feature. - bug-585080-handle-symbolic-link.patch: handle symbolic link device file for tunefs.ocfs2 online resize (bnc#585080) - version-1.4.3.patch: keep package version as 1.4.3 for SLES11 HAE SP1. - 0013-dx_dirs-try-to-install-dir-trailers-when-enable-inde.patch: try to install dir trailers when enable indexed-dirs feature while metaecc features is not enabled. The fix can avoid ocfs2_dx_dir_build() in ocfs2-tools to overwrite existed dir entries lying in trailer area by moving them into other dir blocks. No BNC associated. - update indexed-dirs patches for - remove the metaecc dependence code for indexed dirs. (bnc#584578) - indexed dirs does not depend on metaecc, remove all incorrect dependence code in mkfs.ocfs2 and tunefs.ocfs2 (bnc#585418) - code clean up in mkfs.ocfs2 - back port ocfs2-tools version 1.6 to SP1 ocfs2-tools package. - add 0012-dx_dirs-fix-for-tunefs-metaecc-and-indexed-dirs.patch (bnc#584578) - update indexed dirs patches for fate#300315 - delete 64bytes_lvb_len_in_libo2dlm.diff (bnc#573460) - update indexed dirs patches. - compiling fix - add disable indexed-dirs support in tunefs.ocfs2 (fate#300315) - more fixes for previous indexed-dirs patches - add the first version of indexed dir support (fate#300315) - ocfs2-tools requires openais for the user-space cluster stack. - Fix ocfs2-tools build (bnc#561625). - Add libcorosync-devel build dependency. - 64bytes_lvb_len_in_libo2dlm.diff: use 64 bytes lvb len ((bnc#515645)) - change version number to 1.4.3 - update ocfs2-tools-1.4.3 to SLES11SP1 - bug-543119-o2dlm.patch: load libdlm_lt.so.3 explicitly in o2dlm.c (bnc#543119) - drop bug-543119_0001-Option-to-skip-cluster-checking-in-tunefs.ocfs2.patch since bnc#543119 is a dlopen() issue, and this patch is not accepted by upstream. - Implement a -F/--force option to bypass the cluster stack in tunefs.ocfs2 (bnc#543119). - fix kill_deamon() from o2cb.ocf, now when the deamon to be killed is not running, kill_deamon() will return SUCESS. Thanks to Dejan. - add quota patches from Jan Kara, full support for enabling, disabling and checking quotas. - Update code to upstream 1.4.2, to support xattr and acl in sles11 (bnc#499278), thanks to Goldwyn Rodrigues. - bug-478794-ocfs2_hb_ctl.diff: Fix crash on parsing corrupt file systems (bnc#478794) - debug-ocfs2_hb_ctl.patch: Better error logging. - Fix the logging of calls to crm_terminate_member_no_mainloop() - ocfs2_controld.pcmk crashed immediately on x86-64 (bnc#486104) - ocfs2_controld-retry-470741.diff: removed. - bug-470741_000{1,2,3}-ocfs2_controld.patch: retry most CKPT operations forever, and recover from partially installed checkpoints (bnc#470741). - Use a Pacemaker library function for kicking nodes form the cluster - Add some extra logging for bnc#484028 - Allow debug message to been seen in syslog for bnc#484028 - Adjust packaging split. - tunefs.ocfs2.8.in_more_options.diff: add manual info for -y, -n and --update-cluster-statck options (bnc#478259) - ocfs2_controld-retry-470741.diff: Increase retry count. - Split off legacy O2CB init scripts and binaries into ocfs2-tools-o2cb. - update o2cb.ocf to fix return value format (bnc#474353) - ocfs2console: Whoops, don't reset all warnings, just pop the DISPLAY one. Thanks to Hu Ziming from IBM and Joel Becker from Oracle. - ocfs2console: remove unsupported option when calling tunefs.ocfs2 (bnc#472353) - Re-implement kill_stack_node() to use node attributes instead of stonithd - Reuse more functions from Pacemaker shared libraries - Have the o2cb OCF agent produce extra output if the daemon doesn't come up - Replace Hu Ziming's patch to Jeol Becker's patch for bnc#448523. - fix ocfs2console crashing when DISOPLAY is not correclty set(bnc#448523), thanks to Hu Ziming from IBM. - add ocfs2-kmp (ocfs2 KMP package) into installation dependency(bnc#459437) - ensure o2cb OCF resource agent is executable - add libdlm to ocfs2-tools' dependency (bnc#448751) - Add a quota fixup patch to match up system file names in tools with the kernel. - Add an OCF-style script to allow Pacemaker to reliably manage the ocfs2 modules. The existing LSB-style one is inadequate. - Refresh package to upstream a93731c164d024e0016520a1f4cd8f9007d7c05e - Remove part of the static glib patch as tunefs.ocfs2 no longer uses glib - Combine patches yet to be upstreamed to ease maintenance - Add quota support patches - New patch for ocfs2_controld - make sure stad(err|out|in) are mapped to /dev/null and not left unassigned (which causes issues when logging) - ocfs2console: Allow ocfs2console to enumerate device mapper devices (bnc#414756) - Update for new pacemaker dependancies - Use correct path for ocfs2_controld.* - Package required udev rules - Refresh from upstream 1.4.1 (0ead2f1b45568ca441cb3ed679efbbd7eeb68d98) - Add support for OpenAIS/Pacemaker (userspace cluster stack) integration based on upstream OCFS2 interface - Remove the custom Heartbeat integration - Bugfixes - Made init scripts LSB compliant. - Re-added init script support for userspace heartbeat. - Statically link glib-2.0 with tunefs and o2cb_ctl. - Update to 1.3.9 - Update to 1.2.7 - Add shrinking journal size support - Fix crash in slotmap - Don't append _netdev for local mounts - Add query support for tunefs - Add remove slot features to tunefs - Update to 1.2.6 - Support for file attributes field - Fix for automatically selecting next node number - Multiple fsck fixes - Offline resize - Documentation updates - Don't use kernel headers. - define offsetof locally if it does not come from kernel header - Upgrade to version 1.2.2 to match in-kernel version. - Split-off devel subpackage. - use RPM_OPT_FLAGS - Cleanup BuildRequires. - buildrequire python-gtk-devel instead of python-gtk - Fix compile with new glibc - Update to 1.2.1 to match in-kernel version. - Create /sbin/rcocfs2, rco2cb symlinks (#167261). - Install "ocfs2" init script and enable it (#160724). - Updated to version 1.2.0, per Oracle - Enabled o2cb by default on package install to allow it to shut down when manually started. Otherwise, the system will hang during shutdown. - converted neededforbuild to BuildRequires - Should-Start: iscsi added (from SLES9) (#114733) - don't build as root - Update to version 1.1.3 - SVN 1105 - Fix python defines. - Fix build with different python versions. - Fix package description. - Initial packaging of ocfs2-tools, from SLES9. - Update to version 1.1.1 - SVN 1063 OBS-URL: https://build.opensuse.org/request/show/544564 OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/ocfs2-tools?expand=0&rev=107
2017-11-23 11:02:10 +01:00
%setup -q -a 1
%patch001 -p1
%patch103 -p1
%patch105 -p1
%patch106 -p1
%patch107 -p0
%patch201 -p1
%patch202 -p1
%patch204 -p1
%patch205 -p1
%patch206 -p1
%patch225 -p1
%patch228 -p1
%patch405 -p1
%patch406 -p1
%patch501 -p1
Accepting request 520604 from home:ganghe:branches:network:ha-clustering:Factory - Add fsck.ocfs2-fix-compile-error-when-glibc-upgrade.patch (bsc#1057008) - Update ocfs2-tools.tar.gz to upstream v1.8.5 (fate#322956) - Unify the source files between openSUSE:Factory and SLE12SP3 + 0004-mkfs.ocfs2-Abort-if-cluster-information-is-not-detec.patch - bnc883550-Fix-mkfs.ocfs2-man-page-for-default-slots.patch - Drop patches (merged upstream): - 0001-libo2dlm-Close-file-description-after-use.patch - 0002-debugfs.ocfs2-Fix-a-bug-in-process_open_args.patch - 0003-o2cb-add-build-scripts-for-rhel7.patch - 0004-add-systemd-support.patch - 0005-do-not-write-sysconfig-if-status-not-changed.patch - 0006-o2cb-mount-debugfs-when-load-config.patch - 0009-o2cb-fix-systemd-o2cb.service-failure.patch - Add 0009-o2cb-fix-systemd-o2cb.service-failure.patch to fix bsc#963959 - Add bnc#96864-ocfs2console-fix-starting-failure.patch - Make pcmk as default stack for ocfs2, and this patch may go along with us forever bnc#959660 +auto-setup-pcmk-stack-as-default-if-no-stack-is-setup.patch - Add systemd support for o2cb and ocfs2 service + 0003-o2cb-add-build-scripts-for-rhel7.patch + 0004-add-systemd-support.patch + 0005-do-not-write-sysconfig-if-status-not-changed.patch + 0006-o2cb-mount-debugfs-when-load-config.patch + 0007-vendor-Add-vendor-files-for-sles12.patch + 0008-ocfs2-tools-add-systemd-support-fix.patch - libo2dlm: Close file description after use + 0001-libo2dlm-Close-file-description-after-use.patch - debugfs.ocfs2: Fix a bug in process_open_args() + 0002-debugfs.ocfs2-Fix-a-bug-in-process_open_args.patch - Update ocfs2-tools.tar.bz2 to upstream v1.8.4 - Use new ocfs2-tools git URL https://github.com/markfasheh/ocfs2-tools.git - Drop patches (merged upstream): - 0001-Use-cmap-for-getting-cluster-name.patch - 0002-Remove-controld-dependency-in-group_join-leave.patch - 0003-Auto-setup-cluster_stack-based-on-what-is-on-disk.patch - 0004-mkfs.ocfs2-Abort-if-cluster-information-is-not-detec.patch - 0005-mkfs-Setup-cluster_stack-if-not-setup-based-on-what-.patch - 0006-Auto-setup-pcmk-stack-as-default-if-no-stack-is-setu.patch - Update ocfs2-tools.tar.bz2 to upstream v1.8.3 - Drop patches (merged upstream): - fix-indexed-dirs.patch - 0001-fswreck-Create-a-loop-in-group-chains.patch - 0002-Break-a-chain-loop-in-group-desc.patch - restore-g_list_append.patch - ocfs2console-libraries-include-aio.patch - libocfs2-needs-libaio.patch - libocfs2-Change-asserts-to-error.patch - Drop patches for ocfs2_controld - force-debug.patch - extra-debug.patch - bug-805764-ocfs2-controld.patch - bnc804707-reduce-RR-priority.patch - use-symlink-in-udev-rules.patch - Fix mkfs.ocfs2 man page to meniton number of slots are dynamically determined based on filesystem size. - Corrected udev directory from /etc/udev/rules.d - Improve error message if DLM is not available (bnc#867329) + 0007-Improve-error-message-if-DLM-service-is-unavailable.patch - (bnc#867330) Fix group leave in patch: 0002-Remove-controld-dependency-in-group_join-leave.patch - Recommend ocfs2-kmp - Autosetup pcmk if no cluster stack found (bnc#862758) + 0006-Auto-setup-pcmk-stack-as-default-if-no-stack-is-setu.patch - Err if cannot write to cluster_stack (cluster mismatch) + 0003-Auto-setup-cluster_stack-based-on-what-is-on-disk.patch - Update summary and description for the -o2cb package (bnc#862761) - Use libcmap.so.4 for dlopen in 0001-Use-cmap-for-getting-cluster-name.patch to remove dependency on devel package (bnc#860982) - Patch re-factoring, so that we don't have to compile with ldlm + 0001-Use-cmap-for-getting-cluster-name.patch + 0002-Remove-controld-dependency-in-group_join-leave.patch + 0003-Auto-setup-cluster_stack-based-on-what-is-on-disk.patch + 0004-mkfs.ocfs2-Abort-if-cluster-information-is-not-detec.patch + 0005-mkfs-Setup-cluster_stack-if-not-setup-based-on-what-.patch - 0001-libo2cb-Remove-controld-actions-from-group-join-leav.patch - 0002-libo2cb-Remove-rest-of-controld-functions.patch - 0003-Get-cluster-name-from-corosync-cmap.patch - 0004-Remove-controld-structures-from-debugfs.ocfs2.patch - 0005-Check-for-DLM-kernel-version-in-user_begin_group_joi.patch - 0006-Add-cmap-and-dlm-libraries-in-the-tools.patch - 0008-mount.ocfs2-Read-stack-from-device-and-setup-stack-i.patch - 0009-mkfs.ocfs2-Abort-if-cluster-information-is-not-detec.patch - 0010-mkfs-Setup-cluster_stack-if-not-setup-based-on-what-.patch - 0011-Use-dlm_lt-instead-of-dlm-for-DLM-libraries.patch - mkfs.ocfs2: Setup cluster_stack if not setup + 0010-mkfs-Setup-cluster_stack-if-not-setup-based-on-what-.patch - Remove patch numbers for easier future maintainability. - Move static libraries to devel-static subpackage. - mkfs.ocfs2/tunefs.ocfs2 may hang there because of dlm_unlock + 0011-Use-dlm_lt-instead-of-dlm-for-DLM-libraries.patch - mkfs.ocfs2 aborts if cluster information is not found/supplied + 0009-mkfs.ocfs2-Abort-if-cluster-information-is-not-detec.patch - Make mount.ocfs2 load ocfs2 kmp and setup cluster_stack if not found + 0008-mount.ocfs2-Read-stack-from-device-and-setup-stack-i.patch - Mark o2cb.ocf as obsolete. Anyone using o2cb.ocf will get an info message stating so. - The nocontrold effort (added nocontrold patches and disabled corosync-2.3 controld compatibility patches): + 0001-libo2cb-Remove-controld-actions-from-group-join-leav.patch + 0002-libo2cb-Remove-rest-of-controld-functions.patch + 0003-Get-cluster-name-from-corosync-cmap.patch + 0004-Remove-controld-structures-from-debugfs.ocfs2.patch + 0005-Check-for-DLM-kernel-version-in-user_begin_group_joi.patch + 0006-Add-cmap-and-dlm-libraries-in-the-tools.patch - 0001-Remove-pacemaker-ais-stuff.patch - 0002-Add-corosync-cfg-to-get-configuration-information.patch - 0003-Remove-daemon-protocol-versions-and-consolidate-fs-v.patch - 0005-Add-cluster_name-and-stack-name.patch - libocfs2-Change-asserts-to-error.patch: Return control to fsck.ocfs2 instead of erring - Add libraries back in devel package. This is required for ocfs2-test - libocfs2-needs-libaio.patch: Add -laio to ocfs2.pc - Fix FS protocol versions: + 0003-Remove-daemon-protocol-versions-and-consolidate-fs-v.patch - 0003-Hard-code-protocol-versions.patch - Get ocfs2_controld up to speed with corosync 2.3.x + 0001-Remove-pacemaker-ais-stuff.patch + 0002-Add-corosync-cfg-to-get-configuration-information.patch + 0003-Hard-code-protocol-versions.patch + 0005-Add-cluster_name-and-stack-name.patch - ocfs2_controld-pacemaker.diff - ocfs2_controld: ocfs2_controld-pacemaker.diff * Replace use of send_ais_text() with send_cluster_text() * Replace use of ais_dispatch() with plugin_dispatch() - ocfs2console-libraries-include-aio.patch: Include aio while compiling ocfs2console (bnc#827504) - Replace NAME= with SYMLINK+= in udev rules (bnc#779718) + use-symlink-in-udev-rules.patch - reduce ocfs2_controld priority to RR(1). (bnc#804707) + bnc804707-reduce-RR-priority.patch - Fix the race between udev making misc device node and ocfs2 opening that device (bnc#805764) + bug-805764-ocfs2-controld.patch - ocfs2_controld: ocfs2_controld-pacemaker.diff -- changes to be compatible with pacemaker >= 1.1.8 - Update config.guess/sub in the coreutils copy - g_list_append.patch: Fix o2cb node listing - Add _service file to automatically pull from git. It can be invoked locally by "osc service disabledrun" - Use spec-cleaner - No need to call ldconfig without shared objects - Drop unneeded %clean section - No need to export CFLAGS, %configure does that. - Also provide ocfs2-support to have clean upgrade path - Drop patches (merged upstream): + fix-pacemaker-libs.patch + support-for-xvd-devices.patch - Reverted tarball to v1.8.2 - Added support-for-xvd-devices.patch: Support for xvd devices - Fixed a couple of rpmlint errors - libdlm requirement - devel package grouping changed - restore-g_list_append.patch is not required for old tarball - Update ocfs2-tools.tar.bz2 to latest upstream for upstream fixes - restore-g_list_append.patch: Fix o2cb node listing - add explicit buildrequire to libbz2-devel - Fix infinite loop while checking for group desc chains (bnc#781122) - Updated to 1.8.2 - o2cluster: change cluster stack stamped on ocfs2 filesystem - added man pages ocfs2, ocfs2.cluster.conf, o2hbmonitor - fsck: faster fsck times because of aio; progress - fix-indexed-dirs.patch: Fix corrupt indexed directories through fsck - Include sys/resource.h for getrlimit etc. - Add ocfs2-tools-kernel33.patch: Fix build with kernel 3.3, which dropped umode_t. - add autoconf as buildrequire to avoid implicit dependency - remove call to suse_update_config (very old work around) - Fix ocfs2_controld build (/usr/include/pacemaker/crm/common/stack.h moved to /usr/include/pacemaker/crm/cluster/stack.h) - Don't use /var/lock/subsys in /etc/init.d/ocfs2 (bnc#714644) - Add -lcrmcommon to fix ocfs2_controld build. - update ocfs2-tools to 1.8.0 - mkfs.ocfs2 enables file system features indexed-dirs, discontig-bg, refcount & extended-slotmap by default. - ocfs2console is no longer built by default. - ocfs2-tools: fsck.ocfs2 and *ctl built dynamically by default - debugfs: Add -T to logdump - mounted.ocfs2: Show cluster and global heartbeat - mount.ocfs2: Validate mount path before mount - mount.ocfs2: Add support for o2cb global heartbeat - tools: Detect differing cluster name and heartbeat modes - mkfs.ocfs2: Add -U option to allow custom UUIDs - mkfs.ocfs2: Add --global-heartbeat option - libo2cb: Validate cluster name and cluster flags in classic_begin_group_join() - o2cb: Add man page - o2cb: Add ops start-heartbeat and stop-heartbeat - o2cb: Add ops register-cluster and unregister-cluster - o2cb: Add ops list-clusters, list-cluster, list-nodes and list-heartbeats - o2cb: Add ops add-heartbeat, remove-heartbeat and heartbeat-mode - o2cb: Add ops add-node and remove-node - o2cb: Add ops add-cluster and remove-cluster - o2cb: Add a new cluster configuration tool - libo2cb: Adds support for global heartbeat - libo2cb: Extend libo2cb api to learn ip address/port/local of a registered node - o2cb_scandisk: Scan heartbeat devices - debugfs.ocfs2: Journal logdump prints full inode and extent blocks - debugfs.ocfs2: Improve block detection - ocfs2-tools: Set hash seed when convert ocfs2 to support indexed-dirs - ocfs2-tools: o2hbmonitor moved to /usr/sbin - add '-q' in %setup of ocfs2-tools.spec, to make build log shorter. (patch written by aj@suse.de) - remove ocfs2-o2cb_ctl-static-glibc.diff, since it is unnecessary to link glib2 statically in ocfs2-o2cb_ctl now. - update ocfs2-tools to 1.6.3 - remove gcc45-ftbfs-deb-565100.patch, the fix is in upstream now. - Make ocfs2-kmp a Recommend instead of a Requires. This allows easier building of packages which in turn depend on ocfs2-tools. - remove ocfs2-kmp dependency, since opensuse kernel does not privide such kmp. - change version string from 1.4.3 to 1.6.0 in ocfs2-tools.spec - remove bug-585080-handle-symbolic-link.patch since it's upstream now. - remove version-1.4.3.patch, update to ocfs2-tools 1.6.0 - remove dx_dirs patch set, since they are upstream now. 0001-dx_dirs-Add-library-support-for-directory-indexing.patch 0002-dx_dirs-debugfs.ocfs2-support.patch 0003-dx_dirs-mkfs.ocfs2-support.patch 0004-dx_dirs-Add-tunefs.ocfs2-feature-for-indexed-directo.patch 0005-dx_dirs-Update-for-dr_num_entries.patch 0006-dx_dirs-add-missing-ocfs2_filesys-fs-parameter.patch 0007-dx_dirs-more-library-support-for-directory-indexing.patch 0008-dx_dirs-fsck.ocfs2-support.patch 0009-dx_dirs-add-blocknr-in-callback-of-ocfs2_dir_iterate.patch 0010-dx_dirs-add-disable-indexed-dirs-support-in-tunefs.o.patch 0011-dx_dirs-build-indexed-trees-when-enabling-indexed-di.patch 0012-dx_dirs-fix-return-value-of-walk_dirblock-when-enabl.patch 0013-dx_dirs-try-to-install-dir-trailers-when-enable-inde.patch 0014-dx_dirs-add-an-initial-man-page-entry-for-indexed-di.patch 0015-fsck.ocfs2-prompt-before-truncating-an-invalid-dir-i.patch 0016-tunefs.ocfs2-move-o2ne_add_tailers-into-libocfs2ne.c.patch 0017-dx_dirs-add-check-for-invalid-slot-in-ocfs2_new_dx_r.patch 0018-mkfs.ocfs2-create-root-and-orphan-directories-as-ind.patch 0019-libocfs2-fix-flag-check-in-ocfs2_init_dir.patch 0020-libocfs2-fix-ocfs2_init_dir-to-retain-indexed-flag.patch 0021-fsck.ocfs2-verify-dirent-dx-entry-linkages.patch 0022-dx_dirs-stop-iterate-dir-entries-for-I-O-error.patch 0023-dx_dirs-check-callback-iter-dx_func-return-value-in-.patch 0024-dx_dirs-remove-unncessary-return-value-assignment.patch 0025-dx_dirs-unifiy-feature-string-of-indexed-dirs.patch 0026-dx_dirs-Improve-information-displayed-by-dump_dx_roo.patch 0027-dx_dirs-stop-iteration-of-dir-trailer-initialization.patch 0028-dx_dirs-stop-dx-insert-iteration-for-callback-error.patch 0029-dx_dirs-set-OCFS2_INDEXED_DIR_FL-after-indexed-tree-.patch 0030-dx_dirs-fix-ocfs2_swap_dx_entry_list-for-big-endian.patch 0031-dx_dirs-enable-metaecc-and-indexed-dirs-support-as-d.patch - Fix mount.ocfs2.c compilation issue on gcc 4.5 (deb#565100) - Fix configure checks for cpg and SaCkpt libraries - ocfs2_controld.pcmk: compilation issue fixed. - fixes for indexed-dirs - 0016-tunefs.ocfs2-move-o2ne_add_tailers-into-libocfs2ne.c.patch - 0017-dx_dirs-add-check-for-invalid-slot-in-ocfs2_new_dx_r.patch - 0018-mkfs.ocfs2-create-root-and-orphan-directories-as-ind.patch - 0019-libocfs2-fix-flag-check-in-ocfs2_init_dir.patch - 0020-libocfs2-fix-ocfs2_init_dir-to-retain-indexed-flag.patch - 0021-fsck.ocfs2-verify-dirent-dx-entry-linkages.patch - 0022-dx_dirs-stop-iterate-dir-entries-for-I-O-error.patch - 0023-dx_dirs-check-callback-iter-dx_func-return-value-in-.patch - 0024-dx_dirs-remove-unncessary-return-value-assignment.patch - 0025-dx_dirs-unifiy-feature-string-of-indexed-dirs.patch - 0026-dx_dirs-Improve-information-displayed-by-dump_dx_roo.patch - 0027-dx_dirs-stop-iteration-of-dir-trailer-initialization.patch - 0028-dx_dirs-stop-dx-insert-iteration-for-callback-error.patch - 0029-dx_dirs-set-OCFS2_INDEXED_DIR_FL-after-indexed-tree-.patch - 0030-dx_dirs-fix-ocfs2_swap_dx_entry_list-for-big-endian.patch - update indexed-dirs patches to v11 patches - a bug fix in fsck.ocfs2/pass2.c - extra check whether the directory trailer overwrites valid directory items. - Add reflink user-space utility to expose the copy-on-write links in OCFS2 for all platforms (bnc#594979). - 0015-dx_dirs-enable-metaecc-and-indexed-dirs-support-as-d.patch: enable metaecc and indexed-dirs support as default features. - ocfs2-tools-static-glib.diff: rename to ocfs2-o2cb_ctl-static-glibc.diff, don't explicitly link pthread anymore. - update ocfs2-tools.tar.bz2 to upstream (0a1c1970): - mkfs.ocfs2: enable xattr support as a default feature - Fsck.ocfs2: Correctly check i_size for directory in a sparse filesystem. - fsck.ocfs2: Freshen up some fsck messages - mkfs.ocfs2: Add dry-run option - mkfs.ocfs2: Allocate groups to the extent allocator - libocfs2: Add ocfs2_grow_chain_allocator() - libocfs2: ocfs2_chain_add_group() adds new groups to the next logical chain - mounted.ocfs2: Add the stack/local to the output - mounted.ocfs2: Display uuid in all caps - mkfs.ocfs2: Tweak the feature compatibility list in manpage - mkfs.ocfs2: Print fs features during make - 0014-dx_dirs-man-page.diff: add an initial man page entry for indexed-dirs feature. - bug-585080-handle-symbolic-link.patch: handle symbolic link device file for tunefs.ocfs2 online resize (bnc#585080) - version-1.4.3.patch: keep package version as 1.4.3 for SLES11 HAE SP1. - 0013-dx_dirs-try-to-install-dir-trailers-when-enable-inde.patch: try to install dir trailers when enable indexed-dirs feature while metaecc features is not enabled. The fix can avoid ocfs2_dx_dir_build() in ocfs2-tools to overwrite existed dir entries lying in trailer area by moving them into other dir blocks. No BNC associated. - update indexed-dirs patches for - remove the metaecc dependence code for indexed dirs. (bnc#584578) - indexed dirs does not depend on metaecc, remove all incorrect dependence code in mkfs.ocfs2 and tunefs.ocfs2 (bnc#585418) - code clean up in mkfs.ocfs2 - back port ocfs2-tools version 1.6 to SP1 ocfs2-tools package. - add 0012-dx_dirs-fix-for-tunefs-metaecc-and-indexed-dirs.patch (bnc#584578) - update indexed dirs patches for fate#300315 - delete 64bytes_lvb_len_in_libo2dlm.diff (bnc#573460) - update indexed dirs patches. - compiling fix - add disable indexed-dirs support in tunefs.ocfs2 (fate#300315) - more fixes for previous indexed-dirs patches - add the first version of indexed dir support (fate#300315) - ocfs2-tools requires openais for the user-space cluster stack. - Fix ocfs2-tools build (bnc#561625). - Add libcorosync-devel build dependency. - 64bytes_lvb_len_in_libo2dlm.diff: use 64 bytes lvb len ((bnc#515645)) - change version number to 1.4.3 - update ocfs2-tools-1.4.3 to SLES11SP1 - bug-543119-o2dlm.patch: load libdlm_lt.so.3 explicitly in o2dlm.c (bnc#543119) - drop bug-543119_0001-Option-to-skip-cluster-checking-in-tunefs.ocfs2.patch since bnc#543119 is a dlopen() issue, and this patch is not accepted by upstream. - Implement a -F/--force option to bypass the cluster stack in tunefs.ocfs2 (bnc#543119). - fix kill_deamon() from o2cb.ocf, now when the deamon to be killed is not running, kill_deamon() will return SUCESS. Thanks to Dejan. - add quota patches from Jan Kara, full support for enabling, disabling and checking quotas. - Update code to upstream 1.4.2, to support xattr and acl in sles11 (bnc#499278), thanks to Goldwyn Rodrigues. - bug-478794-ocfs2_hb_ctl.diff: Fix crash on parsing corrupt file systems (bnc#478794) - debug-ocfs2_hb_ctl.patch: Better error logging. - Fix the logging of calls to crm_terminate_member_no_mainloop() - ocfs2_controld.pcmk crashed immediately on x86-64 (bnc#486104) - ocfs2_controld-retry-470741.diff: removed. - bug-470741_000{1,2,3}-ocfs2_controld.patch: retry most CKPT operations forever, and recover from partially installed checkpoints (bnc#470741). - Use a Pacemaker library function for kicking nodes form the cluster - Add some extra logging for bnc#484028 - Allow debug message to been seen in syslog for bnc#484028 - Adjust packaging split. - tunefs.ocfs2.8.in_more_options.diff: add manual info for -y, -n and --update-cluster-statck options (bnc#478259) - ocfs2_controld-retry-470741.diff: Increase retry count. - Split off legacy O2CB init scripts and binaries into ocfs2-tools-o2cb. - update o2cb.ocf to fix return value format (bnc#474353) - ocfs2console: Whoops, don't reset all warnings, just pop the DISPLAY one. Thanks to Hu Ziming from IBM and Joel Becker from Oracle. - ocfs2console: remove unsupported option when calling tunefs.ocfs2 (bnc#472353) - Re-implement kill_stack_node() to use node attributes instead of stonithd - Reuse more functions from Pacemaker shared libraries - Have the o2cb OCF agent produce extra output if the daemon doesn't come up - Replace Hu Ziming's patch to Jeol Becker's patch for bnc#448523. - fix ocfs2console crashing when DISOPLAY is not correclty set(bnc#448523), thanks to Hu Ziming from IBM. - add ocfs2-kmp (ocfs2 KMP package) into installation dependency(bnc#459437) - ensure o2cb OCF resource agent is executable - add libdlm to ocfs2-tools' dependency (bnc#448751) - Add a quota fixup patch to match up system file names in tools with the kernel. - Add an OCF-style script to allow Pacemaker to reliably manage the ocfs2 modules. The existing LSB-style one is inadequate. - Refresh package to upstream a93731c164d024e0016520a1f4cd8f9007d7c05e - Remove part of the static glib patch as tunefs.ocfs2 no longer uses glib - Combine patches yet to be upstreamed to ease maintenance - Add quota support patches - New patch for ocfs2_controld - make sure stad(err|out|in) are mapped to /dev/null and not left unassigned (which causes issues when logging) - ocfs2console: Allow ocfs2console to enumerate device mapper devices (bnc#414756) - Update for new pacemaker dependancies - Use correct path for ocfs2_controld.* - Package required udev rules - Refresh from upstream 1.4.1 (0ead2f1b45568ca441cb3ed679efbbd7eeb68d98) - Add support for OpenAIS/Pacemaker (userspace cluster stack) integration based on upstream OCFS2 interface - Remove the custom Heartbeat integration - Bugfixes - Made init scripts LSB compliant. - Re-added init script support for userspace heartbeat. - Statically link glib-2.0 with tunefs and o2cb_ctl. - Update to 1.3.9 - Update to 1.2.7 - Add shrinking journal size support - Fix crash in slotmap - Don't append _netdev for local mounts - Add query support for tunefs - Add remove slot features to tunefs - Update to 1.2.6 - Support for file attributes field - Fix for automatically selecting next node number - Multiple fsck fixes - Offline resize - Documentation updates - Don't use kernel headers. - define offsetof locally if it does not come from kernel header - Upgrade to version 1.2.2 to match in-kernel version. - Split-off devel subpackage. - use RPM_OPT_FLAGS - Cleanup BuildRequires. - buildrequire python-gtk-devel instead of python-gtk - Fix compile with new glibc - Update to 1.2.1 to match in-kernel version. - Create /sbin/rcocfs2, rco2cb symlinks (#167261). - Install "ocfs2" init script and enable it (#160724). - Updated to version 1.2.0, per Oracle - Enabled o2cb by default on package install to allow it to shut down when manually started. Otherwise, the system will hang during shutdown. - converted neededforbuild to BuildRequires - Should-Start: iscsi added (from SLES9) (#114733) - don't build as root - Update to version 1.1.3 - SVN 1105 - Fix python defines. - Fix build with different python versions. - Fix package description. - Initial packaging of ocfs2-tools, from SLES9. - Update to version 1.1.1 - SVN 1063 OBS-URL: https://build.opensuse.org/request/show/520604 OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/ocfs2-tools?expand=0&rev=99
2017-09-04 10:40:18 +02:00
%patch502 -p1
%build
export PROJECT="ocfs2-tools"
autoreconf -fi -I /usr/share/aclocal
%configure --disable-debug \
%if 0%{_ocfs2console} == 1
--enable-ocfs2console=yes \
%endif
--enable-dynamic-fsck=yes \
--enable-dynamic-ctl=yes
make OPTS="%{optflags}"
cd reflink
cp ../config.guess ../config.sub coreutils-6.9/build-aux/
%configure
make reflink
cd ..
%install
mkdir -p %{buildroot}/sbin
mkdir -p %{buildroot}%{_prefix}/bin
mkdir -p %{buildroot}%{_fillupdir}
mkdir -p %{buildroot}%{_udevrulesdir}
cp -f vendor/common/51-ocfs2.rules %{buildroot}%{_udevrulesdir}
cp -f vendor/common/o2cb.sysconfig %{buildroot}%{_fillupdir}/sysconfig.o2cb
%if %{systemd_enabled}
mkdir -p %{buildroot}/usr/lib/systemd/system
cp -f vendor/common/o2cb.service %{buildroot}/usr/lib/systemd/system/
cp -f vendor/common/ocfs2.service %{buildroot}/usr/lib/systemd/system/
cp -f vendor/common/o2cb.init %{buildroot}/sbin
cp -f vendor/common/ocfs2.init %{buildroot}/sbin
%else
mkdir -p %{buildroot}%{_sysconfdir}/init.d
cp -f vendor/common/o2cb.init %{buildroot}%{_sysconfdir}/init.d/o2cb
cp -f vendor/common/ocfs2.init %{buildroot}%{_sysconfdir}/init.d/ocfs2
ln -sf ..%{_sysconfdir}/init.d/o2cb %{buildroot}/sbin/rco2cb
ln -sf ..%{_sysconfdir}/init.d/ocfs2 %{buildroot}/sbin/rcocfs2
%endif
make DESTDIR="%{buildroot}" install
cd reflink
make DESTDIR="%{buildroot}" install
cd ..
mv %{buildroot}/{,/usr}/sbin/o2image
mv %{buildroot}/{,/usr}/sbin/debugfs.ocfs2
#mv %{buildroot}/{,/usr}/sbin/ocfs2_controld.pcmk
chmod a-x %{buildroot}/%{_libdir}/libo2cb.a
chmod a-x %{buildroot}/%{_libdir}/libo2dlm.a
chmod a-x %{buildroot}/%{_libdir}/libocfs2.a
%if 0%{_ocfs2console} == 1
python -c "import compileall; compileall.compile_dir('%{buildroot}/%{py_sitedir}/ocfs2interface', ddir='%{py_sitedir}/ocfs2interface')"
%endif
%pre o2cb
%if %{systemd_enabled}
%service_add_pre ocfs2.service o2cb.service
%endif
%preun o2cb
%if %{systemd_enabled}
%service_del_preun ocfs2.service o2cb.service
%else
%stop_on_removal ocfs2
%stop_on_removal o2cb
%endif
%post o2cb
%fillup_only -n o2cb
%if %{systemd_enabled}
%service_add_post ocfs2.service o2cb.service
%endif
%postun o2cb
%if %{systemd_enabled}
%service_del_postun ocfs2.service o2cb.service
%else
%{insserv_cleanup}
%restart_on_update ocfs2
%restart_on_update o2cb
%endif
%files
%defattr(-,root,root)
%doc COPYING CREDITS MAINTAINERS
%doc documentation/users_guide.txt
%dir /usr/lib/udev
%dir %{_udevrulesdir}
/sbin/fsck.ocfs2
/sbin/mkfs.ocfs2
/sbin/mounted.ocfs2
/sbin/tunefs.ocfs2
/sbin/mount.ocfs2
/sbin/ocfs2_hb_ctl
/sbin/o2cluster
%{_sbindir}/o2image
%{_sbindir}/debugfs.ocfs2
%{_sbindir}/o2hbmonitor
%{_bindir}/reflink
%{_bindir}/o2info
%{_udevrulesdir}/51-ocfs2.rules
%{_mandir}/man8/debugfs.ocfs2.8*
%{_mandir}/man8/fsck.ocfs2.8*
%{_mandir}/man8/fsck.ocfs2.checks.8*
%{_mandir}/man8/mkfs.ocfs2.8*
%{_mandir}/man8/tunefs.ocfs2.8*
%{_mandir}/man8/mounted.ocfs2.8*
%{_mandir}/man8/ocfs2_hb_ctl.8*
%{_mandir}/man8/mount.ocfs2.8*
%{_mandir}/man8/o2image.8.gz
%{_mandir}/man8/o2cluster.8.gz
%{_mandir}/man8/o2hbmonitor.8.gz
%{_mandir}/man5/o2cb.sysconfig.5.gz
%{_mandir}/man5/ocfs2.cluster.conf.5.gz
%{_mandir}/man7/ocfs2.7.gz
%{_mandir}/man1/o2info.1.gz
%if 0%{_ocfs2console} == 1
%files -n ocfs2console
%defattr(-,root,root)
%{_sbindir}/ocfs2console
%{py_sitedir}/ocfs2interface
%{_mandir}/man8/ocfs2console.8*
%endif
%files o2cb
%defattr(-,root,root)
%doc README.O2CB
/sbin/o2cb_ctl
/sbin/o2cb
%if %{systemd_enabled}
/sbin/o2cb.init
/sbin/ocfs2.init
/usr/lib/systemd/system/o2cb.service
/usr/lib/systemd/system/ocfs2.service
%else
/sbin/rco2cb
/sbin/rcocfs2
%{_sysconfdir}/init.d/o2cb
%{_sysconfdir}/init.d/ocfs2
%endif
%{_mandir}/man8/o2cb_ctl.8*
%{_fillupdir}/sysconfig.o2cb
%{_mandir}/man7/o2cb.7.gz
%{_mandir}/man8/o2cb.8.gz
%files devel
%defattr(-,root,root)
%{_includedir}/o2cb
%{_includedir}/o2dlm
%{_includedir}/ocfs2
%{_includedir}/ocfs2-kernel
%{_libdir}/pkgconfig/o2cb.pc
%{_libdir}/pkgconfig/o2dlm.pc
%{_libdir}/pkgconfig/ocfs2.pc
%files devel-static
%defattr(-,root,root)
%{_libdir}/libo2cb.a
%{_libdir}/libo2dlm.a
%{_libdir}/libocfs2.a
%changelog