for (int j = 0; j < section->links->len; j++) {
InodeMapEntry *entry;
entry = bluesky_inode_map_lookup(fs->inode_map, *inum, 1);
- entry->inum = *inum;
+ entry->inum = GUINT64_FROM_LE(*inum);
entry->item = g_array_index(section->links,
BlueSkyCloudLog *, j);
bluesky_cloudlog_ref(entry->item);
entry->id = entry->item->id;
entry->location = entry->item->location;
+ fs->next_inum = MAX(fs->next_inum, entry->inum + 1);
inum++;
}
g_mutex_unlock(section->lock);