[0/4] bring parisc linux into the modern age by adding ext4 support to the bootloader
mbox series

Message ID 1562357231.10899.5.camel@HansenPartnership.com
Headers show
Series
  • bring parisc linux into the modern age by adding ext4 support to the bootloader
Related show

Message

James Bottomley July 5, 2019, 8:07 p.m. UTC
The parisc bootloader, palo, has understood how to read ext2/3
filesystems for decades.  However, keeping an ext2/3 partition around
simply to boot from is becoming a bit old, so add support for ext4 to
the iplboot code.  Note, this still doesn't fix ipl specific
limitations, like the inability to read a disk beyond 2GB, so you will
still need a low sector /boot partition for this.

The assumptions I've made adding ext4 are that the only additional
variables over ext2/3 are the variable group descriptor size support,
conditioned on the EXT4_FEATURE_INCOMPAT_64BIT flag and extent based
inodes conditioned on the EXT3_EXTENTS_FL (it's been renamed to
EXT4_EXTENTS_FL now in libext2fs).

Filesystem people interested in reviewing the extent handling code
probably only need look at patch 3/4 iplboot: add ext4 support

James

---

James Bottomley (4):
  iplboot: eliminate unused struct bootfs
  iplboot: update the ext2_fs.h header
  iplboot: add ext4 support
  palo: add support for formatting as ext4

 ipl/bootloader.h |  13 ---
 ipl/ext2.c       | 256 +++++++++++++++++++++++++++++++++++++++++++------------
 ipl/ext2_fs.h    |  42 ++++++++-
 iplboot          | Bin 45056 -> 45056 bytes
 palo/palo.c      |   6 +-
 5 files changed, 245 insertions(+), 72 deletions(-)