Rev 3343 | Rev 3593 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3343 | Rev 3397 | ||
---|---|---|---|
Line 735... | Line 735... | ||
735 | /* ridxp->lock held */ |
735 | /* ridxp->lock held */ |
736 | 736 | ||
737 | rootp->type = FAT_DIRECTORY; |
737 | rootp->type = FAT_DIRECTORY; |
738 | rootp->firstc = FAT_CLST_ROOT; |
738 | rootp->firstc = FAT_CLST_ROOT; |
739 | rootp->refcnt = 1; |
739 | rootp->refcnt = 1; |
- | 740 | rootp->lnkcnt = 0; /* FS root is not linked */ |
|
740 | rootp->size = rde * sizeof(fat_dentry_t); |
741 | rootp->size = rde * sizeof(fat_dentry_t); |
741 | rootp->idx = ridxp; |
742 | rootp->idx = ridxp; |
742 | ridxp->nodep = rootp; |
743 | ridxp->nodep = rootp; |
743 | 744 | ||
744 | futex_up(&ridxp->lock); |
745 | futex_up(&ridxp->lock); |
745 | 746 | ||
746 | ipc_answer_0(rid, EOK); |
747 | ipc_answer_3(rid, EOK, ridxp->index, rootp->size, rootp->lnkcnt); |
747 | } |
748 | } |
748 | 749 | ||
749 | void fat_mount(ipc_callid_t rid, ipc_call_t *request) |
750 | void fat_mount(ipc_callid_t rid, ipc_call_t *request) |
750 | { |
751 | { |
751 | ipc_answer_0(rid, ENOTSUP); |
752 | ipc_answer_0(rid, ENOTSUP); |