Changes in uspace/app/init/init.c [a63d216:ca05e9b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/init/init.c
ra63d216 rca05e9b 59 59 #define TMPFS_FS_TYPE "tmpfs" 60 60 #define TMPFS_MOUNT_POINT "/tmp" 61 62 #define DATA_FS_TYPE "fat" 63 #define DATA_DEVICE "bd/ata1disk0" 64 #define DATA_MOUNT_POINT "/data" 61 65 62 66 #define SRV_CONSOLE "/srv/console" … … 312 316 } 313 317 318 static 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 314 325 int main(int argc, char *argv[]) 315 326 { … … 355 366 srv_start("/srv/clipboard"); 356 367 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 357 386 358 387 srv_start("/srv/input", HID_INPUT);
Note:
See TracChangeset
for help on using the changeset viewer.