Changeset 1313ee9 in mainline for uspace/app


Ignore:
Timestamp:
2009-12-13T15:17:08Z (16 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
Location:
uspace/app
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/cmds/modules/ls/ls.c

    rfc6dd18 r1313ee9  
    100100        if (s.is_file)
    101101                printf("%-40s\t%llu\n", name, (long long) s.size);
     102        else if (s.is_directory)
     103                printf("%-40s\t<dir>\n", name);
    102104        else
    103105                printf("%-40s\n", name);
  • 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;
  • uspace/app/tester/vfs/vfs1.c

    rfc6dd18 r1313ee9  
    8585                return "Unable to create null device";
    8686       
    87         snprintf(null, MAX_DEVICE_NAME, "null%d", null_id);
     87        snprintf(null, MAX_DEVICE_NAME, "null/%d", null_id);
    8888        int rc = mount(FS_TYPE, MOUNT_POINT, null, OPTIONS, FLAGS);
    8989        switch (rc) {
Note: See TracChangeset for help on using the changeset viewer.