Changeset 1061

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

Fix sdevice.h includes, use the BYTES_PER_SECTOR define.

Location:
Whitix/branches/keobject/fs/vfs
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • Whitix/branches/keobject/fs/vfs/bcache.c

    r966 r1061  
    2222#include <slab.h> 
    2323#include <llist.h> 
    24 #include <request.h> 
    25 #include <malloc.h> 
    2624#include <sched.h> 
    2725#include <wait.h> 
     
    3129#include <print.h> 
    3230#include <locks.h> 
     31#include <request.h> 
     32#include <devices/sdevice.h> 
    3333 
    3434/* Speed this all up. It's quite a dumb cache at the moment. Readahead? */ 
  • Whitix/branches/keobject/fs/vfs/file.c

    r881 r1061  
    2525#include <print.h> 
    2626#include <module.h> 
     27#include <devices/sdevice.h> 
    2728#include <spinlock.h> 
    2829 
     
    114115        struct Buffer* buff; 
    115116        int res; 
    116         int bytesPerSec=file->vNode->superBlock->sDevice->softBlockSize; 
     117        int bytesPerSec=BYTES_PER_SECTOR(file->vNode->superBlock); 
    117118        struct VNode* vNode=file->vNode; 
    118119 
     
    291292        if (file->fileOps && file->fileOps->open) 
    292293        { 
     294                ModuleSymbolPrint(file->fileOps->open); 
    293295                err=file->fileOps->open(file); 
    294296                if (err) 
  • Whitix/branches/keobject/fs/vfs/super.c

    r881 r1061  
    2222#include <module.h> 
    2323#include <error.h> 
    24 #include <sdevice.h> 
     24#include <devices/sdevice.h> 
    2525#include <task.h> 
    2626#include <fs/devfs.h> 
  • Whitix/branches/keobject/fs/vfs/vcache.c

    r967 r1061  
    3333#include <print.h> 
    3434#include <task.h> 
     35#include <devices/sdevice.h> 
    3536 
    3637struct Cache* vNodeCache; 
     
    326327        { 
    327328                KePrint("VNodeRelease: Trying to free free vNode (%#X on %s)\n", 
    328                         vNode->id, KeDeviceGetName(&superBlock->sDevice->device)); 
     329                        vNode->id, StorageDeviceGetName(superBlock->sDevice)); 
    329330                return; 
    330331        } 
  • Whitix/branches/keobject/fs/vfs/vnode.c

    r928 r1061  
    304304                return -ENOTIMPL; 
    305305 
    306         blockSize=vNode->superBlock->sDevice->softBlockSize; 
     306        blockSize=BYTES_PER_SECTOR(vNode->superBlock); 
    307307 
    308308        IrqSaveFlags(flags);