Commit 841a8ab
committed
Also check for deconfigured and check-stopped cards
When checking if a device is online, not only check the 'online' sysfs
attribute, but also check the 'config' and 'chkstop' attributes. Cards
and APQNs in check-stopped or deconfigured state can still be reported
as online via the sysfs attribute, although they are not available.
In case the 2 additional sysfs attributes are not available in sysfs,
then just rely on the 'online' attribute only.
Signed-off-by: Joerg Schmidbauer <jschmidb@de.ibm.com>1 parent 6e17971 commit 841a8ab
1 file changed
Lines changed: 41 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
329 | | - | |
| 329 | + | |
330 | 330 | | |
331 | | - | |
332 | | - | |
333 | | - | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
334 | 334 | | |
335 | | - | |
336 | | - | |
| 335 | + | |
337 | 336 | | |
338 | | - | |
339 | | - | |
340 | | - | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
341 | 345 | | |
342 | | - | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
343 | 351 | | |
344 | | - | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
345 | 360 | | |
346 | 361 | | |
347 | 362 | | |
| |||
381 | 396 | | |
382 | 397 | | |
383 | 398 | | |
| 399 | + | |
384 | 400 | | |
385 | 401 | | |
| 402 | + | |
386 | 403 | | |
387 | 404 | | |
388 | 405 | | |
| |||
393 | 410 | | |
394 | 411 | | |
395 | 412 | | |
396 | | - | |
| 413 | + | |
397 | 414 | | |
398 | | - | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
399 | 427 | | |
400 | 428 | | |
401 | 429 | | |
| |||
0 commit comments