libcmfs: add dummy blockcheck.c

Meta data checksum is an important feature which is not in current
feature list. Here a dummy cmfs_validate_meta_ecc() is added here to
remind me to work on it in future.
libcmfs: add cmfs_swap_extent_list_to_cpu()

Add a new file libcmfs/extents.c, for cmfs_swap_extent_list_to_cpu() and
the depended routines.
libcmfs: add cmfs_freefs()

Add cmfs_freefs() routine to a new created file libcmfs/freefs.c.
This routine frees memory objects within cmfs_filesys object, and
finally frees the cmfs_filesys object itself.
libcmfs: add cmfs_swap_inode_to_cpu()

Add cmfs_swap_inode_to_cpu() to new created libcmfs/indoe.c. This commit
also includes other routines needed by cmfs_swap_inode_to_cpu().
libcmfs: add several memory menagement routines in libcmfs/memory.c

This commit adds a new file libcmfs/memory.c, which includes several
memory management routines like,
- cmfs_malloc()
- cmfs_malloc0()
- cmfs_free()
- cmfs_malloc_blocks()
- cmfs_malloc_block()
cmfs-tools: add AM_PROG_CC_C_O to configure.ac

When add Werror and Wall, automake complains AM_PROG_CC_C_O is needed in
configure.ac. Add this macro to make autoconf/automake work without
warning.
cmfs-tools: Add compatibility flags in include/cmfs-kenrel/cmfs_fs.h

This patch adds compatibility related stuffs includes,
- compatibility flags
	* CMFS_FEATURE_COMPAT_BACKUP_SB
	* CMFS_FEATURE_COMPAT_JBD2_SB
	* CMFS_FEATURE_COMPAT_INLINE_DATA
	* CMFS_FEATURE_COMPAT_META_ECC
	* CMFS_FEATURE_COMPAT_INDEXED_DIRS
	* CMFS_FEATURE_COMPAT_REFCOUNT_TREE
	* CMFS_FEATURE_COMPAT_UNWRITTEN
	* CMFS_FEATURE_COMPAT_TUNEFS_INPROG
	* CMFS_FEATURE_COMPAT_RESIZE_INPROG
- cmfs_max_inline_data()
- macro CMFS_HAS_COMPAT_FEATURE()
mkfs.cmfs: more changes to mkfs.cmfs/Makefile.am

Changes in this patch are,
- add Wall and Werror CFLAGS
- link libaio when build mkfs.cmfs
cmfs-tools: add member_offset.c in  misc/Makefile.am

Previous commit to misc/Makefile.am has a typo, mkfs_cmfs_SOURCES should
be member_offset_SOURCES. This patch fixes this typo.
libcmfs: add missing headers in libcmfs/unix_io.c

This patch includes missing headers in libcmfs/unix_io.c, e.g.
- sys/stat.h
- asssert.h
- sys/mman.h
- sys/ioctl.h
libcmfs: add cmfs_read_super() to openfs.c

This patch adds cmfs_read_super() and other routines depended by
cmfs_read_super() in libcmfs/openfs.c. All new added routines includes,
- cmfs_read_super()
- cmfs_read_blocks()
- __cmfs_read_block()
libcmfs: code cleanup in ismounted.c

This patch removes several unsed variables which complained by gcc with
-Wall & -Werror.
libcmfs: remove unused routine in libcmfs/getsize.c

valid_offset() is not used in cmfs_get_device_size(), so remove it in
this patch.
libcmfs: add missing header in libcmfs/getsectorsize.c

Gcc complains there is a missing header "unistd.h". This patch add the
missing header to remove gcc warning.
libcmfs: add more errcode to cmfs_err.et

This patch adds 2 error codes in cmfs_err.et,
- CMFS_ET_CORRUPT_SUPERBLOCK
- CMFS_ET_BAD_MAGIC
libcmfs: add more stuffs in libcmfs/Makefile.am

This patch adds more stuffs in libcmfs/Makefile.am, includes,
- add freefs.c, memory.c, inode.c, blockecheck.c, extents.c in
  libcmfs_a_SOURCES
- add -Wall & -Werror in libcmfs_a_CFLAGS
cmfs-tools: add more stuffs in include/cmfs/cmfs.h

This patch adds more stuffs in include/cmfs/cmfs.h, includes,
- more CMFS_FLAG_xxx
- macro CMFS_SB()
- more routine declarations
- inline routines,
	* cmfs_clusters_to_blocks()
	* cmfs_meta_ecc()
	* cmfs_supports_indexed_dirs()
	* cmfs_swap_barrier()