[Ocfs2-commits] jlbec commits r1495 - branches/dlm-changes/src
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Mon Sep 27 12:23:05 CDT 2004
Author: jlbec
Date: 2004-09-27 12:23:03 -0500 (Mon, 27 Sep 2004)
New Revision: 1495
Modified:
branches/dlm-changes/src/ocfs2_fs.h
Log:
waka waka waka
Modified: branches/dlm-changes/src/ocfs2_fs.h
===================================================================
--- branches/dlm-changes/src/ocfs2_fs.h 2004-09-25 03:43:57 UTC (rev 1494)
+++ branches/dlm-changes/src/ocfs2_fs.h 2004-09-27 17:23:03 UTC (rev 1495)
@@ -227,9 +227,9 @@
} ocfs2_extent_rec;
typedef struct _ocfs2_chain_rec {
- __u32 c_free; /* number of free bits in this chain. */
- __u32 c_total;
- __u64 c_blkno; /* Physical disk offset (blocks) of 1st group */
+ __u32 c_free; /* Number of free bits in this chain. */
+ __u32 c_total; /* Number of total bits in this chain */
+ __u64 c_blkno; /* Physical disk offset (blocks) of 1st group */
} ocfs2_chain_rec;
/*
@@ -251,13 +251,18 @@
/*10*/ ocfs2_extent_rec l_recs[0]; /* Extent records */
} ocfs2_extent_list;
+/*
+ * On disk allocation chain list for OCFS2. Note that this is
+ * contained inside ocfs2_dinode, so the offsets are relative to
+ * ocfs2_dinode.id2.i_chain.
+ */
typedef struct _ocfs2_chain_list {
- __u16 cl_cpg; /* Clusters per Block Group */
- __u16 cl_bpc; /* Bits per cluster */
- __u16 cl_count;
- __u16 cl_next_free_rec;
+/*00*/ __u16 cl_cpg; /* Clusters per Block Group */
+ __u16 cl_bpc; /* Bits per cluster */
+ __u16 cl_count; /* Total chains in this list */
+ __u16 cl_next_free_rec; /* Next unused chain slot */
__u64 cl_reserved1;
- ocfs2_chain_rec cl_recs[0];
+/*10*/ ocfs2_chain_rec cl_recs[0]; /* Chain records */
} ocfs2_chain_list;
/*
@@ -417,16 +422,21 @@
typedef struct _ocfs2_group_desc
{
/*00*/ __u8 bg_signature[8]; /* Signature for validation */
- __u16 bg_size; /* Size of included bitmap in bytes. */
- __u16 bg_bits; /* Bits represented by this group. */
+ __u16 bg_size; /* Size of included bitmap in
+ bytes. */
+ __u16 bg_bits; /* Bits represented by this
+ group. */
__u16 bg_free_bits_count; /* Free bits count */
__u16 bg_chain; /* What chain I am in. */
- __u32 bg_generation;
- __u64 bg_next_group; /* Next group in my list, in blocks */
- __u64 bg_parent_dinode; /* dinode which owns me, in blocks */
+/*10*/ __u32 bg_generation;
+ __u32 bg_reserved1;
+ __u64 bg_next_group; /* Next group in my list, in
+ blocks */
+/*20*/ __u64 bg_parent_dinode; /* dinode which owns me, in
+ blocks */
__u64 bg_blkno; /* Offset on disk, in blocks */
- __u64 bg_reserved2[2];
- __u8 bg_bitmap[0];
+/*30*/ __u64 bg_reserved2[2];
+/*40*/ __u8 bg_bitmap[0];
} ocfs2_group_desc;
#ifdef __KERNEL__
More information about the Ocfs2-commits
mailing list