summaryrefslogtreecommitdiff
path: root/bcache.h
diff options
context:
space:
mode:
authorJacob Malevich <jam@daterainc.com>2015-01-12 14:57:41 -0800
committerJacob Malevich <jam@daterainc.com>2015-01-13 13:51:05 -0800
commit4304193d313c52ca4d0aaa0a4fb987bc8bfa6ec5 (patch)
tree4e9695015d6c9ca4c3e3571fd1e943c4e9be7b0b /bcache.h
parentcbf0900b35d1f6861c81260627593cfa2065b451 (diff)
bcacheadm: fix status for forcefully pulled devs
Cross reference the superblock with the highest sequence number to sysfs. If there is a device shown still active in the superblock, mark it as 'missing'. Fixes DAT-1758 Change-Id: I13098bbde6bd4b0b402c74ed648160576605311c Signed-off-by: Jacob Malevich <jam@daterainc.com>
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 4cfac71f..166f6fdf 100644
--- a/bcache.h
+++ b/bcache.h
@@ -109,6 +109,8 @@ char *find_matching_uuid(char *, char *, const char*);
char *add_devices(char *const *, char *);
char *remove_device(const char *, bool);
char *bcache_get_capacity(const char *, const char *, bool);
+char *dev_name(const char *);
+
#define csum_set(i, type) \
({ \