Properly close device after opening it to determine type

The prior code was unreachable due to the returns above it.
Merge pull request #36 from nickgarvey/master

Close ext fs after opening for determining type
btrfs: fix memory management in find_and_setup_log_root()

log_root does not have to be freed at the end because it is assigned to
fs_info->log_root_tree.
However, it have to be freed when the function returns on an error. Idem
for log_root->node.

I have based my modifications on the most recent btrfs's commit, at
http://git.kernel.org/cgit/linux/kernel/git/mason/btrfs-progs.git/tree/disk-io.c?id=650e656a8b9c1fbe4ec5cd8c48ae285b8abd3b69

I have ordered the lines differently to make the code a little bit simpler.

Signed-off-by: Patryck Rouleau <pfrouleau@gmail.com>
toolbox: only grep the line starting with "commit"

This allow grep to ignore the keyword when it appears in the commit's title
or commit's message.

Signed-off-by: Patryck Rouleau <pfrouleau@gmail.com>
Add declaration of print_version() in partclone.h
Remove unused variable from crc32()
Initialize the bitmap for every file system

Some file systems only use pc_set_bit() (ie they do not call pc_clear_bit())
when they build the bitmap of blocks in use. In these case it is important
to clear the bitmap first.

Signed-off-by: Patryck Rouleau <pfrouleau@gmail.com>
Ignore files generated by automake and autoheader
Merge pull request #37 from pfrouleau/fixes

Fixes