Changeset 594303b in mainline for uspace/lib/libc/generic/vfs/vfs.c


Ignore:
Timestamp:
2009-04-18T15:32:56Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8d049ee0
Parents:
6b6e423a
Message:

Support mount options.
Let tmpfs decide whether to start empty or restored a TMPFS dump based on the mount option.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/generic/vfs/vfs.c

    r6b6e423a r594303b  
    156156
    157157int mount(const char *fs_name, const char *mp, const char *dev,
    158         const unsigned int flags)
     158    const char *opts, const unsigned int flags)
    159159{
    160160        int res;
     
    186186        }
    187187       
     188        rc = ipc_data_write_start(vfs_phone, (void *) opts, str_size(opts));
     189        if (rc != EOK) {
     190                async_wait_for(req, NULL);
     191                async_serialize_end();
     192                futex_up(&vfs_phone_futex);
     193                free(mpa);
     194                return (int) rc;
     195        }
     196
    188197        rc = ipc_data_write_start(vfs_phone, (void *) fs_name, str_size(fs_name));
    189198        if (rc != EOK) {
Note: See TracChangeset for help on using the changeset viewer.