BUG FIX for fs/ext2/namei.c

Jay Estabrook - USG Hardware Support (jestabro@brillig.amt.tay1.dec.com)
Thu, 06 Jul 95 16:37:50 -0400


I ran into this one *HARD* over the last two days; finally sat down to figure
out what was going on.

In file: fs/ext2/namei.c

diff namei.c.new namei.c.old
762c762
< if (l >= EXT2_N_BLOCKS * sizeof (__u32)) {

---
>       if (l >= EXT2_N_BLOCKS * sizeof (unsigned long)) {

On the Alpha, this has the effect of allowing up to 120 characters of symlink info to be written into the inode itself, which can only hold 60 characters worth, in the area set aside for it (i_data[]). Without compression... :-(

--Jay++

------------------------------------------------------------------------------- American Non Sequitur Society: we don't make sense, but we do like pizza...

Jay A Estabrook Alpha Migration Tools Mailstop: TAY1-2 (DTN) 227-4202 Digital Equipment Corp. (external) (508) 952-4202 151 Taylor Street enet: jestabro@amt.tay1.dec.com Littleton, MA 01460-1407 decnet: tallis::jestabro -------------------------------------------------------------------------------