summaryrefslogtreecommitdiffstats
path: root/mdadm.h
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2006-12-14 17:33:14 +1100
committerNeil Brown <neilb@suse.de>2006-12-14 17:33:14 +1100
commit350f29f90d1f6bb3ddfafea368327911f9e8b27c (patch)
treeeada62e3fadcadb4c3de3df72098687b0bd625f8 /mdadm.h
parent3d3dd91e3837d5eb6eeaa876c39153f2b0a4929d (diff)
downloadmdadm-350f29f90d1f6bb3ddfafea368327911f9e8b27c.tar.gz
mdadm-350f29f90d1f6bb3ddfafea368327911f9e8b27c.tar.xz
mdadm-350f29f90d1f6bb3ddfafea368327911f9e8b27c.zip
Centralise code for copying uuid
Rather than opencoding the byteswap all the time.
Diffstat (limited to 'mdadm.h')
-rw-r--r--mdadm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/mdadm.h b/mdadm.h
index b4bf343..d40d187 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -460,6 +460,7 @@ extern void free_line(char *line);
extern int match_oneof(char *devices, char *devname);
extern void uuid_from_super(int uuid[4], mdp_super_t *super);
extern int same_uuid(int a[4], int b[4], int swapuuid);
+extern void copy_uuid(void *a, int b[4], int swapuuid);
/* extern int compare_super(mdp_super_t *first, mdp_super_t *second);*/
extern unsigned long calc_csum(void *super, int bytes);
extern int enough(int level, int raid_disks, int layout, int clean,