diff mbox

[1,of,1] dm log userspace check additional error conditions

Message ID 201009291403.o8TE3N9b003300@hydrogen.msp.redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Jonthan Brassow Sept. 29, 2010, 2:03 p.m. UTC
None
diff mbox

Patch

Index: linux-2.6/drivers/md/dm-log-userspace-base.c
===================================================================
--- linux-2.6.orig/drivers/md/dm-log-userspace-base.c
+++ linux-2.6/drivers/md/dm-log-userspace-base.c
@@ -181,8 +181,11 @@  static int userspace_ctr(struct dm_dirty
 	r = dm_consult_userspace(lc->uuid, lc->luid, DM_ULOG_CTR,
 				 ctr_str, str_size, NULL, NULL);
 
-	if (r == -ESRCH) {
-		DMERR("Userspace log server not found");
+	if (r < 0) {
+		if (r == -ESRCH)
+			DMERR("Userspace log server not found");
+		else
+			DMERR("Userspace log server failed to create log");
 		goto out;
 	}