Index: jfsutils/libfs/log_work.c =================================================================== RCS file: /cvsroot/jfs/jfsutils/libfs/log_work.c,v retrieving revision 1.21 diff -u -p -r1.21 log_work.c --- jfsutils/libfs/log_work.c 15 Dec 2004 15:53:45 -0000 1.21 +++ jfsutils/libfs/log_work.c 22 Mar 2005 19:23:17 -0000 @@ -1,5 +1,5 @@ /* - * Copyright (c) International Business Machines Corp., 2000-2002 + * Copyright (C) International Business Machines Corp., 2000-2005 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -2758,6 +2758,11 @@ int updatePage(struct lrd *ld, int32_t l off += 1; data += linesize; seglen -= linesize; + /* + * i_data overlaps btroot. + * Strip of 32 bytes + */ + seglen -= 32; } else if (db->db_idata & mask_8) { /* Only update ibase */ db->db_ibase |= mask_8; @@ -2766,6 +2771,11 @@ int updatePage(struct lrd *ld, int32_t l /* update both */ db->db_ibase |= mask_8; db->db_idata |= mask_8; + /* + * i_data overlaps btroot. + * Strip of 32 bytes + */ + seglen -= 32; } } } else if (ino_rem == 1) { /* inline data */