diff options
author | wboyer <wboyer> | 2008-11-20 01:20:20 +0000 |
---|---|---|
committer | wboyer <wboyer> | 2008-11-20 01:20:20 +0000 |
commit | 335a13040d3f5e09db28f87abbf35adce0fb6579 (patch) | |
tree | e7eac40b4c9f2a84d2d6766a61bdd0154a2d4024 /iprupdate.c | |
parent | b439704c40480065ec4eb7d6831284c224c56dba (diff) |
A few more active/active updates and fixes, also support new kevent paths
Diffstat (limited to 'iprupdate.c')
-rw-r--r-- | iprupdate.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/iprupdate.c b/iprupdate.c index 6233533..3a4c5ad 100644 --- a/iprupdate.c +++ b/iprupdate.c @@ -1,7 +1,7 @@ /** * IBM IPR adapter microcode update utility * - * (C) Copyright 2000, 2004 + * (C) Copyright 2000, 2008 * International Business Machines Corporation and others. * All Rights Reserved. This program and the accompanying * materials are made available under the terms of the @@ -10,7 +10,7 @@ */ /* - * $Header: /cvsroot/iprdd/iprutils/iprupdate.c,v 1.22 2006/01/05 20:20:48 brking Exp $ + * $Header: /cvsroot/iprdd/iprutils/iprupdate.c,v 1.23 2008/11/20 01:20:20 wboyer Exp $ */ #include <unistd.h> @@ -182,9 +182,11 @@ static void kevent_handler(char *buf) { polling_mode = 0; - if (!strncmp(buf, "change@/class/scsi_host", 23)) + if (!strncmp(buf, "change@/class/scsi_host", 23) || + (!strncmp(buf, "change@/devices/pci", 19) && strstr(buf, "scsi_host"))) scsi_host_kevent(buf, update_ioa); - else if (!strncmp(buf, "add@/class/scsi_generic", 23)) + else if (!strncmp(buf, "add@/class/scsi_generic", 23) || + (!strncmp(buf, "add@/devices/pci", 16) && strstr(buf, "scsi_generic"))) scsi_dev_kevent(buf, find_gen_dev, update_disk_fw); else if (!strncmp(buf, "add@/block/sd", 13)) scsi_dev_kevent(buf, find_blk_dev, update_disk_fw); |