First working version with libblkid calls