Re: [PATCH] Improve ext2 driver to allow embedding of the boot loader code.

2014-02-01 Thread Dr. Tilmann Bubeck
Vladimir, Andrey, is there any chance, that you integrate this patch? As you probably know,there is a huge demand for embedding grub2 into ext4 filesystems. Is it ready for integration or should anything be changed? Thanks! Tilmann Am 21.01.2014 20:55, schrieb Dr. Tilmann Bubeck: The allo

Re: [PATCH] Improve ext2 driver to allow embedding of the boot loader code.

2014-01-21 Thread Dr. Tilmann Bubeck
The allocated space is reused every time on grub-setup execution. It does not change, as long as it is big enough. As Andrew said, by allocating 10 MB in the first run, it will be big enough for the foreseeable future (currently core.img on my system is 30k). After issuing the ioctl(EXT4_IOC

Re: [PATCH] Improve ext2 driver to allow embedding of the boot loader code.

2014-01-21 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 21.01.2014 09:41, Andrey Borzenkov wrote: > On Tue, Jan 21, 2014 at 12:32 PM, Vladimir 'φ-coder/phcoder' > Serbinenko wrote: >> On 21.01.2014 09:28, Andrey Borzenkov wrote: >>> On Tue, Jan 21, 2014 at 12:14 PM, Vladimir 'φ-coder/phcoder' >>> Serbinenko wrote: On 10.01.2014 08:49, Dr. Tilm

Re: [PATCH] Improve ext2 driver to allow embedding of the boot loader code.

2014-01-21 Thread Andrey Borzenkov
On Tue, Jan 21, 2014 at 12:32 PM, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > On 21.01.2014 09:28, Andrey Borzenkov wrote: >> On Tue, Jan 21, 2014 at 12:14 PM, Vladimir 'φ-coder/phcoder' >> Serbinenko wrote: >>> On 10.01.2014 08:49, Dr. Tilmann Bubeck wrote: The blocklist is fixed an

Re: [PATCH] Improve ext2 driver to allow embedding of the boot loader code.

2014-01-21 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 21.01.2014 09:28, Andrey Borzenkov wrote: > On Tue, Jan 21, 2014 at 12:14 PM, Vladimir 'φ-coder/phcoder' > Serbinenko wrote: >> On 10.01.2014 08:49, Dr. Tilmann Bubeck wrote: >>> >>> The blocklist is fixed and stable and will never change. >> What guarantees that it won't change on grub-setup i

Re: [PATCH] Improve ext2 driver to allow embedding of the boot loader code.

2014-01-21 Thread Andrey Borzenkov
On Tue, Jan 21, 2014 at 12:14 PM, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > On 10.01.2014 08:49, Dr. Tilmann Bubeck wrote: >> >> The blocklist is fixed and stable and will never change. > What guarantees that it won't change on grub-setup invocation? I'm under > impression that it will change

Re: [PATCH] Improve ext2 driver to allow embedding of the boot loader code.

2014-01-21 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 10.01.2014 08:49, Dr. Tilmann Bubeck wrote: > > The blocklist is fixed and stable and will never change. What guarantees that it won't change on grub-setup invocation? I'm under impression that it will change on every grub-setup invocation as file gets recreated. signature.asc Description: O

Re: [PATCH] Improve ext2 driver to allow embedding of the boot loader code.

2014-01-09 Thread Dr. Tilmann Bubeck
Vladimir, in your last email "Re: Why special linux code in grub2/util/grub-setup.c" from 25.07.2013 23:17 you request the following 3 features which I respected in my patch: > 1) have a way to reserve some space, near the beginning. E.g. IOCTL > CREATE_EMBEDDING_ZONE with argument size=5M (n

Re: [PATCH] Improve ext2 driver to allow embedding of the boot loader code.

2014-01-09 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 09.01.2014 22:07, Dr. Tilmann Bubeck wrote: > This patch extends the ext2 driver to allow embedding core.img into the > filesystem. This allows the long needed installation of GRUB into a partition > without the need to use (unsafe) block lists. > > It is realized using the ioctl(EXT4_IOC_SWAP_

[PATCH] Improve ext2 driver to allow embedding of the boot loader code.

2014-01-09 Thread Dr. Tilmann Bubeck
This patch extends the ext2 driver to allow embedding core.img into the filesystem. This allows the long needed installation of GRUB into a partition without the need to use (unsafe) block lists. It is realized using the ioctl(EXT4_IOC_SWAP_BOOT) introduced into Linux 3.10. This ioctl basically sw