lkml.org 
[lkml]   [2006]   [Oct]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Date
    Subject[PATCH 001 of 6] md: Send online/offline uevents when an md array starts/stops.

    This allows udev to do something intelligent when an
    array becomes available.

    cc: gregkh@suse.de
    Signed-off-by: Neil Brown <neilb@suse.de>

    ### Diffstat output
    ./drivers/md/md.c | 2 ++
    1 file changed, 2 insertions(+)

    diff .prev/drivers/md/md.c ./drivers/md/md.c
    --- .prev/drivers/md/md.c 2006-10-31 16:40:52.000000000 +1100
    +++ ./drivers/md/md.c 2006-10-31 16:41:02.000000000 +1100
    @@ -3200,6 +3200,7 @@ static int do_md_run(mddev_t * mddev)

    mddev->changed = 1;
    md_new_event(mddev);
    + kobject_uevent(&mddev->gendisk->kobj, KOBJ_ONLINE);
    return 0;
    }

    @@ -3313,6 +3314,7 @@ static int do_md_stop(mddev_t * mddev, i

    module_put(mddev->pers->owner);
    mddev->pers = NULL;
    + kobject_uevent(&mddev->gendisk->kobj, KOBJ_OFFLINE);
    if (mddev->ro)
    mddev->ro = 0;
    }
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/
    \
     
     \ /
      Last update: 2006-10-31 07:03    [W:0.021 / U:31.948 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site