Changeset 03333bc in mainline for uspace/app/init/init.c


Ignore:
Timestamp:
2010-01-23T20:08:50Z (14 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bc310a05
Parents:
a074b4f
Message:

Save dumps in files under /scratch.

File:
1 edited

Legend:

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

    ra074b4f r03333bc  
    233233}
    234234
     235static void mount_scratch(void)
     236{
     237        int rc;
     238
     239        printf("Trying to mount null/0 on /scratch... ");
     240        fflush(stdout);
     241
     242        rc = mount("tmpfs", "/scratch", "null/0", "", 0);
     243        if (rc == EOK)
     244                printf("OK\n");
     245        else
     246                printf("Failed\n");
     247}
     248
    235249static void mount_data(void)
    236250{
     
    255269                return -1;
    256270        }
     271
     272        /* Make sure tmpfs is running. */
     273        if (str_cmp(STRING(RDFMT), "tmpfs") != 0) {
     274                spawn("/srv/tmpfs");
     275        }
    257276       
    258277        spawn("/srv/devfs");
     
    263282                return -2;
    264283        }
     284
     285        mount_scratch();
    265286       
    266287        spawn("/srv/fhc");
Note: See TracChangeset for help on using the changeset viewer.