compile error in master, restrict is missing

2020-03-11 Thread Olaf Hering
I understand that grub.git#master does (most likely) compile for everyone else: [ 135s] + env CFLAGS=-Wall CXXFLAGS=-Wall FFLAGS=-Wall ../grub2-src/configure --target=i386-suse-linux --with-platform=pc --prefix=/usr/lib64/grub2-chainloader --disable-boot-time --disable-cache-stats --disable-de

Re: compile error in master, restrict is missing

2020-03-11 Thread Daniel Kiper
Hi Olaf, CC-ing Peter... On Wed, Mar 11, 2020 at 08:44:33AM +0100, Olaf Hering wrote: > I understand that grub.git#master does (most likely) compile for everyone > else: > > [ 135s] + env CFLAGS=-Wall CXXFLAGS=-Wall FFLAGS=-Wall > ../grub2-src/configure --target=i386-suse-linux --with-platform

Re: GRUB 2.06 release

2020-03-11 Thread Daniel Kiper
On Tue, Mar 03, 2020 at 06:26:03PM +0100, Daniel Kiper wrote: > On Wed, Feb 19, 2020 at 04:01:38PM +0100, Daniel Kiper wrote: > > Hi all, > > > > As I told during my FOSDEM 2020 presentation we are preparing for > > GRUB 2.06 release. Tentative schedule is below: > > - code freeze: 15th of March,

Re: compile error in master, restrict is missing

2020-03-11 Thread John Paul Adrian Glaubitz
On 3/11/20 11:39 AM, Daniel Kiper wrote: >> [ 135s] + env CFLAGS=-Wall CXXFLAGS=-Wall FFLAGS=-Wall >> ../grub2-src/configure --target=i386-suse-linux Which version of SUSE Linux is that, in case I want to reproduce that? FWIW, I work at SUSE, so I have access to all versions :). Adrian -- .

Re: compile error in master, restrict is missing

2020-03-11 Thread Olaf Hering
Am Wed, 11 Mar 2020 11:39:08 +0100 schrieb Daniel Kiper : > Nothing suspicious pooped out. I expect that the issues you are > hitting are related to set of configure flags which you are using. It turned out --disable-mm-debug does for some reason fix the build with gcc7. But building with gcc48

Re: compile error in master, restrict is missing

2020-03-11 Thread Olaf Hering
Am Wed, 11 Mar 2020 11:56:27 +0100 schrieb John Paul Adrian Glaubitz : > Which version of SUSE Linux is that, in case I want to reproduce that? SLE_12 and Leap 42.3, everything with gcc-4.8. I may be able to work around it by using a newer compiler. Olaf pgpyMboyE0v9G.pgp Description: Digital

Re: compile error in master, restrict is missing

2020-03-11 Thread John Paul Adrian Glaubitz
On 3/11/20 12:01 PM, Olaf Hering wrote: > Am Wed, 11 Mar 2020 11:56:27 +0100 > schrieb John Paul Adrian Glaubitz : > >> Which version of SUSE Linux is that, in case I want to reproduce that? > > SLE_12 and Leap 42.3, everything with gcc-4.8. I may be able to work around > it by using a newer com

Re: compile error in master, restrict is missing

2020-03-11 Thread Javier Martinez Canillas
Hello Olaf, On 3/11/20 11:59 AM, Olaf Hering wrote: > Am Wed, 11 Mar 2020 11:39:08 +0100 > schrieb Daniel Kiper : > >> Nothing suspicious pooped out. I expect that the issues you are >> hitting are related to set of configure flags which you are using. > > It turned out --disable-mm-debug does f

Re: [PATCH] Warn if MBR gap is small and user uses advanced modules

2020-03-11 Thread Daniel Kiper
Adding Michael, Mihai, Javier and Peter... Below you can find what more or less Vladimir and I agreed WRT small MBR gap. In general Vladimir convinced me to phase out small MBR gaps support gradually. This is first step in this journey. We think that we have to build some warnings into the code an

Re: [PATCH] Warn if MBR gap is small and user uses advanced modules

2020-03-11 Thread Javier Martinez Canillas
Hello Daniel, On 3/11/20 1:43 PM, Daniel Kiper wrote: > Adding Michael, Mihai, Javier and Peter... > > Below you can find what more or less Vladimir and I agreed WRT small MBR > gap. In general Vladimir convinced me to phase out small MBR gaps > support gradually. This is first step in this journ

Re: [PATCH] Warn if MBR gap is small and user uses advanced modules

2020-03-11 Thread Michael Chang
On Wed, Mar 11, 2020 at 01:43:14PM +0100, Daniel Kiper wrote: > Adding Michael, Mihai, Javier and Peter... > > Below you can find what more or less Vladimir and I agreed WRT small MBR > gap. In general Vladimir convinced me to phase out small MBR gaps > support gradually. This is first step in thi

