diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2011-12-28 16:19:53 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2011-12-28 16:19:53 +0000 |
commit | d1db948226e4fb4b4e18dce6909a321447c5e6a9 (patch) | |
tree | 58f308e3f6b34a06378342a0e1e29a90472c6e9f /sys/dev/softraidvar.h | |
parent | a7ea4e0a0bb8bbac90652f9ff777c76cd5fcfb34 (diff) |
Cleanup the metadata initialisation process - have sr_meta_init()
initialise both the volume and chunk metadata before the discipline
specific sd_create() function is called. The sr_meta_init_complete()
function is then called to complete the initialisation based on values
provided by sd_create().
Diffstat (limited to 'sys/dev/softraidvar.h')
-rw-r--r-- | sys/dev/softraidvar.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/softraidvar.h b/sys/dev/softraidvar.h index 5e21721463a..beb8aaaad71 100644 --- a/sys/dev/softraidvar.h +++ b/sys/dev/softraidvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: softraidvar.h,v 1.111 2011/12/26 14:54:52 jsing Exp $ */ +/* $OpenBSD: softraidvar.h,v 1.112 2011/12/28 16:19:52 jsing Exp $ */ /* * Copyright (c) 2006 Marco Peereboom <marco@peereboom.us> * Copyright (c) 2008 Chris Kuethe <ckuethe@openbsd.org> @@ -465,6 +465,8 @@ struct sr_volume { /* runtime data */ struct sr_chunk_head sv_chunk_list; /* linked list of all chunks */ struct sr_chunk **sv_chunks; /* array to same chunks */ + int64_t sv_chunk_minsz; /* Size of smallest chunk. */ + int64_t sv_chunk_maxsz; /* Size of largest chunk. */ /* sensors */ struct ksensor sv_sensor; |