[2.06 RELEASE PATCH 0/3] Add XFS bigtime and needsrepair support

2021-05-05 Thread Javier Martinez Canillas
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

[2.06 RELEASE PATCH 3/3] fs/xfs: Add needsrepair incompat feature support

2021-05-05 Thread Javier Martinez Canillas
XFS now has an incompat feature flag to indicate that the filesystem needs to be repaired. The Linux kernel refuses to mount a filesystem that has it set and only the xfs_repair tool is able to clear that flag. The GRUB doesn't have the concept of mounting filesystems and just attempt to read the

[2.06 RELEASE PATCH 1/3] fs: Use 64bit type for filesystem timestamp

2021-05-05 Thread Javier Martinez Canillas
From: Carlos Maiolino Some filesystems nowadays uses 64bit types for timestamps, so, update grub_dirhook_info struct to use an int64 type to store mtime. This also updates grub_unixtime2datetime() to receive a 64-bit timestamp argument and do 64bit-safe divisions. All the remaining conversion fr

[2.06 RELEASE PATCH 2/3] fs/xfs: Add bigtime incompat feature support

2021-05-05 Thread Javier Martinez Canillas
From: Carlos Maiolino XFS filesystem now supports bigtime feature, to overcome y2038 problem. This patch makes grub able to support xfs filesystems with this feature enabled. xfs counter for bigtime enable timestamps starts on 0, which translates to INT32_MIN (Dec 31 20:45:52 UTC 1901) in the le

Fwd: boot/grub2: grub-core-build-fixes-for-i386 (grub-2.04 + binutils-2.35.2 + pseudo-op .code64)

2021-05-05 Thread Mikhail B. WproxyM
We are using binutils-2.35.2+ (later then 2.29.1), grub-2.04, cross-compiling on recent buildroot under i386/i686 and getting error: > lib/i386/relocator64.S:66: Error: unknown pseudo-op: `.code64' So, the working patch is attached. Please add it to grub2. Sources: 1) https://debbugs.gnu.org/cgi

boot/grub2: grub-core-build-fixes-for-i386 (grub-2.04 + binutils-2.35.2 + pseudo-op .code64)

2021-05-05 Thread Mikhail B. WproxyM
We are using binutils-2.35.2+ (later then 2.29.1), grub-2.04, cross-compiling on recent buildroot under i386/i686 and getting error: > lib/i386/relocator64.S:66: Error: unknown pseudo-op: `.code64' So, the working patch is attached. Please add it to grub2. Sources: 1) https://debbugs.gnu.org/cgi

Re: Fwd: boot/grub2: grub-core-build-fixes-for-i386 (grub-2.04 + binutils-2.35.2 + pseudo-op .code64)

2021-05-05 Thread John Paul Adrian Glaubitz
Hello Mikhail! On 5/5/21 11:39 AM, Mikhail B. WproxyM wrote: > We are using binutils-2.35.2+ (later then 2.29.1), grub-2.04, > cross-compiling on recent buildroot under i386/i686 and getting error: > >> lib/i386/relocator64.S:66: Error: unknown pseudo-op: `.code64' > > So, the working patch is a

Re: [2.06 RELEASE PATCH 1/3] fs: Use 64bit type for filesystem timestamp

2021-05-05 Thread Daniel Kiper
On Wed, May 05, 2021 at 10:32:31AM +0200, Javier Martinez Canillas wrote: > From: Carlos Maiolino > > Some filesystems nowadays uses 64bit types for timestamps, so, update s/64bit/64-bit/ > grub_dirhook_info struct to use an int64 type to store mtime. This also s/int64/grub_int64_t/ > updates

Re: [2.06 RELEASE PATCH 2/3] fs/xfs: Add bigtime incompat feature support

2021-05-05 Thread Daniel Kiper
On Wed, May 05, 2021 at 10:32:32AM +0200, Javier Martinez Canillas wrote: > From: Carlos Maiolino > > XFS filesystem now supports bigtime feature, to overcome y2038 problem. s/XFS/The XFS/ > This patch makes grub able to support xfs filesystems with this feature s/grub/the GRUB/ s/xfs/the XFS/

Re: [2.06 RELEASE PATCH 1/3] fs: Use 64bit type for filesystem timestamp

2021-05-05 Thread Daniel Kiper
On Wed, May 05, 2021 at 04:32:38PM +0200, Daniel Kiper wrote: > On Wed, May 05, 2021 at 10:32:31AM +0200, Javier Martinez Canillas wrote: [...] > > diff --git a/grub-core/lib/datetime.c b/grub-core/lib/datetime.c > > index 95b8c9ff5e3..3e84fa1dbc4 100644 > > --- a/grub-core/lib/datetime.c > > +++

Re: [2.06 RELEASE PATCH 3/3] fs/xfs: Add needsrepair incompat feature support

2021-05-05 Thread Daniel Kiper
On Wed, May 05, 2021 at 10:32:33AM +0200, Javier Martinez Canillas wrote: > XFS now has an incompat feature flag to indicate that the filesystem needs s/XFS/The XFS/ > to be repaired. The Linux kernel refuses to mount a filesystem that has it > set and only the xfs_repair tool is able to clear th

Re: boot/grub2: grub-core-build-fixes-for-i386 (grub-2.04 + binutils-2.35.2 + pseudo-op .code64)

2021-05-05 Thread Daniel Kiper
Hi, Thank you for the report... On Wed, May 05, 2021 at 12:44:07PM +0300, Mikhail B. WproxyM wrote: > We are using binutils-2.35.2+ (later then 2.29.1), grub-2.04, > cross-compiling on recent buildroot under i386/i686 and getting error: May I ask you to try latest GRUB master git branch [1]? The