diff options
author | Kay Sievers <kay.sievers@novell.com> | 2007-05-08 17:17:33 +1000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2007-05-08 17:17:33 +1000 |
commit | 54bad3644f4ea8132a789e827d05d2e712b4f547 (patch) | |
tree | 2cc04f49d0b3ef104ee2741425e095cf5888d89b /mdadm.h | |
parent | 2fb749d1b7588985b1834e43de4ec5685d0b8d26 (diff) | |
download | mdadm-54bad3644f4ea8132a789e827d05d2e712b4f547.tar.gz mdadm-54bad3644f4ea8132a789e827d05d2e712b4f547.tar.xz mdadm-54bad3644f4ea8132a789e827d05d2e712b4f547.zip |
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 <kay.sievers@novell.com>
Diffstat (limited to 'mdadm.h')
-rw-r--r-- | mdadm.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |