From 54bad3644f4ea8132a789e827d05d2e712b4f547 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Tue, 8 May 2007 17:17:33 +1000 Subject: Add --export option to --detail to use key=value pairs. udev likes to get information about a device as key=value pairs so it can create disk/by-id links etc. So add --export flag which causes the output of --detail to easily parsable. From: Kay Sievers --- mdadm.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mdadm.h') diff --git a/mdadm.h b/mdadm.h index 1fe58a2..da6b3b2 100644 --- a/mdadm.h +++ b/mdadm.h @@ -339,6 +339,7 @@ extern struct superswitch { void (*examine_super)(void *sbv, char *homehost); void (*brief_examine_super)(void *sbv); void (*detail_super)(void *sbv, char *homehost); + void (*export_super)(void *sbv); void (*brief_detail_super)(void *sbv); void (*uuid_from_super)(int uuid[4], void *sbv); void (*getinfo_super)(struct mdinfo *info, void *sbv); @@ -443,7 +444,7 @@ extern int Create(struct supertype *st, char *mddev, int mdfd, int runstop, int verbose, int force, int assume_clean, char *bitmap_file, int bitmap_chunk, int write_behind, int delay); -extern int Detail(char *dev, int brief, int test, char *homehost); +extern int Detail(char *dev, int brief, int export, int test, char *homehost); extern int Query(char *dev); extern int Examine(mddev_dev_t devlist, int brief, int scan, int SparcAdjust, struct supertype *forcest, char *homehost); -- cgit