Skip to content

Add XFS bigtime and needsrepair support

Javier Martinez Canillas grub-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 1 replyIn review
  2. v24 patches 4 repliesSuperseded
  3. v13 patches 4 repliesSuperseded

Changes in v3 from the cover letter

- Add dkiper Reviewed-by tag.
- Fix PRIuGRUB_INT32_T typo.
- Add dkiper Reviewed-by tag to patch #2.
- Include grub/mm.h instead of the stdef.h header (dkiper).
- Fix commit message in patch #3 (dkiper).
- Drop unrelated cleanups in patch #3 (dkiper).
- Fix issues pointed out in v1 that were missed on v2 (dkiper).
- Improved commit message in patch #4 (dkiper).
- Make the debug message more clear (dkiper).

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4types: Define PRI{x, d}GRUB_INT{32, 64}_T format specifiersinclude/grub/types.h+6 -00 replies
2/4fs: Use 64-bit type for filesystem timestampgrub-core/fs/affs.c grub-core/fs/ext2.c grub-core/fs/fat.c +13 more+32 -240 replies
3/4fs/xfs: Add bigtime incompat feature supportgrub-core/fs/xfs.c include/grub/time.h+48 -90 replies
4/4fs/xfs: Add needsrepair incompat feature supportgrub-core/fs/xfs.c+16 -10 replies

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchDaniel Kiper
SeriesR-b
1/4R-b
2/4R-b
3/4
4/4

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

Read the v3 thread

Cover letter [2.06 RELEASE PATCH v3 0/4] Add XFS bigtime and needsrepair support

Hello,

This series contains patches to support incompat feature flags that were recently added to the XFS filesystem. This is needed because GRUB checks if the super block .sb_features_incompat field contains incompat feature flags that are not supported, and if that's the case it considers the SB invalid and fails to read any data.

Since having a XFS filesystem with the bigtime or needsrepair flag would lead to GRUB failing to access it, and due the fact that some distros are going to turn them on by default (i.e: in the mkfs.xfs tool) I think that these are 2.06 material.

This series is v3 of a collection of patches posted before separately to the mailing list. It addresses the issues pointed out by Daniel on v2.

Best regards,
Javier

Changes in v3:
- Add dkiper Reviewed-by tag.
- Fix PRIuGRUB_INT32_T typo.
- Add dkiper Reviewed-by tag to patch #2.
- Include grub/mm.h instead of the stdef.h header (dkiper).
- Fix commit message in patch #3 (dkiper).
- Drop unrelated cleanups in patch #3 (dkiper).
- Fix issues pointed out in v1 that were missed on v2 (dkiper).
- Improved commit message in patch #4 (dkiper).
- Make the debug message more clear (dkiper).

Changes in v2:
- Improve commit message for patch #2 (dkiper).
- Drop Reviewed-by tag from patch #2 (dkiper).
- A few code cleanups for patch #2 (dkiper).
- Improve the commit message of patch #3 (dkiper).
- Drop Reviewed-by tag from patch #3 (dkiper). _ Drop unrelated changes in patch #3 (dkiper).
- Improve commit message of patch #4 (dkiper).
- Fix typo in debug message of patch #4 (dkiper).

Carlos Maiolino (2):
fs: Use 64-bit type for filesystem timestamp
fs/xfs: Add bigtime incompat feature support

Javier Martinez Canillas (2):
types: Define PRI{x,d}GRUB_INT{32,64}_T format specifiers fs/xfs: Add needsrepair incompat feature support

 grub-core/fs/affs.c          |  2 +-
 grub-core/fs/ext2.c          |  2 +-
 grub-core/fs/fat.c           |  4 +--
 grub-core/fs/hfs.c           |  2 +-
 grub-core/fs/hfsplus.c       |  2 +-
 grub-core/fs/iso9660.c       |  6 ++--
 grub-core/fs/nilfs2.c        |  2 +-
 grub-core/fs/squash4.c       |  2 +-
 grub-core/fs/ufs.c           |  2 +-
 grub-core/fs/xfs.c           | 70 +++++++++++++++++++++++++++++++-----
 grub-core/fs/zfs/zfs.c       |  2 +-
 grub-core/lib/datetime.c     | 14 ++++++--
 grub-core/net/bootp.c        |  2 +-
 grub-core/normal/misc.c      |  2 +-
 grub-core/tests/sleep_test.c |  4 +--
 include/grub/datetime.h      |  4 +--
 include/grub/fs.h            |  4 +--
 include/grub/time.h          |  2 ++
 include/grub/types.h         |  6 ++++
 19 files changed, 101 insertions(+), 33 deletions(-)
Signature · 1 line
2.31.1