Skip to contentSkip to conversation

return a non-zero exit status when the BLKTRACETEARDOWN ioctl fails

PATCH New Jeff Moyer 1 participant 1 message May 28, 2009

lore
Share & tools
lore

Jeff Moyer

author
#0 lore raw

PATCH 1/1 return a non-zero exit status when the BLKTRACETEARDOWN ioctl fails

Hi,

I'm doing some scripting, and would really like to know when things fail. ;)

blktrace.c +1 -0
index b4c919d..23f3eb5 100644
@@ -2634,6 +2634,7 @@ int main(int argc, char *argv[])
 				fprintf(stderr,
 					"BLKTRACETEARDOWN %s failed: %d/%s\n",
 					dpp->path, errno, strerror(errno));
+				ret = 1;
 			}
 		}
 	} else if (net_mode = Net_server) {