read/write/trunc events are managed region events--print a warning if

we try to set them with this tool.  (I get bitten by this, and confused by
it, too often)
This commit is contained in:
Dean Roehrich
2001-11-13 15:10:47 +00:00
parent d42ff43a96
commit 0d4e927911
+6
View File
@@ -167,6 +167,12 @@ main(
fprintf(stderr, "invalid event %s\n", argv[optind]);
usage();
}
if ((event == DM_EVENT_READ) || (event == DM_EVENT_WRITE) ||
(event == DM_EVENT_TRUNCATE)) {
fprintf(stderr, "Use set_region to twiddle read/write/trunc events\n");
exit(1);
}
DMEV_SET(event, eventset);
}