api: do not truncate api dump file size
Type: fix Change-Id: I5c81d2f55057f5fba780cb12154a3fb1aef79f20 Signed-off-by: Benoît Ganne <bganne@cisco.com> (cherry picked from commit aba4983ad48374a50cd93ba91f66be241f210279)
This commit is contained in:
parent
e700b5e431
commit
af0bf322d7
@ -430,7 +430,7 @@ vl_msg_api_process_file (vlib_main_t * vm, u8 * filename,
|
||||
}
|
||||
|
||||
file_size = statb.st_size;
|
||||
file_size = (file_size + 4095) & ~(4096);
|
||||
file_size = (file_size + 4095) & ~(4095);
|
||||
|
||||
hp = mmap (0, file_size, PROT_READ, MAP_PRIVATE, fd, 0);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user