diff options
author | Neil Brown <neilb@suse.de> | 2006-05-26 04:28:33 +0000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2006-05-26 04:28:33 +0000 |
commit | d1f1011b94caa3506c63fb3d1d1a99dd282c7bc5 (patch) | |
tree | e645ba960d16de44f60fa6fbe8aca489d98ec883 /Assemble.c | |
parent | 589395d69664377f7cce99f6b73e33e3ec417b52 (diff) | |
download | mdadm-d1f1011b94caa3506c63fb3d1d1a99dd282c7bc5.tar.gz mdadm-d1f1011b94caa3506c63fb3d1d1a99dd282c7bc5.tar.xz mdadm-d1f1011b94caa3506c63fb3d1d1a99dd282c7bc5.zip |
Make sure everything compiles...
Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'Assemble.c')
-rw-r--r-- | Assemble.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -395,6 +395,7 @@ int Assemble(struct supertype *st, char *mddev, int mdfd, char *devname = tmpdev->devname; struct stat stb; /* looks like a good enough match to update the super block if needed */ +#ifndef MDASSEMBLE if (update) { int dfd; /* prepare useful information in info structures */ @@ -446,7 +447,9 @@ int Assemble(struct supertype *st, char *mddev, int mdfd, if (strcmp(update, "uuid")==0 && ident->bitmap_fd) bitmap_update_uuid(ident->bitmap_fd, info.uuid); - } else { + } else +#endif + { int dfd; dfd = dev_open(devname, O_RDWR|O_EXCL); |