[Ocfs2-tools-commits] zab commits r1023 -
branches/endian-safe/mkfs.ocfs2
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Thu Aug 4 18:13:53 CDT 2005
Author: zab
Date: 2005-08-04 18:13:51 -0500 (Thu, 04 Aug 2005)
New Revision: 1023
Modified:
branches/endian-safe/mkfs.ocfs2/mkfs.c
Log:
o swap the group desc copy to be written, not the memory source
Modified: branches/endian-safe/mkfs.ocfs2/mkfs.c
===================================================================
--- branches/endian-safe/mkfs.ocfs2/mkfs.c 2005-08-04 23:09:18 UTC (rev 1022)
+++ branches/endian-safe/mkfs.ocfs2/mkfs.c 2005-08-04 23:13:51 UTC (rev 1023)
@@ -1758,7 +1758,7 @@
write_bitmap_data(State *s, AllocBitmap *bitmap)
{
int i;
- uint64_t parent_blkno, blkno;
+ uint64_t parent_blkno;
ocfs2_group_desc *gd;
char *buf = NULL;
@@ -1776,9 +1776,9 @@
* blkno until now. */
gd->bg_parent_dinode = parent_blkno;
memcpy(buf, gd, s->blocksize);
- blkno = gd->bg_blkno;
- ocfs2_swap_group_desc(gd);
- do_pwrite(s, buf, s->cluster_size, blkno << s->blocksize_bits);
+ ocfs2_swap_group_desc((ocfs2_group_desc *)buf);
+ do_pwrite(s, buf, s->cluster_size,
+ gd->bg_blkno << s->blocksize_bits);
}
free(buf);
}
More information about the Ocfs2-tools-commits
mailing list