search for: lzo_e_ok

Displaying 1 result from an estimated 1 matches for "lzo_e_ok".

2013 Nov 26
1
[PATCH 3/3] makedumpfile/xen: Fail immediately if dump level is invalid
...d); static void setup_page_is_buddy(void); +int get_next_dump_level(int index); + void initialize_tables(void) { @@ -2903,7 +2905,7 @@ initial(void) { off_t offset; unsigned long size; - int debug_info = FALSE; + int debug_info = FALSE, dump_level, i; #ifdef USELZO if (lzo_init() == LZO_E_OK) @@ -2926,6 +2928,20 @@ initial(void) #endif if (is_xen_memory()) { + for (i = 0; ; ++i) { + dump_level = get_next_dump_level(i); + + if (dump_level < 0) + break; + + if (dump_level <= 1) + continue; + + MSG("Allowed Dump_Level for Xen dump filtering is 0 or 1\n"...