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.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • 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)