With Linux 3.10, XFS acquired the capability of protecting metadata structures with CRC checksums. https://github.com/torvalds/linux/blob/master/Documentation/filesystems/xfs-self-describing-metadata.txt As of Linux 3.15, this capability is officially considered to be safe for production workloads. As such, mounting an XFS filesystem with a v5 superblock will no longer trigger a warning that it is experimental. To create such a filesystem, >=xfsprogs-3.2 is required. Bug 524734 is currently being processed for stabilization. One issue that remains is that grub2 is not able to handle XFS v5. Jan Kara (of SuSE) has contributed patches that rectify this issue. I have tested these patches and they work perfectly. Unfortunately, upstream continue to drag their heels on this matter. Therefore, I would like for these patches to be applied by the ebuild so that XFS v5 can assume its rightful place as a first-class citizen in Gentoo. These patches are attached herewith.
Created attachment 386810 [details, diff] GRUB XFS v5 patch 1/4
Created attachment 386812 [details, diff] GRUB XFS v5 patch 2/4
Created attachment 386814 [details, diff] GRUB XFS v5 patch 3/4
The patches only affect grub-core/fs/xfs.c, so the risk seems pretty low here. I'll consider it.
Created attachment 386816 [details, diff] GRUB XFS v5 patch 4/4
Original patch names are as follows: 0001-xfs-Add-helper-for-inode-size.patch 0002-xfs-Fix-termination-loop-for-directory-iteration.patch 0003-xfs-Convert-inode-numbers-to-cpu-endianity-immediate.patch 0004-xfs-V5-filesystem-format-support.patch
Type in the first comment: Bug 524374 is actually the one that concerns xfsprogs.
(In reply to Mike Gilbert from comment #4) > The patches only affect grub-core/fs/xfs.c, so the risk seems pretty low > here. I'll consider it. Very good. Incidentally, I've just tested a patched grub against a non-v5 filesystem and it continues to work.
Is there a git repo I can pull this from? That would help me in maintaining it.
(In reply to Mike Gilbert from comment #9) > Is there a git repo I can pull this from? That would help me in maintaining > it. I don't think so. Jan posted the patches to grub-devel, someone promised to look over them but nothing seems to have come of it yet. I had trouble extracting the patches from the list archive so I contacted Jan, who simply mailed them to me. He is responsive so you could mail him if you have any questions.
Having put those patches in my _user_patch_dir_ for months, nothing wrong happened. I have every partition in my Gentoo box formatted to XFS v5. It seems Suse guy made those patches, and so far no other distribution has merged them, neither upstream grub. As to XFS, there are arguments against superblock v5, larger inode size and metadata CRC overhead...etc. Despite that, the future is v5. I'd also like those patches to be applied by Gentoo. Just like when Gentoo is the spearhead distribution to support XFS.
+*grub-2.02_beta2-r7 (01 Feb 2015) + + 01 Feb 2015; Mike Gilbert <floppym@gentoo.org> +grub-2.02_beta2-r7.ebuild: + Add patches for XFS v5 superblocks, bug 525682. Fix build on musl, bug 529356.