1. 27 12月, 2021 1 次提交
  2. 16 9月, 2020 2 次提交
  3. 05 8月, 2020 1 次提交
  4. 20 5月, 2020 1 次提交
  5. 27 3月, 2020 1 次提交
  6. 12 3月, 2020 1 次提交
  7. 27 1月, 2020 2 次提交
  8. 08 11月, 2019 1 次提交
  9. 24 9月, 2019 1 次提交
  10. 29 6月, 2019 2 次提交
  11. 13 6月, 2019 1 次提交
  12. 12 6月, 2019 3 次提交
  13. 02 5月, 2019 1 次提交
  14. 15 4月, 2019 2 次提交
  15. 26 2月, 2019 1 次提交
  16. 12 2月, 2019 2 次提交
  17. 18 10月, 2018 1 次提交
  18. 03 8月, 2018 1 次提交
  19. 01 8月, 2018 4 次提交
  20. 24 7月, 2018 1 次提交
    • D
      xfs: detect and fix bad summary counts at mount · 2e9e6481
      Darrick J. Wong 提交于
      Filippo Giunchedi complained that xfs doesn't even perform basic sanity
      checks of the fs summary counters at mount time.  Therefore, recalculate
      the summary counters from the AGFs after log recovery if the counts were
      bad (or we had to recover the fs).  Enhance the recalculation routine to
      fail the mount entirely if the new values are also obviously incorrect.
      
      We use a mount state flag to record the "bad summary count" state so
      that the (subsequent) online fsck patches can detect subtlely incorrect
      counts and set the flag; clear it userspace asks for a repair; or force
      a recalculation at the next mount if nobody fixes it by unmount time.
      Reported-by: NFilippo Giunchedi <fgiunchedi@wikimedia.org>
      Signed-off-by: NDarrick J. Wong <darrick.wong@oracle.com>
      Reviewed-by: NChristoph Hellwig <hch@lst.de>
      2e9e6481
  21. 09 6月, 2018 1 次提交
  22. 07 6月, 2018 1 次提交
    • D
      xfs: convert to SPDX license tags · 0b61f8a4
      Dave Chinner 提交于
      Remove the verbose license text from XFS files and replace them
      with SPDX tags. This does not change the license of any of the code,
      merely refers to the common, up-to-date license files in LICENSES/
      
      This change was mostly scripted. fs/xfs/Makefile and
      fs/xfs/libxfs/xfs_fs.h were modified by hand, the rest were detected
      and modified by the following command:
      
      for f in `git grep -l "GNU General" fs/xfs/` ; do
      	echo $f
      	cat $f | awk -f hdr.awk > $f.new
      	mv -f $f.new $f
      done
      
      And the hdr.awk script that did the modification (including
      detecting the difference between GPL-2.0 and GPL-2.0+ licenses)
      is as follows:
      
      $ cat hdr.awk
      BEGIN {
      	hdr = 1.0
      	tag = "GPL-2.0"
      	str = ""
      }
      
      /^ \* This program is free software/ {
      	hdr = 2.0;
      	next
      }
      
      /any later version./ {
      	tag = "GPL-2.0+"
      	next
      }
      
      /^ \*\// {
      	if (hdr > 0.0) {
      		print "// SPDX-License-Identifier: " tag
      		print str
      		print $0
      		str=""
      		hdr = 0.0
      		next
      	}
      	print $0
      	next
      }
      
      /^ \* / {
      	if (hdr > 1.0)
      		next
      	if (hdr > 0.0) {
      		if (str != "")
      			str = str "\n"
      		str = str $0
      		next
      	}
      	print $0
      	next
      }
      
      /^ \*/ {
      	if (hdr > 0.0)
      		next
      	print $0
      	next
      }
      
      // {
      	if (hdr > 0.0) {
      		if (str != "")
      			str = str "\n"
      		str = str $0
      		next
      	}
      	print $0
      }
      
      END { }
      $
      Signed-off-by: NDave Chinner <dchinner@redhat.com>
      Reviewed-by: NDarrick J. Wong <darrick.wong@oracle.com>
      Signed-off-by: NDarrick J. Wong <darrick.wong@oracle.com>
      0b61f8a4
  23. 06 6月, 2018 1 次提交
    • D
      xfs: catch bad stripe alignment configurations · fa4ca9c5
      Dave Chinner 提交于
      When stripe alignments are invalid, data alignment algorithms in the
      allocator may not work correctly. Ensure we catch superblocks with
      invalid stripe alignment setups at mount time. These data alignment
      mismatches are now detected at mount time like this:
      
      XFS (loop0): SB stripe unit sanity check failed
      XFS (loop0): Metadata corruption detected at xfs_sb_read_verify+0xab/0x110, xfs_sb block 0xffffffffffffffff
      XFS (loop0): Unmount and run xfs_repair
      XFS (loop0): First 128 bytes of corrupted metadata buffer:
      0000000091c2de02: 58 46 53 42 00 00 10 00 00 00 00 00 00 00 10 00  XFSB............
      0000000023bff869: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
      00000000cdd8c893: 17 32 37 15 ff ca 46 3d 9a 17 d3 33 04 b5 f1 a2  .27...F=...3....
      000000009fd2844f: 00 00 00 00 00 00 00 04 00 00 00 00 00 00 06 d0  ................
      0000000088e9b0bb: 00 00 00 00 00 00 06 d1 00 00 00 00 00 00 06 d2  ................
      00000000ff233a20: 00 00 00 01 00 00 10 00 00 00 00 01 00 00 00 00  ................
      000000009db0ac8b: 00 00 03 60 e1 34 02 00 08 00 00 02 00 00 00 00  ...`.4..........
      00000000f7022460: 00 00 00 00 00 00 00 00 0c 09 0b 01 0c 00 00 19  ................
      XFS (loop0): SB validate failed with error -117.
      
      And the mount fails.
      Signed-off-by: NDave Chinner <dchinner@redhat.com>
      Reviewed-by: NCarlos Maiolino <cmaiolino@redhat.com>
      Reviewed-by: NDarrick J. Wong <darrick.wong@oracle.com>
      Signed-off-by: NDarrick J. Wong <darrick.wong@oracle.com>
      fa4ca9c5
  24. 05 6月, 2018 1 次提交
  25. 30 5月, 2018 1 次提交
  26. 16 5月, 2018 3 次提交
  27. 10 4月, 2018 1 次提交
  28. 26 3月, 2018 1 次提交