Changes in / [4cac2d69:d42976c] in mainline


Ignore:
Location:
uspace/srv/fs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/fat/fat_idx.c

    r4cac2d69 rd42976c  
    164164                assert((keys == 1) || (keys == 3));
    165165        }
     166
     167        return 0;
    166168}
    167169
     
    219221                assert((keys == 1) || (keys == 2));
    220222        }
     223
     224        return 0;
    221225}
    222226
  • uspace/srv/fs/tmpfs/tmpfs_ops.c

    r4cac2d69 rd42976c  
    168168                    (nodep->index == key[NODES_KEY_INDEX]));
    169169        default:
    170                 abort();
    171         }
     170                assert((keys == 1) || (keys == 2));
     171        }
     172
     173        return 0;
    172174}
    173175
     
    439441{
    440442        dev_handle_t dev_handle = (dev_handle_t) IPC_GET_ARG1(*request);
     443        fs_node_t *rootfn;
     444        int rc;
    441445       
    442         /* Accept the mount options */
     446        /* Accept the mount options. */
    443447        char *opts;
    444         int rc = async_data_write_accept((void **) &opts, true, 0, 0, 0, NULL);
    445        
     448        rc = async_data_write_accept((void **) &opts, true, 0, 0, 0, NULL);
    446449        if (rc != EOK) {
    447450                ipc_answer_0(rid, rc);
     451                return;
     452        }
     453
     454        /* Check if this device is not already mounted. */
     455        rc = tmpfs_root_get(&rootfn, dev_handle);
     456        if ((rc == EOK) && (rootfn)) {
     457                (void) tmpfs_node_put(rootfn);
     458                free(opts);
     459                ipc_answer_0(rid, EEXIST);
    448460                return;
    449461        }
     
    456468        }
    457469
    458         fs_node_t *rootfn;
    459470        rc = tmpfs_root_get(&rootfn, dev_handle);
    460471        assert(rc == EOK);
Note: See TracChangeset for help on using the changeset viewer.