Changeset 55d883d in rtems


Ignore:
Timestamp:
May 31, 2010, 2:01:31 PM (9 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, master
Children:
14724574
Parents:
29e92b0
Message:

2010-05-31 Chris Johns <chrisj@…>

  • shared/umon/tfsDriver.c: Updated to the new mount API.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/shared/umon/tfsDriver.c

    r29e92b0 r55d883d  
    102102
    103103static int rtems_tfs_mount_me(
    104   rtems_filesystem_mount_table_entry_t *temp_mt_entry
     104  rtems_filesystem_mount_table_entry_t *mt_entry,
     105  const void                           *data
    105106)
    106107{
    107108  rtems_status_code  sc;
    108109
    109   temp_mt_entry->mt_fs_root.handlers = &rtems_tfs_handlers;
    110   temp_mt_entry->mt_fs_root.ops      = &rtems_tfs_ops;
     110  mt_entry->mt_fs_root.handlers = &rtems_tfs_handlers;
     111  mt_entry->mt_fs_root.ops      = &rtems_tfs_ops;
    111112
    112113  /* We have no TFS specific data to maintain.  This filesystem
     
    115116   */
    116117
    117   temp_mt_entry->fs_info                = NULL;
    118   temp_mt_entry->mt_fs_root.node_access = ROOT_NODE_ACCESS;
     118  mt_entry->fs_info                = NULL;
     119  mt_entry->mt_fs_root.node_access = ROOT_NODE_ACCESS;
    119120
    120121  /* These need to be looked at for full POSIX semantics.
    121122   */
    122123
    123   temp_mt_entry->pathconf_limits_and_options = rtems_tfs_limits_and_options;
     124  mt_entry->pathconf_limits_and_options = rtems_tfs_limits_and_options;
    124125
    125126
     
    151152)
    152153{
    153   int                                   status;
    154   rtems_filesystem_mount_table_entry_t *entry;
     154  int status;
    155155
    156156  if (!path) {
     
    167167  }
    168168
    169   status = mount( &entry, &rtems_tfs_ops, RTEMS_FILESYSTEM_READ_WRITE,
    170             NULL, TFS_PATHNAME_PREFIX);
    171 
    172   if (status) {
     169  if (rtems_filesystem_register( "tfs", rtems_tfs_mount_me ) < 0)
     170    return -1;
     171 
     172  status = mount( "umon", TFS_PATHNAME_PREFIX, "tfs", RTEMS_FILESYSTEM_READ_WRITE, NULL);
     173
     174  if (status < 0) {
    173175    printk( "TFS: Unable to mount on %s\n", TFS_PATHNAME_PREFIX );
    174176    perror("TFS mount failed");
Note: See TracChangeset for help on using the changeset viewer.