llist_for_each(pos, n, &file->dnode->children, siblings)
{
if (i++ >= dctx->index) {
- dctx->read_complete_callback(
- dctx, pos->name.value, pos->name.len, 0);
+ dctx->read_complete_callback(dctx,
+ pos->name.value,
+ pos->name.len,
+ vfs_get_dtype(pos->inode->itype));
return 1;
}
}
void
ramfs_init()
{
- struct filesystem* ramfs = fsm_new_fs("ramfs", 5);
+ struct filesystem* ramfs = fsm_new_fs("ramfs", -1);
ramfs->mount = ramfs_mount;
ramfs->unmount = ramfs_unmount;