summaryrefslogtreecommitdiff
path: root/bcache.h
diff options
context:
space:
mode:
authorKent Overstreet <koverstreet@google.com>2011-05-24 14:12:00 -0700
committerKent Overstreet <koverstreet@google.com>2011-05-24 14:12:00 -0700
commit9e6daaffa76bd44bbd60290e0e3bf1a9fb0f82bb (patch)
treeac36553a987fd236f66e6ca4d34066b302161a6c /bcache.h
parenteb9054a32e22d04c8ff3c7521084c0632ed80e70 (diff)
Don't overwrite priorities that aren't there on a backing device
Diffstat (limited to 'bcache.h')
-rw-r--r--bcache.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/bcache.h b/bcache.h
index deadbe3..6e62b6b 100644
--- a/bcache.h
+++ b/bcache.h
@@ -35,6 +35,8 @@ struct cache_sb {
uint16_t nr_in_set;
uint16_t nr_this_dev;
uint16_t _pad[1];
+#define SB_LABEL_SIZE 32
+ uint8_t label[SB_LABEL_SIZE];
};
struct bucket_disk {