Skip to content

repair: sector size and blkmap fixes

Dave Chinner linux-xfs 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 12 repliesIn review
  2. v25 patches 11 repliesSuperseded
  3. v12 patches 5 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5repair: handle repair of image files on large sector size filesystemslibxfs/rdwr.c repair/sb.c repair/xfs_repair.c+38 -22 replies
2/5repair: fix a valgrind reported error on i686repair/prefetch.c+1 -12 replies
3/5repair: handle memory allocation failure from blkmap_growrepair/bmap.c repair/bmap.h repair/dinode.c+43 -142 replies
4/5repair: don't cache large blkmap allocationsrepair/bmap.c repair/dinode.c+21 -52 replies
5/5repair: prevent blkmap extent count overflowsrepair/bmap.c repair/bmap.h+41 -02 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchChristoph HellwigAlex Elder
1/5R-b R-b
2/5R-b R-b
3/5R-b R-b
4/5R-b R-b
5/5R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH 0/5, v3] repair: sector size and blkmap fixes

Version 3:
- updated to latest xfsprogs tree on oss.sgi.com
- fixed printf format issues with enomem handling patch
- fixed bug in extent count updates after enomem detection

Version 2:
- fixed typos in sector size comments
- fixed setting default sector size so that the ioctl doesn't wipe it out
- separate out prefetch valgrind error fix.
- separate out large blkmap allocation caching fix
- separate out handling of blkmap memory allocation failure during a grow to avoid a buffer overrun situation when moving extents around in the array
- avoid modifying blkmap->naexts when allocation fails.
- separate extent count overflow checking in blkmap allocation and growing
- use #if BITS_PER_LONG == 32
- Introduce BLKMAP_NEXTS_MAX and use it unconditionally rather than open code it and only include the check on 32 bit builds
- add checking for negative extent counts to avoid grow overflows past INT_MAX going undetected.

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs