[PATCH v2 06/39] fs: add id translation helpers