Changes in uspace/app/init/init.c [a63d216:ca05e9b] in mainline


Ignore:
File:
1 edited

Legend:

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

    ra63d216 rca05e9b  
    5959#define TMPFS_FS_TYPE      "tmpfs"
    6060#define TMPFS_MOUNT_POINT  "/tmp"
     61
     62#define DATA_FS_TYPE      "fat"
     63#define DATA_DEVICE       "bd/ata1disk0"
     64#define DATA_MOUNT_POINT  "/data"
    6165
    6266#define SRV_CONSOLE  "/srv/console"
     
    312316}
    313317
     318static bool mount_data(void)
     319{
     320        int rc = mount(DATA_FS_TYPE, DATA_MOUNT_POINT, DATA_DEVICE, "wtcache", 0, 0);
     321        return mount_report("Data filesystem", DATA_MOUNT_POINT, DATA_FS_TYPE,
     322            DATA_DEVICE, rc);
     323}
     324
    314325int main(int argc, char *argv[])
    315326{
     
    355366        srv_start("/srv/clipboard");
    356367        srv_start("/srv/remcons");
     368       
     369        /*
     370         * Start these synchronously so that mount_data() can be
     371         * non-blocking.
     372         */
     373#ifdef CONFIG_START_BD
     374        srv_start("/srv/ata_bd");
     375#endif
     376       
     377#ifdef CONFIG_MOUNT_DATA
     378        /* Make sure fat is running. */
     379        if (str_cmp(STRING(RDFMT), "fat") != 0)
     380                srv_start("/srv/fat");
     381       
     382        mount_data();
     383#else
     384        (void) mount_data;
     385#endif
    357386       
    358387        srv_start("/srv/input", HID_INPUT);
Note: See TracChangeset for help on using the changeset viewer.