fsck: change functions to use object_id