In original code there are many operations read from /write to specific positions of a file. This series of patches replace such patterns to pread/pwrite calls, reduces more than 100 lines of code.
Wang Nan (4): makedumpfile: redefine numerical limitaction macros. makedumpfile: cleanup non-standard ULONGLONG_MAX macros makedumpfile: add -D_GNU_SOURCE to CFLAGS makedumpfile: use pread/pwrite to eliminate lseek Makefile | 4 +- common.h | 19 ++++-- makedumpfile.c | 198 ++++++++++++--------------------------------------------- 3 files changed, 58 insertions(+), 163 deletions(-) Signed-off-by: Wang Nan <[email protected]> Cc: Atsushi Kumagai <[email protected]> Cc: Petr Tesarik <[email protected]> Cc: [email protected] Cc: Geng Hui <[email protected]> Cc: Liu Hua <[email protected]> -- 1.8.4 _______________________________________________ kexec mailing list [email protected] http://lists.infradead.org/mailman/listinfo/kexec
