* [PATCH] Fix total byte read/write count for large checkpoint images
@ 2009-10-23 16:38 Matt Helsley
[not found] ` <1256315918-3378-1-git-send-email-matthltc-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Matt Helsley @ 2009-10-23 16:38 UTC (permalink / raw)
To: Oren Laadan; +Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA
Though currently unused, total relies on checkpoint images being less
than 2GB. Since we've had 64-bit archs and LARGEFILE support for some
time it's not totally unreasonable to make this a 64-bit quantity.
Signed-off-by: Matt Helsley <matthltc-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
---
include/linux/checkpoint_types.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/linux/checkpoint_types.h b/include/linux/checkpoint_types.h
index fa57cdc..5cc11d9 100644
--- a/include/linux/checkpoint_types.h
+++ b/include/linux/checkpoint_types.h
@@ -48,7 +48,7 @@ struct ckpt_ctx {
unsigned long oflags; /* restart: uflags from checkpoint */
struct file *file; /* input/output file */
- int total; /* total read/written */
+ loff_t total; /* total read/written */
atomic_t refcount;
--
1.5.6.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Fix total byte read/write count for large checkpoint images
[not found] ` <1256315918-3378-1-git-send-email-matthltc-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
@ 2009-10-23 18:44 ` Oren Laadan
0 siblings, 0 replies; 2+ messages in thread
From: Oren Laadan @ 2009-10-23 18:44 UTC (permalink / raw)
To: Matt Helsley; +Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA
Pulled, thanks.
Matt Helsley wrote:
> Though currently unused, total relies on checkpoint images being less
> than 2GB. Since we've had 64-bit archs and LARGEFILE support for some
> time it's not totally unreasonable to make this a 64-bit quantity.
>
> Signed-off-by: Matt Helsley <matthltc-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
> ---
> include/linux/checkpoint_types.h | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/include/linux/checkpoint_types.h b/include/linux/checkpoint_types.h
> index fa57cdc..5cc11d9 100644
> --- a/include/linux/checkpoint_types.h
> +++ b/include/linux/checkpoint_types.h
> @@ -48,7 +48,7 @@ struct ckpt_ctx {
> unsigned long oflags; /* restart: uflags from checkpoint */
>
> struct file *file; /* input/output file */
> - int total; /* total read/written */
> + loff_t total; /* total read/written */
>
> atomic_t refcount;
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-10-23 18:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-23 16:38 [PATCH] Fix total byte read/write count for large checkpoint images Matt Helsley
[not found] ` <1256315918-3378-1-git-send-email-matthltc-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2009-10-23 18:44 ` Oren Laadan
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.