Subversion Repositories HelenOS

Rev

Rev 3424 | Rev 3675 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3424 Rev 3425
Line 231... Line 231...
231
    root = (tmpfs_dentry_t *) tmpfs_create_node(L_DIRECTORY);
231
    root = (tmpfs_dentry_t *) tmpfs_create_node(L_DIRECTORY);
232
    if (!root) {
232
    if (!root) {
233
        hash_table_destroy(&dentries);
233
        hash_table_destroy(&dentries);
234
        return false;
234
        return false;
235
    }
235
    }
236
    root->lnkcnt = 1;
236
    root->lnkcnt = 0;   /* FS root is not linked */
237
    return true;
237
    return true;
238
}
238
}
239
 
239
 
240
/** Compare one component of path to a directory entry.
240
/** Compare one component of path to a directory entry.
241
 *
241
 *
Line 403... Line 403...
403
        return;
403
        return;
404
    }
404
    }
405
 
405
 
406
    if (dev_handle >= 0) {
406
    if (dev_handle >= 0) {
407
        if (tmpfs_restore(dev_handle))
407
        if (tmpfs_restore(dev_handle))
408
            ipc_answer_0(rid, EOK);
408
            ipc_answer_3(rid, EOK, root->index, root->size,
-
 
409
                root->lnkcnt);
409
        else
410
        else
410
            ipc_answer_0(rid, ELIMIT);
411
            ipc_answer_0(rid, ELIMIT);
411
    } else {
412
    } else {
412
            ipc_answer_0(rid, EOK);
413
        ipc_answer_3(rid, EOK, root->index, root->size, root->lnkcnt);
413
    }
414
    }
414
}
415
}
415
 
416
 
416
void tmpfs_mount(ipc_callid_t rid, ipc_call_t *request)
417
void tmpfs_mount(ipc_callid_t rid, ipc_call_t *request)
417
{
418
{