Package: genext2fs Severity: important Tags: patch Hello,
hurd-i386 doesn't yet support a blocksize different than the page size. genext2fs currently only supports 1024, but making it support != 1024 is actually quite trivial, see attached patch. Samuel -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32 (SMP w/2 CPU cores) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash -- Samuel Thibault <samuel.thiba...@fnac.net> * y se leve dans 2h10
diff -ur genext2fs-1.4.1.orig/genext2fs.c genext2fs-1.4.1/genext2fs.c --- genext2fs-1.4.1.orig/genext2fs.c 2009-12-29 21:48:02.000000000 +0000 +++ genext2fs-1.4.1/genext2fs.c 2009-12-29 21:40:06.000000000 +0000 @@ -571,16 +571,15 @@ /* Filesystem structure that support groups */ -#if BLOCKSIZE == 1024 typedef struct { - block zero; // The famous block 0 - superblock sb; // The superblock + uint8 zero[1024]; // Room for bootloader stuff + superblock sb; // The superblock, always at 1024 +#if BLOCKSIZE > 2048 + uint8 zero2[BLOCKSIZE - 2048]; // align group descriptor on block size +#endif groupdescriptor gd[0]; // The group descriptors } filesystem; -#else -#error UNHANDLED BLOCKSIZE -#endif // now the endianness swap