X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=managemon.c;h=f9d545d46fbac9142c06f1ea540896a78980e01d;hb=3b435195fc34ba447c8ca8fa2f90cd6d5ad88cdb;hp=e02c77ea964ef8fa6746ec05f06dc3835f312eb2;hpb=661dce36178960a20a5bcbb3bbf92e721df1bec0;p=thirdparty%2Fmdadm.git diff --git a/managemon.c b/managemon.c index e02c77ea..f9d545d4 100644 --- a/managemon.c +++ b/managemon.c @@ -1,8 +1,8 @@ /* * mdmon - monitor external metadata arrays * - * Copyright (C) 2007-2008 Neil Brown - * Copyright (C) 2007-2008 Intel Corporation + * Copyright (C) 2007-2009 Neil Brown + * Copyright (C) 2007-2009 Intel Corporation * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, @@ -395,7 +395,7 @@ static void manage_member(struct mdstat_ent *mdstat, * and open files for each newdev */ for (d = newdev; d ; d = d->next) { struct mdinfo *newd; - if (sysfs_add_disk(&newa->info, d) < 0) + if (sysfs_add_disk(&newa->info, d, 0) < 0) continue; newd = malloc(sizeof(*newd)); *newd = *d;