Kexec Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] Replace lseek..write/read to pwrite/pread
@ 2014-04-26  4:07 Wang Nan
  2014-04-26  4:07 ` [PATCH 1/4] makedumpfile: redefine numerical limitaction macros Wang Nan
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Wang Nan @ 2014-04-26  4:07 UTC (permalink / raw)
  To: kumagai-atsushi; +Cc: Wang Nan, Liu Hua, Petr Tesarik, kexec, Geng Hui

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 <wangnan0@huawei.com>
Cc: Atsushi Kumagai <kumagai-atsushi@mxc.nes.nec.co.jp>
Cc: Petr Tesarik <ptesarik@suse.cz>
Cc: kexec@lists.infradead.org
Cc: Geng Hui <hui.geng@huawei.com>
Cc: Liu Hua <sdu.liu@huawei.com>

-- 
1.8.4


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2014-05-04  1:29 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-26  4:07 [PATCH 0/4] Replace lseek..write/read to pwrite/pread Wang Nan
2014-04-26  4:07 ` [PATCH 1/4] makedumpfile: redefine numerical limitaction macros Wang Nan
2014-04-28 14:23   ` Petr Tesarik
2014-04-28 22:21     ` Wang Nan
2014-04-26  4:07 ` [PATCH 2/4] makedumpfile: cleanup non-standard ULONGLONG_MAX macros Wang Nan
2014-04-26  4:07 ` [PATCH 3/4] makedumpfile: add -D_GNU_SOURCE to CFLAGS Wang Nan
2014-04-30 11:55   ` HATAYAMA Daisuke
2014-05-04  1:28     ` Wang Nan
2014-04-26  4:07 ` [PATCH 4/4] makedumpfile: use pread/pwrite to eliminate lseek Wang Nan
2014-04-30 11:41 ` [PATCH 0/4] Replace lseek..write/read to pwrite/pread HATAYAMA Daisuke
2014-04-30 11:53   ` Petr Tesarik
2014-04-30 12:19     ` HATAYAMA Daisuke
2014-04-30 13:21       ` Petr Tesarik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox