diff options
author | Goldwyn Rodrigues <rgoldwyn@suse.com> | 2014-03-30 07:42:49 +0200 |
---|---|---|
committer | Goldwyn Rodrigues <rgoldwyn@suse.com> | 2015-02-23 14:30:11 +0100 |
commit | cf921cc19cf7c1e99f730a2faa02d80817d684a2 (patch) | |
tree | 702ad727e3310bc64b890bbe3195e50c3944370f /drivers/md/bitmap.h | |
parent | Return MD_SB_CLUSTERED if mddev is clustered (diff) | |
download | linux-cf921cc19cf7c1e99f730a2faa02d80817d684a2.tar.xz linux-cf921cc19cf7c1e99f730a2faa02d80817d684a2.zip |
Add node recovery callbacks
DLM offers callbacks when a node fails and the lock remastery
is performed:
1. recover_prep: called when DLM discovers a node is down
2. recover_slot: called when DLM identifies the node and recovery
can start
3. recover_done: called when all nodes have completed recover_slot
recover_slot() and recover_done() are also called when the node joins
initially in order to inform the node with its slot number. These slot
numbers start from one, so we deduct one to make it start with zero
which the cluster-md code uses.
Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Diffstat (limited to 'drivers/md/bitmap.h')
-rw-r--r-- | drivers/md/bitmap.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/bitmap.h b/drivers/md/bitmap.h index f4e53eadb083..ec9032f105b8 100644 --- a/drivers/md/bitmap.h +++ b/drivers/md/bitmap.h @@ -130,9 +130,9 @@ typedef struct bitmap_super_s { __le32 write_behind; /* 60 number of outstanding write-behind writes */ __le32 sectors_reserved; /* 64 number of 512-byte sectors that are * reserved for the bitmap. */ - __le32 nodes; /* 68 the maximum number of nodes in cluster. */ - __u8 pad[256 - 72]; /* set to zero */ + __u8 cluster_name[64]; /* 72 cluster name to which this md belongs */ + __u8 pad[256 - 136]; /* set to zero */ } bitmap_super_t; /* notes: |