63 Commits

Author SHA1 Message Date
Hans-Peter Jansen
2aed7a66fb Switch to %autosetup in order to build with older rpm build 2024-04-03 11:45:33 +02:00
scm-staging-bot
bc2bb3b8f7 Merge pull request 'xfsprogs: update to v6.6.0' (#8) from ailiopoulos/xfsprogs:factory into factory 2024-02-15 20:58:46 +01:00
Anthony Iliopoulos
71e4345540 xfsprogs: update to v6.6.0
Signed-off-by: Anthony Iliopoulos <ailiop@suse.com>
2024-02-05 16:03:20 +01:00
scm-staging-bot
dd9e63dbe2 Merge pull request 'xfsprogs: update to v6.5.0' (#5) from ailiopoulos/xfsprogs:factory into factory 2023-12-08 22:31:23 +01:00
Anthony Iliopoulos
5d9e4f974c xfsprogs: update to v6.5.0
Signed-off-by: Anthony Iliopoulos <ailiop@suse.com>
2023-10-15 10:42:42 +02:00
69404bdd1d reset to rev=94a6a3ac0922a7ad58d1800f19097b16 from filesystems 2023-08-24 16:07:16 +02:00
486e93189f Accepting request 1088453 from filesystems
OBS-URL: https://build.opensuse.org/request/show/1088453
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=79
2023-05-24 18:21:33 +00:00
dfda309265 Accepting request 1074472 from filesystems
OBS-URL: https://build.opensuse.org/request/show/1074472
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=78
2023-03-28 15:48:37 +00:00
2fd1b4557f Accepting request 1059370 from filesystems
OBS-URL: https://build.opensuse.org/request/show/1059370
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=77
2023-01-20 16:37:19 +00:00
bb34c60feb Accepting request 1055972 from filesystems
OBS-URL: https://build.opensuse.org/request/show/1055972
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=76
2023-01-05 14:00:23 +00:00
754d060bfe Accepting request 1036203 from filesystems
OBS-URL: https://build.opensuse.org/request/show/1036203
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=75
2022-11-17 16:23:50 +00:00
731b864716 Accepting request 994939 from filesystems
OBS-URL: https://build.opensuse.org/request/show/994939
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=74
2022-08-16 15:06:47 +00:00
83ebd934ff Accepting request 976489 from filesystems
OBS-URL: https://build.opensuse.org/request/show/976489
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=73
2022-05-14 20:52:04 +00:00
f6a63b7415 Accepting request 973096 from filesystems
OBS-URL: https://build.opensuse.org/request/show/973096
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=72
2022-04-29 22:44:36 +00:00
b1e684a02a Accepting request 940797 from filesystems
- update to 5.14.2:
  - libxfs: move rogue fallthrough macro out of linux.h
  - libxfs: fix atomic64_t for 32-bit architectures
  - libfrog: fix crc32c self test code on cross builds (forwarded request 940792 from dirkmueller)

OBS-URL: https://build.opensuse.org/request/show/940797
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=71
2021-12-18 19:29:37 +00:00
ae1ce8bc59 Accepting request 932583 from filesystems
OBS-URL: https://build.opensuse.org/request/show/932583
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=70
2021-11-22 22:03:53 +00:00
d89ba908e1 Accepting request 924642 from filesystems
OBS-URL: https://build.opensuse.org/request/show/924642
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=69
2021-10-12 19:48:38 +00:00
7a9ec87dd0 Accepting request 913873 from filesystems
OBS-URL: https://build.opensuse.org/request/show/913873
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=68
2021-08-26 21:14:10 +00:00
015b717910 Accepting request 895850 from filesystems
OBS-URL: https://build.opensuse.org/request/show/895850
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=67
2021-06-01 08:33:17 +00:00
Richard Brown
4de7e02b09 Accepting request 878893 from filesystems
- update to v5.11.0:
  - xfs_admin: don't hide xfs_repair output when upgrading
  - man: document attr2, ikeep option deprecation in xfs.5
  - mkfs: make use of xfs_validate_stripe_geometry()
  - mkfs: fix wrong inobtcount usage error output
  - xfs_repair: enable bigtime upgrade via repair
  - xfs_repair: enable inobtcount upgrade via repair
  - xfs_repair: set NEEDSREPAIR on first write
  - xfs_repair: clear the needsrepair flag when done
  - xfs_repair: check dquot id and type
  - xfs_fsr: Verify bulkstat version in qsort's cmp()
  - xfs_fsr: Interpret args of qsort's cmp() correctly
  - xfs_scrub: load and unload libicu properly
  - xfs_scrub: various fixes
  - xfs_admin: support adding features to V5 filesystems
  - xfs_admin: support filesystems with realtime devices
  - man: mark all deprecated V4 format options
  - misc: fix valgrind complaints
  - xfs_db: disallow label/uuid setting if NEEDSREPAIR
  - xfs_db: show NEEDSREPAIR in check & version commands
  - xfs_db: add an ls command
  - xfs_db: add a directory path lookup command
  - libxfs changes merged from kernel 5.11

OBS-URL: https://build.opensuse.org/request/show/878893
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=66
2021-03-16 14:42:24 +00:00
6212c9f488 Accepting request 865368 from filesystems
OBS-URL: https://build.opensuse.org/request/show/865368
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=65
2021-01-25 17:22:57 +00:00
f86518e4d5 Accepting request 843016 from filesystems
OBS-URL: https://build.opensuse.org/request/show/843016
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=64
2020-10-24 13:13:51 +00:00
516d4b6371 Accepting request 832834 from filesystems
OBS-URL: https://build.opensuse.org/request/show/832834
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=63
2020-09-10 20:45:32 +00:00
d14a105b66 Accepting request 827896 from filesystems
- Fixes for %_libexecdir changing to /usr/libexec (bsc#1174075) (forwarded request 827894 from gmbr3)

OBS-URL: https://build.opensuse.org/request/show/827896
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=62
2020-08-21 17:01:15 +00:00
b7bf146258 Accepting request 823128 from filesystems
OBS-URL: https://build.opensuse.org/request/show/823128
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=61
2020-07-31 13:52:32 +00:00
72f1243d4d Accepting request 794397 from filesystems
- update to v5.6.0:
  * xfs_scrub: don't set WorkingDirectory in systemd job
  * xfsprogs: fix silently broken option parsing
  * xfsprogs: various minor Coverity fixes
  * xfs_repair: fix dir_read_buf use of libxfs_da_read_buf
  * libxfs: check retval of device flush when closing
  * xfs_io: set exitcode on failure appropriately
  * libxfs changes merged from kernel 5.6 (forwarded request 794385 from ailiopoulos)

OBS-URL: https://build.opensuse.org/request/show/794397
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=60
2020-04-17 22:27:43 +00:00
23459447de Accepting request 784964 from filesystems
OBS-URL: https://build.opensuse.org/request/show/784964
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=59
2020-03-18 11:22:01 +00:00
6427ba0c6d Accepting request 764773 from filesystems
OBS-URL: https://build.opensuse.org/request/show/764773
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=58
2020-02-29 20:21:11 +00:00
9b4c96bfa8 Accepting request 700875 from filesystems
OBS-URL: https://build.opensuse.org/request/show/700875
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=57
2019-05-06 19:14:57 +00:00
e6c67d69f5 Accepting request 681638 from filesystems
OBS-URL: https://build.opensuse.org/request/show/681638
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=56
2019-03-08 12:29:33 +00:00
d3fcaad6ed Accepting request 650230 from filesystems
OBS-URL: https://build.opensuse.org/request/show/650230
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=55
2018-11-20 21:31:41 +00:00
92ffad4eeb Accepting request 643281 from filesystems
- Update to v4.18.0
  * xfs_repair: notify user if free inodes are corrupt
  * xfs_repair: use extent size validation helpers
  * xfs_quota: don't stop the directory tree walk at DEPTH 
  * xfs_scrub: ongoing updates 
  * xfs_io: document shutdown -f 
  * xfs_io: wire up online repair ioctls 
  * misc: adddebian initramfs hook to package 
  * misc: remove unused macros 
  * misc: remove many XFS_BUF macros 
  * Majority of 4.18 libxfs changes merged from kernel
- Update to v4.17.0
  * mkfs.xfs: only stat block devices during mkfs init 
  * xfs_repair: multiple fixes and improvements 
  * xfs_repair: check and repair quota metadata 
  * xfs_repair: fix shortform root inode parent 
  * xfs_db: don't ASSERT on unrecognized metadata 
  * xfs_db: add superblock info command ala xfs_info 
  * xfs_spaceman: add superblock info command ala xfs_info 
  * xfs_info: call xfs_db for unmounted devices 
  * xfs_io: add online label command 
  * xfs_io: add O_PATH and O_NOFOLLOW options 
  * xfs_io: recognize *iB units in copy_range 
- Removed now-obsolete patches:
  * xfsprogs-mkfs-avoid-divide-by-zero-when-hardware-reports-opti.patch

OBS-URL: https://build.opensuse.org/request/show/643281
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=54
2018-11-06 12:48:46 +00:00
631307a55f Accepting request 634927 from filesystems
OBS-URL: https://build.opensuse.org/request/show/634927
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=53
2018-09-18 09:36:08 +00:00
36bc67d23e Accepting request 621763 from filesystems
OBS-URL: https://build.opensuse.org/request/show/621763
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=52
2018-07-13 08:17:36 +00:00
73f85e5df4 Accepting request 599764 from filesystems
OBS-URL: https://build.opensuse.org/request/show/599764
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=51
2018-04-26 11:34:40 +00:00
8a5dd6eaf0 Accepting request 584277 from filesystems
OBS-URL: https://build.opensuse.org/request/show/584277
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=50
2018-03-12 11:07:58 +00:00
627f9ccd4b Accepting request 573733 from filesystems
- xfs_io: fix copy_file_range symbol name collision (bsc#1079756).
- Added xfs_io-fix-copy_file_range-symbol-name-collision.patch

OBS-URL: https://build.opensuse.org/request/show/573733
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=49
2018-02-14 08:18:39 +00:00
1a8f02b2d8 Accepting request 559128 from filesystems
OBS-URL: https://build.opensuse.org/request/show/559128
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=48
2017-12-23 11:11:34 +00:00
a5a209c0ee Accepting request 542713 from filesystems
- Fix building on SLE11
- Added xfs_io-stat-fix-typo-in-statfs-f_flags.patch
- Added xfs_io-stat-treat-statfs.f_flags-as-optional.patch

- Update to 4.13.1
  * mkfs: don't overflow the subopts array
- Update to 4.13.0
  * xfs_repair: handle missing extent states
  * mkfs: pass a custom cowextsize into the created filesystem
  * xfs_db: version command misses RMAPBT feature string
  * xfs_repair: don't use do_warn for normal log message
  * libxfs: remove getcwd/chdir dance from initialization
  * xfs_repair: take the ag_lock before recording rmap for a bmbt record
  * mkfs.xfs: Don't stagger AG for a single disk
  * xfs: fix inobt inode allocation search optimization
  * xfs_io: clarify the fsmap documentation
  * fiemap: Fix semantics of max_extents (-n arguments)
  * xfs_repair: fix thread creation failure recovery
  * xfs_repair: add prefetch trace calls to debug thread creation failures
  * xfs_repair: clear pthread_t when pthread_create fails
  * xfs_io: add seek consistency checks
  * fsr: fix uninitialized fs usage after timeout
  * xfs_db: bit fuzzing should read the right bit when flipping
  * xfs_db: make write/fuzz -c and -d work on non-crc filesystems
  * xfs_db: free field list when failing out of fuzz
  * xfs_db: reset metadump output flag
  * xfs_db: btdump should avoid eval for push and pop of cursor
  * xfs_db: use TYP_F_CRC_FUNC for inodes & dquots
  * xfs_db: introduce fuzz command
  * xfs_db: write values into dir/attr blocks and recalculate CRCs

OBS-URL: https://build.opensuse.org/request/show/542713
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=47
2017-11-21 14:22:37 +00:00
9d23c76660 Accepting request 519931 from filesystems
1

OBS-URL: https://build.opensuse.org/request/show/519931
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=46
2017-09-07 20:08:30 +00:00
a08027c7ea Accepting request 505785 from filesystems
* Added xfs_repair-clear-pthread_t-when-pthread_create-fails.patch
  * Added xfs_repair-fix-thread-creation-failure-recovery.patch (forwarded request 505784 from jeff_mahoney)

OBS-URL: https://build.opensuse.org/request/show/505785
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=45
2017-06-30 16:38:12 +00:00
30eaf4e6e1 Accepting request 497831 from filesystems
1

OBS-URL: https://build.opensuse.org/request/show/497831
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=44
2017-06-10 15:50:09 +00:00
9f28f13994 Accepting request 381336 from filesystems
1

OBS-URL: https://build.opensuse.org/request/show/381336
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=43
2016-03-31 11:02:01 +00:00
e4e8df0c7d Accepting request 351851 from filesystems
1

OBS-URL: https://build.opensuse.org/request/show/351851
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=42
2016-01-05 20:53:41 +00:00
41dd865d88 Accepting request 346455 from filesystems
1

OBS-URL: https://build.opensuse.org/request/show/346455
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=41
2015-12-09 19:33:05 +00:00
Stephan Kulow
c9de12c1d0 Accepting request 345121 from filesystems
1

OBS-URL: https://build.opensuse.org/request/show/345121
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=40
2015-11-24 21:30:17 +00:00
Stephan Kulow
c34e9f3b1d Accepting request 319750 from filesystems
1

OBS-URL: https://build.opensuse.org/request/show/319750
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=39
2015-08-05 04:48:46 +00:00
Stephan Kulow
ae0db67d44 Accepting request 316370 from filesystems
1

OBS-URL: https://build.opensuse.org/request/show/316370
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=38
2015-07-16 15:16:09 +00:00
f7155207ab Accepting request 291599 from filesystems
1

OBS-URL: https://build.opensuse.org/request/show/291599
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=37
2015-03-23 11:15:32 +00:00
3deed83eb8 Accepting request 264765 from filesystems
1

OBS-URL: https://build.opensuse.org/request/show/264765
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=36
2014-12-16 13:50:49 +00:00
Stephan Kulow
c45a14be29 Accepting request 241872 from filesystems
1

OBS-URL: https://build.opensuse.org/request/show/241872
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=34
2014-07-23 20:06:08 +00:00
Stephan Kulow
84bcd5372b Accepting request 234729 from filesystems
- Updated to 3.2.0
  - xfs_repair has full CRC validation and repair
  - xfs_repair prefetch fix
  - xfs_repair block tracking scalability fix
  - disambiguous of CRC validation errors from IO errors.
  - Improved dangerous mode handling in repair
  - repair handles garbage in zeroed areas of superblocks better
  - repair validates dirent ftype field fully
  - metadump fully supports discontiguous directory blocks
  - metadump only recalculates CRCs on metadata it obfuscates so as to
    preserve errors in the metadata where possible.
  - default log size that mkfs creates is now reverted to the same size
    as 3.1.x releases create.
  - mkfs sets the ftype on directory entries correctly during protofile
    population
  - xfs_io support O_TMPFILE, flink, FALLOC_FL_ZERO_RANGE and
    FALLOC_FL_COLLAPSE_RANGE,
  - logprint handles split entries better
  - Enable xfs_db write support and xfs_metadump support for CRC
    enabled filesystems.
  - Add directory entry filetype support for non-CRC filesystems.
  - Ensure all inodes created by xfs_repair have a proper d_type set.
  - Fix build on big endian machines.
  - Properly handle symlinks to devices on various tool commandlines.
  - Fix xfs_repair's dirty log detection for 4k sector logs, broken
    in Alpha1.
  - Fix a potential segfault in xfs_repair when issuing progress
    reports.
  - Fix potential xfs_fsr failures when running w/ selinux.
  - Stop wasting memory by caching inode structures in xfs_repair - (forwarded request 234728 from jeff_mahoney)

OBS-URL: https://build.opensuse.org/request/show/234729
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=33
2014-05-23 06:05:17 +00:00
Stephan Kulow
685844c63e Accepting request 175786 from filesystems
- Added patch xfsprogs-avoid-no-return-in-nonvoid-warning.diff to silence
  (bogus) compiler warnings. (forwarded request 175785 from jankara)

OBS-URL: https://build.opensuse.org/request/show/175786
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=31
2013-05-16 14:25:33 +00:00
Stephan Kulow
82cf4f3139 Accepting request 137790 from filesystems
- Build with readline support; (bnc#783510). (forwarded request 137016 from dmdiss)

OBS-URL: https://build.opensuse.org/request/show/137790
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=29
2012-10-11 09:34:52 +00:00
Stephan Kulow
84dd00b7f8 Accepting request 123354 from filesystems
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/123354
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=27
2012-06-05 13:36:28 +00:00
Stephan Kulow
49296e72ab Accepting request 121283 from filesystems
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/121283
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=26
2012-05-21 05:33:22 +00:00
Stephan Kulow
7d1b06f645 Accepting request 109532 from filesystems
- no need to link the lib in /lib (forwarded request 109525 from coolo)

OBS-URL: https://build.opensuse.org/request/show/109532
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=25
2012-03-16 12:27:48 +00:00
Stephan Kulow
a00b8b10ba Accepting request 105235 from filesystems
- use %configure

- move libs and executables to /usr tree (UsrMerge project)

OBS-URL: https://build.opensuse.org/request/show/105235
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=24
2012-02-23 14:35:05 +00:00
Stephan Kulow
6958ba24a2 replace license with spdx.org variant
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=23
2011-12-06 18:15:48 +00:00
Lars Vogdt
f7718644a2 Accepting request 87957 from filesystems
- updated to 3.1.6
  - Re-synch of the header and libxfs files with the kernel
    code as of Linux 2.6.37, including reviving xfs_repair
    radix tree code.
  - Fix a xfs_repair phase 4 hang, thanks to Ajeet Yadav.
  - Subcommand names within various programs are no longer
    translated/localized, thanks to Arkadiusz Mi?kiewicz.
  - Build system fixes, thanks to Ted Ts'o.
  - Updates to teh xfs_info(8)/xfs_growfs(8) man page, thanks
    to Roman Ovchinnikov.
  - xfs_quota "df" no longer reports values twice what they
    should have been for project quotas.
  - mkfs.xfs now requires that sub-options are non-empty
    strings; thanks to Chris Pearson for reporting.
  - Better handling of short reads in libxfs.
  - xfs_quota now prints "N/A" rather than a large number for
    the quota file inode number for disabled quota types.
  - Bogus (unrelated) mount point entries no longer cause
    xfs_growfs, xfs_quota, and xfs_io to quit early.
  - xfs_repair no longer fails when the sector size of an
    underlying device is larger than the sector size in a
    hosted filesystem image.
  - Various other internal improvements, including refactoring
    and eliminating more build warnings. (forwarded request 87879 from dsterba)

OBS-URL: https://build.opensuse.org/request/show/87957
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=21
2011-10-16 11:02:24 +00:00
Ruediger Oertel
7219f847e0 Accepting request 56605 from filesystems
Accepted submit request 56605 from user dirkmueller

OBS-URL: https://build.opensuse.org/request/show/56605
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=19
2010-12-28 23:35:57 +00:00
OBS User autobuild
2286703d2f Accepting request 42726 from filesystems
Copy from filesystems/xfsprogs based on submit request 42726 from user dirkmueller

OBS-URL: https://build.opensuse.org/request/show/42726
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=18
2010-07-19 12:33:03 +00:00
OBS User autobuild
f3940e5740 Accepting request 35275 from filesystems
Copy from filesystems/xfsprogs based on submit request 35275 from user coolo

OBS-URL: https://build.opensuse.org/request/show/35275
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfsprogs?expand=0&rev=15
2010-03-19 08:26:05 +00:00
7 changed files with 76 additions and 299 deletions

View File

@@ -1,280 +0,0 @@
From e2239ef552a48edd33740fec8a005a7ac12dcc80 Mon Sep 17 00:00:00 2001
From: Jeffrey Mahoney <jeffm@suse.com>
Date: Tue, 21 Aug 2018 13:41:20 -0400
Subject: [PATCH] repair: shift inode back into place if corrupted by bad log
replay
References: bsc#1105396
SUSE kernels 3.12.74-60.64.40 through 3.12.74-60.64.99 contained
a regression where xfs_icdinode_t modified di_dmstate to be
an atomic_t. Since we only complain if an inode item is too large,
if a kernel with this patch applied mounted a file system with inode
items in the log formatted by a kernel without this patch, they would
be used but would be interpreted using the structure with the atomic_t.
As a result, the inode would be copied incorrectly, corrupting di_dmstate
and the members that follow it.
For v3 inodes, we can detect that the UUID is shifted forward
8 bytes and recover di_uuid, di_ino, di_crtime, di_pad2, di_cowextsize,
di_flags2, and di_lsn. The UUID and inode number being incorrect
will trip the verifier on iread, but it will have been flushed from the
log in a broken state.
di_changecount is lost entirely since half is overwritten by the CRC
being updated and the other half fell in a hole in the structure.
di_flags is lost entirely since it is overwritten by the half of
the generation number. Half of the generation number is lost since
it falls in a hole in the structure.
For v2 inodes, the corruption is more limited but impossible to
detect beyond invalid flags being in use.
Without this fix, xfs_repair will clear the affected inodes, causing
big problems.
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
---
repair/dinode.c | 186 ++++++++++++++++++++++++++++++++++++++++++++++--
1 file changed, 180 insertions(+), 6 deletions(-)
diff --git a/repair/dinode.c b/repair/dinode.c
index 8ea919698d14..81238568ac8e 100644
--- a/repair/dinode.c
+++ b/repair/dinode.c
@@ -2239,6 +2239,160 @@ _("Bad extent size hint %u on inode %" PRIu64 ", "),
}
}
+static int
+check_shifted_uuid(struct xfs_dinode *dino, xfs_mount_t *mp)
+{
+ uint64_t tmp64;
+ char tmpuuid[16];
+ uuid_t uuid;
+
+ tmp64 = be64_to_cpu(dino->di_ino);
+ memcpy(tmpuuid, &tmp64, sizeof(tmp64));
+ memcpy(tmpuuid + 8, &dino->di_uuid, 8);
+ memcpy(uuid, tmpuuid, 16);
+
+ return !platform_uuid_compare(&uuid, &mp->m_sb.sb_meta_uuid);
+}
+
+/*
+ * There was a kernel that would use incorrectly-formatted log items.
+ * If it recovered a dirty log, corrupted inodes would result.
+ * 12 bytes of the inode are completely unrecoverable. Those are
+ * documented below.
+ */
+static void
+repair_inode_with_bad_atomic(struct xfs_dinode *dino, xfs_mount_t *mp)
+{
+ struct xfs_dinode fixed;
+ struct xfs_legacy_timestamp *lts;
+ uint64_t tmp64;
+ uint32_t tmp32;
+ char tmpuuid[16];
+ char *tmpptr;
+
+ uuid_t uuid;
+
+ tmp64 = be64_to_cpu(dino->di_ino);
+ memcpy(tmpuuid, &tmp64, sizeof(tmp64));
+ tmpptr = (char *)dino->di_uuid;
+ memcpy(tmpuuid + 8, tmpptr, 8);
+ memcpy(uuid, tmpuuid, 16);
+
+ memcpy(&fixed, dino, sizeof(fixed));
+ memcpy(&fixed.di_uuid, uuid, sizeof(uuid));
+
+ tmp32 = *(uint32_t *)&dino->di_pad2[4];
+ lts = (struct xfs_legacy_timestamp *)&(fixed.di_crtime);
+ lts->t_sec = cpu_to_be32(tmp32);
+ tmp32 = *(uint32_t *)&dino->di_pad2[8];
+ lts->t_nsec = cpu_to_be32(tmp32);
+
+ tmp64 = be32_to_cpu(((struct xfs_legacy_timestamp *)(&(dino->di_crtime)))->t_nsec);
+ tmp64 <<= 32;
+ tmp64 |= be32_to_cpu(((struct xfs_legacy_timestamp *)(&(dino->di_crtime)))->t_sec);
+ fixed.di_ino = cpu_to_be64(tmp64);
+
+ tmp64 = be64_to_cpu(fixed.di_ino);
+
+ memcpy(fixed.di_pad2 + 8, dino->di_pad2, 4);
+
+ tmp32 = be32_to_cpu(dino->di_cowextsize);
+ memcpy(fixed.di_pad2 + 4, &tmp32, 4);
+
+ tmp64 = be64_to_cpu(dino->di_flags2);
+ tmp32 = tmp64 >> 32;
+ memcpy(fixed.di_pad2, &tmp32, 4);
+
+ fixed.di_cowextsize = cpu_to_be32(tmp64);
+ fixed.di_flags2 = dino->di_lsn;
+ fixed.di_lsn = dino->di_changecount;
+
+ /*
+ * This is lost entirely. Half falls in padding and half
+ * is overwritten by the CRC.
+ */
+ fixed.di_changecount = 0;
+
+#if __BYTE_ORDER == __LITTLE_ENDIAN
+ /*
+ * Half of the generation number is lost, but it's the high bits.
+ * Pick a high number and hope for the best.
+ */
+ tmp32 = 0xff000000;
+ tmp32 |= be16_to_cpu(dino->di_flags);
+ fixed.di_gen = cpu_to_be32(tmp32);
+#else
+ /*
+ * Half of the generation number is lost, but it's the low bits,
+ * so we can fake it.
+ */
+ tmp32 = be16_to_cpu(dino->di_flags) + 1;
+ tmp32 <<= 16;
+ fixed.di_gen = cpu_to_be32(tmp32);
+#endif
+
+ /*
+ * The flags are lost since the atomic_t was 32-bit and we
+ * only keep 16.
+ */
+ fixed.di_flags = 0;
+
+ memcpy(dino, &fixed, sizeof(*dino));
+ xfs_dinode_calc_crc(mp, dino);
+}
+
+static int
+process_dinode_int(xfs_mount_t *mp, struct xfs_dinode *dino, xfs_agnumber_t agno,
+ xfs_agino_t ino, int was_free, int *dirty, int *used,
+ int verify_mode, int uncertain, int ino_discovery,
+ int check_dups, int extra_attr_check, int *isa_dir,
+ xfs_ino_t *parent, int recurse);
+
+static int
+handle_malformed_inode(xfs_mount_t *mp, struct xfs_dinode *dino,
+ xfs_agnumber_t agno, xfs_agino_t ino, int was_free,
+ int *dirty, int *used, int verify_mode, int uncertain,
+ int ino_discovery, int check_dups, int extra_attr_check,
+ int *isa_dir, xfs_ino_t *parent)
+{
+ struct xfs_dinode save;
+ int retval;
+ xfs_ino_t lino = XFS_AGINO_TO_INO(mp, agno, ino);
+
+ if (!uncertain)
+ do_warn(_("malformed inode %" PRIu64 " found%c"),
+ lino, verify_mode ? '\n' : ',');
+
+ /*
+ * We can't just pass a local copy to verify since we need the
+ * data fork to check directories.
+ */
+ if (verify_mode || no_modify)
+ memcpy(&save, dino, sizeof(*dino));
+
+ repair_inode_with_bad_atomic(dino, mp);
+ retval = process_dinode_int(mp, dino, agno, ino, was_free, dirty,
+ used, verify_mode, uncertain, ino_discovery,
+ check_dups, extra_attr_check,
+ isa_dir, parent, 1);
+
+ if (verify_mode || no_modify) {
+ memcpy(dino, &save, sizeof(*dino));
+ *dirty = 0;
+ }
+
+ if (retval == 0 && !verify_mode) {
+ if (no_modify)
+ do_warn(_(" would repair\n"));
+ else {
+ do_warn(_(" repairing\n"));
+ *dirty = 1;
+ }
+ }
+
+ return retval;
+}
+
/*
* returns 0 if the inode is ok, 1 if the inode is corrupt
* check_dups can be set to 1 *only* when called by the
@@ -2263,7 +2417,8 @@ process_dinode_int(xfs_mount_t *mp,
* duplicate blocks */
int extra_attr_check, /* 1 == do attribute format and value checks */
int *isa_dir, /* out == 1 if inode is a directory */
- xfs_ino_t *parent) /* out -- parent if ino is a dir */
+ xfs_ino_t *parent, /* out -- parent if ino is a dir */
+ int recurse)
{
xfs_rfsblock_t totblocks = 0;
xfs_rfsblock_t atotblocks = 0;
@@ -2379,6 +2534,25 @@ process_dinode_int(xfs_mount_t *mp,
* memory and hence invalidated the CRC.
*/
if (xfs_has_crc(mp)) {
+ int good_uuid = 1;
+
+ if (platform_uuid_compare(&dino->di_uuid,
+ &mp->m_sb.sb_meta_uuid))
+ good_uuid = 0;
+
+ /*
+ * Only check to see if it's a malformed inode if it has
+ * a valid magic, crc, and version and an invalid uuid.
+ */
+ if (!good_uuid && !retval && !recurse &&
+ check_shifted_uuid(dino, mp))
+ return handle_malformed_inode(mp, dino, agno, ino,
+ was_free, dirty, used,
+ verify_mode, uncertain,
+ ino_discovery, check_dups,
+ extra_attr_check,
+ isa_dir, parent);
+
if (be64_to_cpu(dino->di_ino) != lino) {
if (!uncertain)
do_warn(
@@ -2389,8 +2563,7 @@ _("inode identifier %llu mismatch on inode %" PRIu64 "\n"),
return 1;
goto clear_bad_out;
}
- if (platform_uuid_compare(&dino->di_uuid,
- &mp->m_sb.sb_meta_uuid)) {
+ if (!good_uuid) {
if (!uncertain)
do_warn(
_("UUID mismatch on inode %" PRIu64 "\n"), lino);
@@ -2952,7 +3125,8 @@ process_dinode(
#endif
return process_dinode_int(mp, dino, agno, ino, was_free, dirty, used,
verify_mode, uncertain, ino_discovery,
- check_dups, extra_attr_check, isa_dir, parent);
+ check_dups, extra_attr_check, isa_dir, parent,
+ 0);
}
/*
@@ -2979,7 +3153,7 @@ verify_dinode(
return process_dinode_int(mp, dino, agno, ino, 0, &dirty, &used,
verify_mode, uncertain, ino_discovery,
- check_dups, 0, &isa_dir, &parent);
+ check_dups, 0, &isa_dir, &parent, 0);
}
/*
@@ -3005,5 +3179,5 @@ verify_uncertain_dinode(
return process_dinode_int(mp, dino, agno, ino, 0, &dirty, &used,
verify_mode, uncertain, ino_discovery,
- check_dups, 0, &isa_dir, &parent);
+ check_dups, 0, &isa_dir, &parent, 0);
}
--
2.36.1

View File

@@ -1,7 +0,0 @@
-----BEGIN PGP SIGNATURE-----
iIQEABYIAC0WIQT6QG4gav94c4l8aGS0VhjDaiT9IwUCZGs+kg8cY2VtQGtlcm5l
bC5vcmcACgkQtFYYw2ok/SO6wgEAgMdBBcJsx/oEPKLXGZr+ueGZ81K7hGq8ueFF
sXp69AEA+PiK4Bh/angpo2lhftgZhGaOHxmj8vIyH2jJSw53LgE=
=+kzW
-----END PGP SIGNATURE-----

BIN
xfsprogs-6.3.0.tar.xz (Stored with Git LFS)

Binary file not shown.

7
xfsprogs-6.6.0.tar.sign Normal file
View File

@@ -0,0 +1,7 @@
-----BEGIN PGP SIGNATURE-----
iIUEABYKAC0WIQT6QG4gav94c4l8aGS0VhjDaiT9IwUCZcDcMw8cY2VtQGtlcm5l
bC5vcmcACgkQtFYYw2ok/SNjQwEA03B+ENtZ0EDlsfhgJX4fanP2lAblmPJBz0Bv
LxwbDHoBANmmilAwAdkXnB66Ub6A70bZaOKN4e25OfKnyNxx3Y8K
=AUAu
-----END PGP SIGNATURE-----

BIN
xfsprogs-6.6.0.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -1,3 +1,63 @@
-------------------------------------------------------------------
Wed Apr 3 09:27:56 UTC 2024 - Hans-Peter Jansen <hpj@urpla.net>
- Switch to %autosetup in order to build with older rpm build
-------------------------------------------------------------------
Mon Feb 5 14:40:20 UTC 2024 - Anthony Iliopoulos <ailiop@suse.com>
- update to 6.6.0
- xfs_scrub: add missing license and copyright information
- xfs_db: report the device associated with each io cursor
- libxfs: Fix UAF in a requeued EFI
- xfs_io: Add new option, to exercise log2_data_unit_size in kernel fscrypt_policy_v2
- xfs_db: Add upport to read from external log device
- metadump: New metadump format
- xfs_quota: fix missing mount point warning
-------------------------------------------------------------------
Fri Oct 13 14:45:05 UTC 2023 - Anthony Iliopoulos <ailiop@suse.com>
- update to 6.5.0
- libxfs: fix atomic64_t detection on x86_32
- libxfs: use XFS_IGET_CREATE when creating new files
- libfrog: fix overly sleep workqueues
- xfs_db: use directio for device access
- libxfs: make platform_set_blocksize optional with directio
- mkfs: add a config file for 6.6 LTS kernels
- mkfs: enable reverse mapping by default
- mkfs: enable large extent counts by default
- xfs_db: create unlinked inodes
- xfs_db: dump unlinked buckets
- xfsprogs: don't allow udisks to automount XFS filesystems with no prompt
- xfs_repair: fix repair failure caused by dirty flag being abnormally set on buffer
- drop 0001-repair-shift-inode-back-into-place-if-corrupted-by-b.patch
This was a fix for a regression that occurred in SLE12 SP1. We can
safely drop this, as upgrading to SLE15 (and later) is only supported
from SLE12-SP4.
-------------------------------------------------------------------
Thu Jul 20 08:45:36 UTC 2023 - Anthony Iliopoulos <ailiop@suse.com>
- update to 6.4.0:
- xfs_db: expose the flag in rmapbt keys
- xfs_repair: warn about unwritten bits set in rmap btree keys
- xfs_repair: check low keys of rmap btrees
- xfs_repair: always perform extended xattr checks on uncertain inodes
- xfs_repair: fix messaging when fixing imap due to sparse cluster
- xfs_repair: fix messaging in longform_dir2_entry_check_data
- xfs_repair: fix messaging when shortform_dir2_junk is called
- xfs_repair: don't log inode problems without printing resolution
- xfs_repair: don't spray correcting imap all by itself
- libxcmd: Fix crash due to missing return value check on add_command()
- xfs_db: make the hash command print the dirent hash
- xfs_db: Add new cmd to create dirents and xattrs that induce dahash collisions
- mkfs: deprecate the ascii-ci feature
- xfs_db: fix metadump name obfuscation for ascii-ci filesystems
- libxfs: kernel sync
-------------------------------------------------------------------
Mon May 22 19:51:34 UTC 2023 - Anthony Iliopoulos <ailiop@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package xfsprogs
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -25,7 +25,7 @@
%endif
%define libname libhandle1
Name: xfsprogs
Version: 6.3.0
Version: 6.6.0
Release: 0
Summary: Utilities for managing the XFS file system
License: GPL-2.0-or-later
@@ -37,7 +37,6 @@ Source2: %{name}.keyring
Source3: module-setup.sh.in
Source4: dracut-fsck-help.txt
Patch0: xfsprogs-docdir.diff
Patch1: 0001-repair-shift-inode-back-into-place-if-corrupted-by-b.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libblkid-devel
@@ -108,9 +107,7 @@ Scripts and systemd service files for background scrubbing of metadata
on xfs filesystems.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%autosetup -p1
%build
aclocal -I m4
@@ -205,11 +202,11 @@ install -m 0644 %{SOURCE4} %{buildroot}/%{_dracutmodulesdir}/95suse-xfs/
%files -n xfsprogs-scrub
%defattr(-,root,root,755)
%dir %{_libdir}/xfsprogs/
%{_libdir}/xfsprogs/xfs_scrub_all.cron
%dir %{_libexecdir}/xfsprogs
%{_prefix}/share/xfsprogs/xfs_scrub_all.cron
%{_sbindir}/xfs_scrub_all
%if %{with systemd}
%{_libdir}/xfsprogs/xfs_scrub_fail
%{_libexecdir}/xfsprogs/xfs_scrub_fail
%{_unitdir}/xfs_scrub@.service
%{_unitdir}/xfs_scrub_all.service
%{_unitdir}/xfs_scrub_all.timer