Re: compile error in master, restrict is missing

2020-03-11 Thread Olaf Hering
Am Wed, 11 Mar 2020 12:30:01 +0100 schrieb Javier Martinez Canillas : > +#if !(defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)) This does not help. I have seen similar code in one of the zstd headers. Whatever the outcome will be, it should get a 'Fixes commit d5a32255d' tag. Olaf

Re: compile error in master, restrict is missing

2020-03-11 Thread Javier Martinez Canillas
On 3/11/20 4:41 PM, Olaf Hering wrote: > Am Wed, 11 Mar 2020 12:30:01 +0100 > schrieb Javier Martinez Canillas : > >> +#if !(defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)) > > This does not help. I have seen similar code in one of the zstd headers. > Yes, I mentioned in the commi

Re: [PATCH] Warn if MBR gap is small and user uses advanced modules

2020-03-11 Thread Didier Spaier
Le 11/03/2020 à 13:43, Daniel Kiper a écrit : > Adding Michael, Mihai, Javier and Peter... > > Below you can find what more or less Vladimir and I agreed WRT small MBR > gap. In general Vladimir convinced me to phase out small MBR gaps > support gradually. This is first step in this journey. We

[PATCH 0/7] ZFS/other CoW FS save_env support

2020-03-11 Thread Paul Dagnelie
Hey all, I previously discussed my concept for this patch in my email https://lists.gnu.org/archive/html/grub-devel/2020-01/msg4.html . I'm pleased to announce that I've gotten it into a working state and it is ready to review. There are a number of changes here, which I will break down below.

[PATCH 4/7] Use envblk file and fs functions to implement reading the grubenv file from special FS regions

2020-03-11 Thread Paul Dagnelie
This patch modifies the loadenv command to take advantage of the new envblock functions provided by a previous patch. These functions will be used instead of the normal file-based functions if the boot filesystem is detected to support them. There is also a config variable, grubenv_src, that can be

[PATCH 2/7] Add support for special envblk functions in GRUB

2020-03-11 Thread Paul Dagnelie
This patch introducces the idea of envblk functions to GRUB. These functions are used to interact with a grubenv file stored not in the usual grub tree, but instead in a special filesystem-managed region that can more easily be accessed at boot time. These functions interface between calling code a

[PATCH 6/7] Refactor default envblk size out for reuse

2020-03-11 Thread Paul Dagnelie
This patch refactors the DEFAULT_ENVBLK_SIZE definition into a header file for reuse in other code, and renames it to match other definitions in that header. Signed-off-by: Paul Dagnelie --- include/grub/lib/envblk.h | 1 + util/editenv.c| 9 - 2 files changed, 5 insertions(+

[PATCH 7/7] Update editenv to support editing zfs envblock, fix whitespace, and autodetect bootenv support in libzfs

2020-03-11 Thread Paul Dagnelie
This patch updates the grub-editenv command to support editing the zfs envblock by using specific libzfs functions. In order to ensure that GRUB will continue to build against both old and new versions of libzfs, logic was also added to the configure script to detect if the bootenv functions are pr

[PATCH 1/7] Factor out file filter function for reuse

2020-03-11 Thread Paul Dagnelie
This patch refactors out the logic that applies filters to files for reuse in other code. Signed-off-by: Paul Dagnelie --- grub-core/kern/file.c | 46 +-- 1 file changed, 27 insertions(+), 19 deletions(-) diff --git a/grub-core/kern/file.c b/grub-core/ker

[PATCH 3/7] Factor out envblk buffer creation for reuse

2020-03-11 Thread Paul Dagnelie
This patch factors out the filling of the grubenv buffer into a separate function for reuse. Signed-off-by: Paul Dagnelie --- include/grub/util/install.h | 3 +++ util/editenv.c | 26 +- 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/include

[PATCH 5/7] Add ZFS envblock functions

2020-03-11 Thread Paul Dagnelie
This patch adds a ZFS implementation of the fs_envblk_* functions. These functions will be used to load the grubenv block from a padding area in the label of ZFS. This padding area is protected by an embedded checksum, and multiple copies are stored on each disk. This should provide sufficient reli

Re: [PATCH] Warn if MBR gap is small and user uses advanced modules

2020-03-11 Thread Vladimir 'phcoder' Serbinenko
On Wed, Mar 11, 2020, 18:08 Didier Spaier wrote: > > > Le 11/03/2020 à 13:43, Daniel Kiper a écrit : > > Adding Michael, Mihai, Javier and Peter... > > > > Below you can find what more or less Vladimir and I agreed WRT small MBR > > gap. In general Vladimir convinced me to phase out small MBR gap