diff options
author | Alan D. Brunelle <alan.brunelle@hp.com> | 2009-01-23 09:48:21 -0500 |
---|---|---|
committer | Alan D. Brunelle <alan.brunelle@hp.com> | 2009-01-23 09:48:21 -0500 |
commit | 99bb5ebc255618e4af913d2e5f1bf268af552bdf (patch) | |
tree | 583ae4e2f228cdad0098560c21baf592d25dc259 /btt/bno_dump.c | |
parent | 69dd57c2986bb025d7de12ab6eb52d5cd130d453 (diff) | |
download | blktrace-99bb5ebc255618e4af913d2e5f1bf268af552bdf.tar.gz blktrace-99bb5ebc255618e4af913d2e5f1bf268af552bdf.tar.bz2 |
Fix btt to handle large numbers of output files
Simply bump resource limits if file opens fail, and retry.
Signed-off-by: Alan D. Brunelle <alan.brunelle@hp.com>
Diffstat (limited to 'btt/bno_dump.c')
-rw-r--r-- | btt/bno_dump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/btt/bno_dump.c b/btt/bno_dump.c index 1f5433b..7f7680e 100644 --- a/btt/bno_dump.c +++ b/btt/bno_dump.c @@ -37,7 +37,7 @@ static FILE *bno_dump_open(__u32 device, char rwc) oname = malloc(strlen(bno_dump_name) + 32); sprintf(oname, "%s_%03d,%03d_%c.dat", bno_dump_name, mjr, mnr, rwc); - if ((fp = fopen(oname, "w")) == NULL) + if ((fp = my_fopen(oname, "w")) == NULL) perror(oname); else add_file(&bno_dump_files, fp, oname); |