Changeset 1062

Show
Ignore:
Timestamp:
10/03/08 12:19:56 (3 months ago)
Author:
mwhitworth
Message:

No longer create directores in icfs, add checks for when conf entry is not found.

Location:
Whitix/branches/keobject/fs/icfs
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • Whitix/branches/keobject/fs/icfs/config.c

    r971 r1062  
    8282        struct KeFsEntry* entry; 
    8383        DWORD position=0; 
     84 
     85        KePrint("%s\n", name); 
    8486         
    8587        entry=ConfigResolvePath(name); 
     88         
     89        if (!entry) 
     90                return -ENOENT; 
    8691         
    8792        IcRead(&position, entry->file, data, size); 
     
    96101         
    97102        entry=ConfigResolvePath(name); 
     103         
     104        if (!entry) 
     105                return -ENOENT; 
    98106         
    99107        IcWrite(&position, entry->file, data, size); 
     
    111119int ConfigInit() 
    112120{ 
    113         /* Create standard directories */ 
    114         ConfigCreateDir(NULL, "Devices"); 
    115         ConfigCreateDir(NULL, "Devices/Storage"); 
    116          
    117121        /* Register the ReadConf and WriteConf system calls, for quick access to configuration variables. */ 
    118122        SysRegisterRange(SYS_CONFIG_BASE, configSystemCalls); 
  • Whitix/branches/keobject/fs/icfs/info.c

    r879 r1062  
    199199{ 
    200200        InfoRootCreate(); 
    201          
     201 
     202#if 0 
    202203        InfoCreateDir(NULL, "Devices"); 
    203204        InfoCpuInit(); 
     
    205206//      InfoMemInit(); 
    206207        InfoCreateDir(NULL, "Processes"); 
    207  
    208         return 0; 
    209 } 
     208#endif 
     209 
     210        return 0; 
     211}