[CRIU] [PATCH 06/32] tools: cpt2 -- Add a bunch of headers needed

Cyrill Gorcunov gorcunov at openvz.org
Mon Apr 1 06:01:47 EDT 2013


On Mon, Apr 01, 2013 at 01:54:14PM +0400, Pavel Emelyanov wrote:
> On 04/01/2013 01:51 PM, Cyrill Gorcunov wrote:
> > On Mon, Apr 01, 2013 at 01:46:18PM +0400, Pavel Emelyanov wrote:
> >> On 03/31/2013 01:42 AM, Cyrill Gorcunov wrote:
> >>>
> >>> This commit adds a couple of headers which will be
> >>> needed for cpt2 tool. In particular
> >>>
> >>>  - bug.h -- for BUG/BUG_ON helpers
> >>>  - err.h -- for pointer/error code casting
> >>>  - hash.h/hashtable.h -- helpers for efficient hashing
> >>>  - list.h -- list/hash-list helpers
> >>>  - magicfs.h -- for superblock magic numbers
> >>>  - memory.h -- for xalloc/free helpers
> >>>  - types.h -- general types for cpt2 tool
> >>>
> >>> Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
> >>> ---
> >>>  tools/cpt2/src/include/bug.h       |  24 +++
> >>>  tools/cpt2/src/include/err.h       |  53 +++++
> >>>  tools/cpt2/src/include/hash.h      |  73 +++++++
> >>>  tools/cpt2/src/include/hashtable.h |  90 ++++++++
> >>>  tools/cpt2/src/include/list.h      | 423 +++++++++++++++++++++++++++++++++++++
> >>>  tools/cpt2/src/include/magicfs.h   |  35 +++
> >>>  tools/cpt2/src/include/memory.h    |  38 ++++
> >>>  tools/cpt2/src/include/types.h     | 128 +++++++++++
> >>
> >> Most of the above lives in crtools/include/
> > 
> > No they are not. Only bug.h is the same, the rest is different.
> 
> O'RLY? Even list.h differs?! Ok, maybe not most, but a lot of.

yes, list.h has hashing list entries which is not in crtools
code yet, i simply tries to patch crtools code as less
as possible.


More information about the CRIU mailing list