summaryrefslogtreecommitdiffstats
path: root/mdadm.h
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2007-12-14 20:14:38 +1100
committerNeil Brown <neilb@suse.de>2007-12-14 20:14:38 +1100
commit1686dc25ecf60a9b7691d73fc2b5a7e08184c940 (patch)
tree828cbf76ac4e341c9c50fb9e2a90efcdefd5e76b /mdadm.h
parent3da92f272d017b1817b13f37f41c1ed4d6117291 (diff)
downloadmdadm-1686dc25ecf60a9b7691d73fc2b5a7e08184c940.tar.gz
mdadm-1686dc25ecf60a9b7691d73fc2b5a7e08184c940.tar.xz
mdadm-1686dc25ecf60a9b7691d73fc2b5a7e08184c940.zip
Find super from fd on an array.
We used to use the major/minor numbers, but that isn't sufficient any more, so pass the fd, and possibly check 'text' version.
Diffstat (limited to 'mdadm.h')
-rw-r--r--mdadm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdadm.h b/mdadm.h
index 0156e37..a001e9f 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -381,7 +381,7 @@ struct supertype {
void *sb;
};
-extern struct supertype *super_by_version(int vers, int minor);
+extern struct supertype *super_by_fd(int fd);
extern struct supertype *guess_super(int fd);
extern struct supertype *dup_super(struct supertype *st);
extern int get_dev_size(int fd, char *dname, unsigned long long *sizep);