I tried changing the fdisk code to turn off the
limitation of the -b option to try a read for 4k.
Then, it never even got that far: it couldn't get past
the malloc() call right about:
fdisk.c:566: if (!(buffers[partitions] = (char *) malloc(sector_size)))
This worked up to -b 2258, but anything higher wouldn't work.
You wrote a buggy C program, where you tried to read a lot
into a small buffer. In other words, if you `turn off the
limitation' then you also have to increase MAX_SECTOR_SIZE.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to firstname.lastname@example.org
Please read the FAQ at http://www.tux.org/lkml/