Rev 4370 | Rev 4429 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 4370 | Rev 4409 | ||
|---|---|---|---|
| Line 147... | Line 147... | ||
| 147 | free(fn); |
147 | free(fn); |
| 148 | return NULL; |
148 | return NULL; |
| 149 | } |
149 | } |
| 150 | } |
150 | } |
| 151 | fat_node_initialize(nodep); |
151 | fat_node_initialize(nodep); |
| - | 152 | fs_node_initialize(fn); |
|
| 152 | fn->data = nodep; |
153 | fn->data = nodep; |
| 153 | nodep->bp = fn; |
154 | nodep->bp = fn; |
| 154 | 155 | ||
| 155 | return nodep; |
156 | return nodep; |
| 156 | } |
157 | } |
| Line 845... | Line 846... | ||
| 845 | block_fini(dev_handle); |
846 | block_fini(dev_handle); |
| 846 | fat_idx_fini_by_dev_handle(dev_handle); |
847 | fat_idx_fini_by_dev_handle(dev_handle); |
| 847 | ipc_answer_0(rid, ENOMEM); |
848 | ipc_answer_0(rid, ENOMEM); |
| 848 | return; |
849 | return; |
| 849 | } |
850 | } |
| - | 851 | fs_node_initialize(rfn); |
|
| 850 | fat_node_t *rootp = (fat_node_t *)malloc(sizeof(fat_node_t)); |
852 | fat_node_t *rootp = (fat_node_t *)malloc(sizeof(fat_node_t)); |
| 851 | if (!rootp) { |
853 | if (!rootp) { |
| 852 | free(rfn); |
854 | free(rfn); |
| 853 | block_fini(dev_handle); |
855 | block_fini(dev_handle); |
| 854 | fat_idx_fini_by_dev_handle(dev_handle); |
856 | fat_idx_fini_by_dev_handle(dev_handle); |
| Line 884... | Line 886... | ||
| 884 | ipc_answer_3(rid, EOK, ridxp->index, rootp->size, rootp->lnkcnt); |
886 | ipc_answer_3(rid, EOK, ridxp->index, rootp->size, rootp->lnkcnt); |
| 885 | } |
887 | } |
| 886 | 888 | ||
| 887 | void fat_mount(ipc_callid_t rid, ipc_call_t *request) |
889 | void fat_mount(ipc_callid_t rid, ipc_call_t *request) |
| 888 | { |
890 | { |
| 889 | ipc_answer_0(rid, ENOTSUP); |
891 | libfs_mount(&fat_libfs_ops, rid, request); |
| 890 | } |
892 | } |
| 891 | 893 | ||
| 892 | void fat_lookup(ipc_callid_t rid, ipc_call_t *request) |
894 | void fat_lookup(ipc_callid_t rid, ipc_call_t *request) |
| 893 | { |
895 | { |
| 894 | libfs_lookup(&fat_libfs_ops, fat_reg.fs_handle, rid, request); |
896 | libfs_lookup(&fat_libfs_ops, fat_reg.fs_handle, rid, request); |