Changeset 1313ee9 in mainline for uspace/app/init/init.c


Ignore:
Timestamp:
2009-12-13T15:17:08Z (14 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
963dd91
Parents:
fc6dd18
Message:

introduce device namespaces

  • add support for explicit open in libfs (needed by devfs, but also possibly for other filesystems which need to track some stateful information)
  • extend libfs to be more generic, make proper adjustments to libc, tmpfs and fat
  • various updates to make use of the device namespaces
  • code cleanup
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/init/init.c

    rfc6dd18 r1313ee9  
    5858{
    5959        char *opts = "";
    60         const char *root_dev = "initrd";
     60        const char *root_dev = "bd/initrd";
    6161       
    6262        if (str_cmp(fstype, "tmpfs") == 0)
     
    9797        }
    9898       
    99         snprintf(null, MAX_DEVICE_NAME, "null%d", null_id);
     99        snprintf(null, MAX_DEVICE_NAME, "null/%d", null_id);
    100100        int rc = mount("devfs", "/dev", null, "", IPC_FLAG_BLOCKING);
    101101       
     
    170170        }
    171171
    172         if (texit != TASK_EXIT_NORMAL || retval != 0) {
     172        if ((texit != TASK_EXIT_NORMAL) || (retval != 0)) {
    173173                printf(NAME ": Server %s failed to start (returned %d)\n",
    174174                        fname, retval);
     
    206206        int rc;
    207207
    208         printf("Trying to mount disk0 on /data... ");
     208        printf("Trying to mount bd/disk0 on /data... ");
    209209        fflush(stdout);
    210210
    211         rc = mount("fat", "/data", "disk0", "wtcache", 0);
     211        rc = mount("fat", "/data", "bd/disk0", "wtcache", 0);
    212212        if (rc == EOK)
    213213                printf("OK\n");
     
    256256#endif
    257257
    258         getvc("vc0", "/app/bdsh");
    259         getvc("vc1", "/app/bdsh");
    260         getvc("vc2", "/app/bdsh");
    261         getvc("vc3", "/app/bdsh");
    262         getvc("vc4", "/app/bdsh");
    263         getvc("vc5", "/app/bdsh");
    264         getvc("vc6", "/app/klog");
     258        getvc("term/vc0", "/app/bdsh");
     259        getvc("term/vc1", "/app/bdsh");
     260        getvc("term/vc2", "/app/bdsh");
     261        getvc("term/vc3", "/app/bdsh");
     262        getvc("term/vc4", "/app/bdsh");
     263        getvc("term/vc5", "/app/bdsh");
     264        getvc("term/vc6", "/app/klog");
    265265       
    266266        return 0;
Note: See TracChangeset for help on using the changeset viewer.