Fix aux/flashfs to be compatible with the port/devflash.c format instead of bitsy/devflash.c. Since the Bitsy port is now deprecated (2013-01-30), there is no longer need to keep the default behavior of aux/flashfs compatible with it. /sys/src/9/port/devflash.c On /dev/flash/partctl, the second word of the second line is the size of the partition /sys/src/9/bitsy/devflash.c On /dev/flash/partctl, the second word of the second line is the end offset of the partition Reference: /n/sources/patch/maybe/flashfs-port Date: Wed Jan 30 23:48:37 CET 2013 Signed-off-by: djc@9grid.fr --- /sys/src/cmd/aux/flashfs/devfs.c Wed Jan 30 23:48:22 2013 +++ /sys/src/cmd/aux/flashfs/devfs.c Wed Jan 30 23:48:18 2013 @@ -61,8 +61,8 @@ n = tokenize(buf, fld, nelem(fld)); if(n < 7) sysfatal("bad flash geometry"); - nsects = atoi(fld[5]); sectsize = atoi(fld[6]); + nsects = (atoi(fld[5])-atoi(fld[4]))/sectsize; if(nsects < 8) sysfatal("unreasonable value for nsects: %lud", nsects); if(sectsize < 512)