storage: dirty checks for thin provisioning support

Resolves trac tickets 276 and 277