Name: xfsprogs Version: 5.14.1 Release: 15 Summary: Administration and debugging tools for the XFS file system License: GPL+ and LGPLv2+ URL: https://xfs.wiki.kernel.org Source0: http://kernel.org/pub/linux/utils/fs/xfs/xfsprogs/%{name}-%{version}.tar.xz BuildRequires: libtool libattr-devel libuuid-devel gcc gettext inih-devel userspace-rcu-devel BuildRequires: libedit-devel libblkid-devel >= 2.30 lvm2-devel libicu-devel >= 62.0 Requires: libedit Recommends: %{name}-xfs_scrub Provides: xfs-cmds Obsoletes: xfs-cmds <= %{version} Provides: xfsprogs-qa-devel Obsoletes: xfsprogs-qa-devel <= %{version} Conflicts: xfsdump < 3.0.1 Patch0: xfsprogs-5.12.0-default-bigtime-inobtcnt-on.patch Patch1: 0001-xfs-correct-nlink-printf-specifier-from-hd-to-PRIu32.patch Patch2: 0002-libxfs-fix-inode-reservation-space-for-removing-tran.patch Patch3: 0003-mkfs-prevent-corruption-of-passed-in-suboption-strin.patch Patch4: 0004-xfsprogs-Add-sw64-architecture.patch Patch5: 0005-xfs_db-use-preferable-macro-to-seek-offset-for-local.patch Patch6: 0006-mkfs.xfs-disable-inobtcount-feature.patch Patch7: 0007-libxcmd-add-return-value-check-for-dynamic-memory-fu.patch Patch8: 0008-xfs_repair-fix-the-problem-of-repair-failure-caused-.patch Patch9: 0009-mkfs.xfs-fix-segmentation-fault-caused-by-accessing-.patch Patch10: 0010-xfs_repair-fix-warn-in-xfs_buf_find-when-growfs-fails.patch Patch11: 0011-xfs_copy-don-t-use-cached-buffer-reads-until-after-l.patch Patch12: 0012-xfs-sb-verifier-doesn-t-handle-uncached-sb-buffer.patch Patch13: 0013-libxfs-always-initialize-internal-buffer-map.patch Patch14: 0014-libxfs-shut-down-filesystem-if-we-xfs_trans_cancel-w.patch Patch15: 0015-xfs_db-fix-nbits-parameter-in-fa_ino-48-functions.patch Patch16: 0016-xfs_repair-update-secondary-superblocks-after-changi.patch Patch17: 0017-xfs_repair-fix-AG-header-btree-level-comparisons.patch Patch18: 0018-xfs-fix-maxlevels-comparisons-in-the-btree-staging-c.patch Patch19: 0019-xfs-fold-perag-loop-iteration-logic-into-helper-func.patch Patch20: 0020-xfs-rename-the-next_agno-perag-iteration-variable.patch Patch21: 0021-xfs-terminate-perag-iteration-reliably-on-agcount.patch Patch22: 0022-xfs-fix-perag-reference-leak-on-iteration-race-with-.patch Patch23: 0023-mkfs-fix-missing-validation-of-l-size-against-maximu.patch Patch24: 0024-mkfs-reduce-internal-log-size-when-log-stripe-units-.patch Patch25: 0025-mkfs-don-t-let-internal-logs-bump-the-root-dir-inode.patch Patch26: 0026-mkfs-improve-log-extent-validation.patch Patch27: 0027-xfs_repair-detect-v5-featureset-mismatches-in-second.patch Patch28: 0028-xfs_repair-check-the-ftype-of-dot-and-dotdot-directo.patch Patch29: 0029-mkfs-Fix-memory-leak.patch Patch30: 0030-xfs-zero-inode-fork-buffer-at-allocation.patch Patch31: 0031-xfs-detect-self-referencing-btree-sibling-pointers.patch Patch32: 0032-xfs-validate-inode-fork-size-against-fork-format.patch Patch33: 0033-xfs_repair-always-rewrite-secondary-supers-when-need.patch Patch34: 0034-xfs_repair-ignore-empty-xattr-leaf-blocks.patch Patch35: 0035-xfs_repair-Search-for-conflicts-in-inode_tree_ptrs-w.patch Patch36: 0036-mkfs-terminate-getsubopt-arrays-properly.patch Patch37: 0037-mkfs-complain-about-impossible-log-size-constraints.patch Patch38: 0038-xfs-trim-the-mapp-array-accordingly-in-xfs_da_grow_i.patch Patch39: 0039-xfs-fix-exception-caused-by-unexpected-illegal-bestc.patch Patch40: 0040-xfs-increase-rename-inode-reservation.patch Patch41: 0041-xfs-fix-sb-write-verify-for-lazysbcount.patch Patch42: 0042-xfs_repair-don-t-crash-on-unknown-inode-parents-in-d.patch Patch43: 0043-xfs_repair-retain-superblock-buffer-to-avoid-write-h.patch Patch44: 0044-fsck.xfs-mount-umount-xfs-fs-to-replay-log-before-ru.patch Patch45: 0045-xfs_db-fix-dir3-block-magic-check.patch Patch46: 0046-xfs_repair-fix-incorrect-dabtree-hashval-comparison.patch %description xfsprogs are the userspace utilities that manage XFS filesystems. %package xfs_scrub Summary: xfs filesystem online scrubbing utilities Requires: xfsprogs = %{version}-%{release}, python3 %description xfs_scrub xfs_scrub is used for checking and repairing metadata in a mounted XFS filesystem. WARNING!!! This program is EXPERIMENTAL, which means that its behavior and interface could change at any time! xfs_scrub is an immature utility! Do not run this program unless you have backups of your data! %package devel Summary: The header files for XFS filesystem Requires: xfsprogs = %{version}-%{release}, libuuid-devel %description devel It contains the header files for the developing of XFS filesystem. %package help Summary: Including man files for xfsprogs Requires: man BuildArch: noarch %description help This contains man files for the using of xfsprogs. %prep %autosetup -n %{name}-%{version} -p1 %build export tagname=CC %configure --enable-editline=yes --enable-blkid=yes --enable-lto=no make %{?_smp_mflags} %install make DIST_ROOT=%{buildroot} install install-dev \ PKG_ROOT_SBIN_DIR=%{_sbindir} PKG_ROOT_LIB_DIR=%{_libdir} rm -f %{buildroot}{%{_lib}/*.{la,a,so},%{_libdir}/*.{la,a}} rm -rf %{buildroot}%{_datadir}/doc/xfsprogs/ %find_lang %{name} %ldconfig_scriptlets %files -f %{name}.lang %doc doc/CHANGES README %{_libdir}/*.so.* %dir %{_usr}/%{_lib}/xfsprogs %{_usr}/%{_lib}/xfsprogs/* %{_sbindir}/* %{_unitdir}/* %exclude %{_sbindir}/xfs_scrub* %exclude %{_unitdir}/xfs_scrub* %exclude %{_usr}/%{_lib}/xfsprogs/xfs_scrub* %files xfs_scrub %{_sbindir}/xfs_scrub* %{_unitdir}/xfs_scrub* %{_usr}/%{_lib}/xfsprogs/xfs_scrub* %{_mandir}/man8/xfs_scrub* %files devel %dir %{_includedir}/xfs %{_includedir}/xfs/*.h %{_libdir}/*.so %files help %{_mandir}/man*/* %exclude %{_mandir}/man8/xfs_scrub* %changelog * Wed Dec 27 2023 wuguanghao - 5.14.1-15 - backport patches from community * Fri Nov 3 2023 wuguanghao - 5.14.1-14 - xfs_copy: don't use cached buffer reads until after libxfs_mount * Tue Sep 12 2023 wuguanghao - 5.14.1-13 - xfs_repair: fix warn in xfs_buf_find when growfs fails * Sun Sep 3 2023 wuguanghao - 5.14.1-12 - fix segmentation fault in mkfs.xfs * Tue Aug 15 2023 wuguanghao - 5.14.1-11 - fix xfs_repair failure * Sun Jun 25 2023 Weifeng Su - 5.14.1-10 - add return value check for dynamic memory function * Mon Jun 19 2023 wuguanghao - 5.14.1-9 - mkfs.xfs:disable inobtcount feature * Fri Apr 28 2023 Zhiqiang Liu - 5.14.1-8 - readline has been removed by bbe12eb9a0f9 (xfsprogs: remove libreadline support), we can use --enable-editline=yes to enable similar functions. fix issue: https://gitee.com/src-openeuler/xfsprogs/issues/I6Y8SU * Tue Dec 13 2022 Xiaole He - 5.14.1-7 - add Patch5: xfs_db: use preferable macro to seek offset for local dir3 entry fields * Wed Oct 26 2022 wuzx - 5.14.1-6 - Add sw64 architecture * Wed Sep 28 2022 Jun Yang - 5.14.1-5 - add Patch3: prevent corruption of passed-in suboption string values * Thu Aug 18 2022 Xiaole He - 5.14.1-4 - add Patch2: fix inode reservation space for removing transaction * Mon Jul 18 2022 Xiaole He - 5.14.1-3 - add Patch1: correct nlink printf specifier from hd to PRIu32 * Fri Jun 10 2022 xiongyu - 5.14.1-2 - turn bigtime & inobtcnt on as default * Mon Dec 6 2021 yanglongkang - 5.14.1-1 - update package to 5.14.1 * Fri Jul 30 2021 chenyanpanHW - 5.9.0-3 - DESC: delete -S git from %autosetup, and delete BuildRequires git * Tue Jun 29 2021 zhouwenpei - 5.9.0-2 - add buildrequire gettext. * Sat Jan 30 2021 yanglongkang - 5.9.0-1 - update xfsprogs version to 5.9.0 * Wed Dec 2 2020 lixiaokeng - 5.6.0-3 - backport patch from epoch2 * Wed Nov 25 2020 haowenchao - 5.6.0-2 - Split xfsprogs-xfs_scrub and the xfsprogs recommends it. * Thu Jul 16 2020 wuguanghao - 5.6.0-1 - update xfsprogs version to 5.6.0-1 * Wed Aug 28 2019 zhanghaibo - 4.17.0-5 - Type:enhancemnet - ID:NA - SUG:NA - DESCi:openEuler Debranding * Mon Aug 12 2019 zhanghaibo - 4.17.0-4 - Package init