fstools: check existing filesystem state before writing the new one