Changeset 696979ce in mainline for uspace/srv/fs


Ignore:
Timestamp:
2010-02-06T10:54:21Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/fix-logger-deadlock, topic/msim-upgrade, topic/simplify-dev-export
Children:
5bda2f96
Parents:
3f93cdbe (diff), 25e963a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge from mainline.

Location:
uspace/srv/fs
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/devfs/devfs_ops.c

    r3f93cdbe r696979ce  
    419419       
    420420        /* Accept the mount options */
    421         ipcarg_t retval = async_data_string_receive(&opts, 0);
     421        ipcarg_t retval = async_data_write_accept((void **) &opts, true, 0, 0,
     422            0, NULL);
    422423        if (retval != EOK) {
    423424                ipc_answer_0(rid, retval);
  • uspace/srv/fs/fat/fat_ops.c

    r3f93cdbe r696979ce  
    974974        uint16_t bps;
    975975        uint16_t rde;
    976         int rc;
    977 
    978         /* accept the mount options */
    979         ipc_callid_t callid;
    980         size_t size;
    981         if (!async_data_write_receive(&callid, &size)) {
    982                 ipc_answer_0(callid, EINVAL);
    983                 ipc_answer_0(rid, EINVAL);
    984                 return;
    985         }
    986         char *opts = malloc(size + 1);
    987         if (!opts) {
    988                 ipc_answer_0(callid, ENOMEM);
    989                 ipc_answer_0(rid, ENOMEM);
    990                 return;
    991         }
    992         ipcarg_t retval = async_data_write_finalize(callid, opts, size);
    993         if (retval != EOK) {
    994                 ipc_answer_0(rid, retval);
    995                 free(opts);
    996                 return;
    997         }
    998         opts[size] = '\0';
     976       
     977        /* Accept the mount options */
     978        char *opts;
     979        int rc = async_data_write_accept((void **) &opts, true, 0, 0, 0, NULL);
     980       
     981        if (rc != EOK) {
     982                ipc_answer_0(rid, rc);
     983                return;
     984        }
    999985
    1000986        /* Check for option enabling write through. */
  • uspace/srv/fs/tmpfs/tmpfs_ops.c

    r3f93cdbe r696979ce  
    443443        fs_node_t *rootfn;
    444444        int rc;
    445 
    446         /* accept the mount options */
    447         ipc_callid_t callid;
    448         size_t size;
    449         if (!async_data_write_receive(&callid, &size)) {
    450                 ipc_answer_0(callid, EINVAL);
    451                 ipc_answer_0(rid, EINVAL);
    452                 return;
    453         }
    454         char *opts = malloc(size + 1);
    455         if (!opts) {
    456                 ipc_answer_0(callid, ENOMEM);
    457                 ipc_answer_0(rid, ENOMEM);
    458                 return;
    459         }
    460         ipcarg_t retval = async_data_write_finalize(callid, opts, size);
    461         if (retval != EOK) {
    462                 ipc_answer_0(rid, retval);
    463                 free(opts);
    464                 return;
    465         }
    466         opts[size] = '\0';
    467 
    468         /*
    469          * Check if this device is not already mounted.
    470          */
     445       
     446        /* Accept the mount options. */
     447        char *opts;
     448        rc = async_data_write_accept((void **) &opts, true, 0, 0, 0, NULL);
     449        if (rc != EOK) {
     450                ipc_answer_0(rid, rc);
     451                return;
     452        }
     453
     454        /* Check if this device is not already mounted. */
    471455        rc = tmpfs_root_get(&rootfn, dev_handle);
    472456        if ((rc == EOK) && (rootfn)) {
Note: See TracChangeset for help on using the changeset viewer.