• Eric W. Biederman's avatar
    [PATCH] fix 4K ext2fs support in 2.6 initrd's · d60e29c3
    Eric W. Biederman authored
    The ramdisk_blocksize option has been broken for quite a while in 2.6.
    Making an initrd with a 4K ext2 filesystem impossible to use.
    
    After digging into this, the problem turned out to that rd.c was not
    setting the hard sector size.  There were a few secondary problems like
    i_blkbits was not being set, and the number KiB in uncompressed ext2 images
    was not taking into account the block size.
    
    I have also corrected the surrounding comments as they were not just
    incorrect but misleading.
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    d60e29c3
do_mounts_rd.c 9.94 KB