On 10/29/2010 7:19 AM, Czarnowska, Anna wrote:
From c0bbe01f5f73d123af899338e838d45df1a4abee Mon Sep 17 00:00:00 2001 From: Anna Czarnowska<anna.czarnowska@xxxxxxxxx> Date: Fri, 22 Oct 2010 13:23:15 +0200 Subject: [PATCH 05/17] Util: get device size from id Signed-off-by: Anna Czarnowska<anna.czarnowska@xxxxxxxxx> --- mdadm.h | 1 + util.c | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 0 deletions(-) diff --git a/mdadm.h b/mdadm.h index 450fb11..66363fb 100644 --- a/mdadm.h +++ b/mdadm.h @@ -745,6 +745,7 @@ static inline 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); +extern int dev_size_from_id(unsigned id, unsigned long long *size);
Small nits: id should be dev_t. ...and this patch should be squashed into the patch that uses it. -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html