xfs
[Top] [All Lists]

TAKE - work around gcc bug during xfs_growfs

Subject: TAKE - work around gcc bug during xfs_growfs
From: Eric Sandeen <sandeen@xxxxxxx>
Date: Wed, 10 Oct 2001 15:47:52 -0500
Sender: owner-linux-xfs@xxxxxxxxxxx
xfs_growfs was creating corrupted filesystems on kernels compiled with certain
compilers.

A macro was passed to the function, but the function did not receive the
correct value, i.e.:

function(MACRO(foo));

had a different result than

bar = MACRO(foo);
function(bar);

The latter case yielded correct results.

This bug resulted in AGF headers being placed into the wrong filesystem
blocks.

This was exibited on the 2.9x compilers in RH 7.1 and Mandrake 8.1.

"kgcc" and Mandrake's 3.0.1 compiler did not exhibit this problem.

Just another reminder that when we suggest the use of particular compilers,
it's for a good reason!  :)

Date:  Wed Oct 10 13:42:43 PDT 2001
Workarea:  stout.americas.sgi.com:/localhome/eric/2.4.x-xfs/workarea-reallyclean

The following file(s) were checked into:
  bonnie.engr.sgi.com:/isms/slinx/2.4.x-xfs


Modid:  2.4.x-xfs:slinx:104314a
linux/fs/xfs/xfs_fsops.c - 1.70
        - Work around gcc compiler bug



<Prev in Thread] Current Thread [Next in Thread>