mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user