Better and uniform debugging
Remove enter_lock macro and replace it with direct G_LOCK invocation
Coding rules, type checking and declaration shadowing
Remove unjustified 'umask(0)'
Add option 'device' to select which device will be mounted