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

Pavel Emelyanov xemul at parallels.com
Mon Apr 1 05:46:18 EDT 2013


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/

>  8 files changed, 864 insertions(+)
>  create mode 100644 tools/cpt2/src/include/bug.h
>  create mode 100644 tools/cpt2/src/include/err.h
>  create mode 100644 tools/cpt2/src/include/hash.h
>  create mode 100644 tools/cpt2/src/include/hashtable.h
>  create mode 100644 tools/cpt2/src/include/list.h
>  create mode 100644 tools/cpt2/src/include/magicfs.h
>  create mode 100644 tools/cpt2/src/include/memory.h
>  create mode 100644 tools/cpt2/src/include/types.h
> 




More information about the CRIU mailing list