Re: [RFC v3][PATCH 8/9] File descriprtors (dump)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Oren Laadan
Date: Saturday, September 6, 2008 - 9:52 pm

Dave Hansen wrote:

Can you suggest a better way to find the open files of a task ?

Either I loop twice (loop to count, then allocate, then loop to fill),
or optimistically try an initial guess and expand on demand.


Of course. Eventually, 'struct user' will be another shared object that
is encountered and saved with the checkpoint image.


There will be others that cannot be inferred from inode->i_mode,
e.g. CR_FD_FILE_UNLINKED, CR_FD_DIR_UNLINKED, CR_FD_SOCK_UNIX,
CR_FD_SOCK_INET_V4, CR_FD_EVENTPOLL etc.


[...]

Oren.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC v3][PATCH 0/9] Kernel based checkpoint/restart, Oren Laadan, (Thu Sep 4, 12:57 am)
[RFC v3][PATCH 4/9] Memory management (dump), Oren Laadan, (Thu Sep 4, 1:03 am)
[RFC v3][PATCH 5/9] Memory managemnet (restore), Oren Laadan, (Thu Sep 4, 1:04 am)
[RFC v3][PATCH 8/9] File descriprtors (dump), Oren Laadan, (Thu Sep 4, 1:05 am)
[RFC v3][PATCH 9/9] File descriprtors (restore), Oren Laadan, (Thu Sep 4, 1:06 am)
Re: [RFC v3][PATCH 8/9] File descriprtors (dump), Louis Rilling, (Thu Sep 4, 2:47 am)
Re: [RFC v3][PATCH 8/9] File descriprtors (dump), Oren Laadan, (Thu Sep 4, 7:43 am)
Re: [RFC v3][PATCH 8/9] File descriprtors (dump), Dave Hansen, (Thu Sep 4, 8:01 am)
Re: [RFC v3][PATCH 5/9] Memory managemnet (restore), Dave Hansen, (Thu Sep 4, 11:08 am)
Re: [RFC v3][PATCH 4/9] Memory management (dump), Dave Hansen, (Thu Sep 4, 11:25 am)
Re: [RFC v3][PATCH 8/9] File descriprtors (dump), Dave Hansen, (Thu Sep 4, 11:41 am)
Re: [RFC v3][PATCH 4/9] Memory management (dump), Oren Laadan, (Sat Sep 6, 6:54 pm)
Re: [RFC v3][PATCH 5/9] Memory managemnet (restore), Oren Laadan, (Sat Sep 6, 8:09 pm)
Re: [RFC v3][PATCH 8/9] File descriprtors (dump), Oren Laadan, (Sat Sep 6, 9:52 pm)
Re: [RFC v3][PATCH 4/9] Memory management (dump), Dave Hansen, (Mon Sep 8, 8:55 am)
Re: [RFC v3][PATCH 5/9] Memory managemnet (restore), Dave Hansen, (Mon Sep 8, 9:49 am)
Re: [RFC v3][PATCH 8/9] File descriprtors (dump), Dave Hansen, (Mon Sep 8, 9:57 am)
Re: [RFC v3][PATCH 5/9] Memory managemnet (restore), Oren Laadan, (Mon Sep 8, 11:01 pm)
Re: [RFC v3][PATCH 5/9] Memory managemnet (restore), Dave Hansen, (Wed Sep 10, 2:42 pm)
Cleanups for: [PATCH 5/9] Memory managemnet (restore), Dave Hansen, (Wed Sep 10, 3:00 pm)
Re: [RFC v3][PATCH 5/9] Memory managemnet (restore), Oren Laadan, (Thu Sep 11, 12:37 am)
Re: [RFC v3][PATCH 5/9] Memory managemnet (restore), Serge E. Hallyn, (Thu Sep 11, 8:38 am)
Re: [RFC v3][PATCH 5/9] Memory managemnet (restore), Dave Hansen, (Fri Sep 12, 9:34 am)