commit | 38fcf16b182fae0e3dd88403ac5362c9f16f1297 | [log] [tgz] |
---|---|---|
author | Paul Stewart <pstew@chromium.org> | Fri Jun 12 09:52:17 2015 -0700 |
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | Sat Jun 13 17:04:45 2015 +0000 |
tree | 8fc1c73d7182360ac938cb128b55a74321208293 | |
parent | 31e6941b9578ee16a3dd0f07e47bbe614836b456 [diff] |
shill: Device: Qualify flag file write errors When a device is destroyed, shill takes its normal steps to shutting down the device, which includes resetting various procfs files to their original states. However if the device is already gone at the system level, these files may no longer exist. This particular case should not be an error. To catch and discard these errors, track flag files that were previously writable but are now missing, and emit a message at a debug level instead. BUG=chromium:498908 TEST="rmmod asix; modprobe asix; grep flag.write /var/log/messages" with Ethernet Change-Id: I44b3eeb20589ea1b906ffd9f41aa0583ad07eaa7 Reviewed-on: https://chromium-review.googlesource.com/277270 Reviewed-by: mukesh agrawal <quiche@chromium.org> Reviewed-by: Paul Stewart <pstew@chromium.org> Commit-Queue: Paul Stewart <pstew@chromium.org> Tested-by: Paul Stewart <pstew@chromium.org>