Import "Big Brother filesystem" as a stub fs implementation.

Source is accessible on http://www.cs.nmsu.edu/~pfeiffer/fuse-tutorial

Signed-off-by: Adam Tkac <adam.tkac@geodis.cz>
Renamed bbfs.c to lazfs.c

Signed-off-by: Adam Tkac <adam.tkac@geodis.cz>
# This is a combination of 2 commits.
# The first commit's message is:

Implement is_lazfile helper function.

Signed-off-by: Adam Tkac <adam.tkac@geodis.cz>

# The 2nd commit message will be skipped:

#	Bugfix in util.c
#	Signed-off-by: Adam Tkac <adam.tkac@geodis.cz>
Implement is_lazfile helper function.

Signed-off-by: Adam Tkac <adam.tkac@geodis.cz>
Add framework for caching unzipped las files.

Signed-off-by: Adam Tkac <adam.tkac@geodis.cz>
Add stub hooks for .las files into filesystem calls.

Signed-off-by: Adam Tkac <adam.tkac@geodis.cz>
Create .las file cache during startup.

Signed-off-by: Adam Tkac <adam.tkac@geodis.cz>
Add .las hook to open() which decompresses .laz when .las is requested.

Signed-off-by: Adam Tkac <adam.tkac@geodis.cz>
Add cache_get() function.

Signed-off-by: Adam Tkac <adam.tkac@geodis.cz>
Implement .las hook in read() function.

Signed-off-by: Adam Tkac <adam.tkac@geodis.cz>
Fix cache_create

Signed-off-by: Adam Tkac <adam.tkac@geodis.cz>
Change return value of cache_remove to void

Signed-off-by: Adam Tkac <adam.tkac@geodis.cz>
cache_remove could crashed when removed last item from the cache list.

Signed-off-by: Adam Tkac <adam.tkac@geodis.cz>
Add .las hooks to release()

Signed-off-by: Adam Tkac <adam.tkac@geodis.cz>
Move decompression logic from open() to util.c:decompress() function.

Signed-off-by: Adam Tkac <adam.tkac@geodis.cz>
Implement .las hook in getattr.

Signed-off-by: Adam Tkac <adam.tkac@geodis.cz>
Implement .las hooks into getattr() and fgetattr()

Signed-off-by: Adam Tkac <adam.tkac@geodis.cz>
Release destroyed tmpfile before it was removed to cache.

Signed-off-by: Adam Tkac <adam.tkac@geodis.cz>
Replace log_msg function by log_error and log_debug.

Signed-off-by: Adam Tkac <adam.tkac@geodis.cz>
Fix error message when mkstemp fails in decompress()

Signed-off-by: Adam Tkac <adam.tkac@geodis.cz>