Add API_EXPORT to ason_ns_get_meta

Signed-off-by: Casey Dahlin <cdahlin@redhat.com>
Add ason_connect method

This method takes a "connection string" and creates an ASON namespace according
to it. Useful as we grow more types of namespace.

Signed-off-by: Casey Dahlin <cdahlin@redhat.com>
Assigning variable in bad namespace returns error

Signed-off-by: Casey Dahlin <cdahlin@redhat.com>
Add blockfiles

Blockfiles are a simple API for writing to files via mmap. They allow for
extents to be allocated and freed, and the mapping functions enforce usage of
those extents.

Signed-off-by: Casey Dahlin <cdahlin@redhat.com>
Map blockfile colormap from correct location

Signed-off-by: Casey Dahlin <cdahlin@redhat.com>
Correctly iterate the colormap when allocating

Signed-off-by: Casey Dahlin <cdahlin@redhat.com>
Return -ENOSPC when a blockfile is too full to allocate

Signed-off-by: Casey Dahlin <cdahlin@redhat.com>
Correctly calculate new size when allocating

Signed-off-by: Casey Dahlin <cdahlin@redhat.com>
Fix trailing whitespace

Signed-off-by: Casey Dahlin <cdahlin@redhat.com>
Fix uninitialized variable

Signed-off-by: Casey Dahlin <cdahlin@redhat.com>
Ignore ns_test binary

Signed-off-by: Casey Dahlin <cdahlin@redhat.com>
Use unsigned chars when doing bit fiddling

Signed-off-by: Casey Dahlin <cdahlin@redhat.com>
Correctly handle freeing already-free area

Signed-off-by: Casey Dahlin <cdahlin@redhat.com>
Test suite for blockfiles

Signed-off-by: Casey Dahlin <cdahlin@redhat.com>