Instead of writing errors to

/local/domain/0/backend/<devclass>/<dom>/<devid>/error, write them instead to
/local/domain/0/error/backend/<yada>.  This is not the best place for them
perhaps, but it moves them out of the backend directory, on which the drivers
have a watch.  This fixes the problem whereby writing an error will trigger a
watch, causing the error message to be written again, and repeat.  Fixes bug
#286.
 
Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
emellor@leeni.uk.xensource.com committed 2005-10-23 22:34:13 +01:00
1 parent dab3d2969d
commit 4384b3fc70
3 files changed
+58 -10

No files matched your search

+3 -1
View File
@@ -107,7 +107,9 @@ def diagnose_devices():
print ("Cannot find backend path for device %s, %s." %
(deviceClass, device))
else:
backend_error = xstransact.Read(backendPath, 'error')
backend_error = xstransact.Read(
backendPath.replace('backend/', 'error/backend/'),
'error')
if backend_error:
diagnose_device_error(backend_error)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.