Changeset 746 for Whitix/branches/fs/fs/vfs/vnode.c
- Timestamp:
- 07/07/08 20:09:01 (5 months ago)
- Files:
-
- 1 modified
-
Whitix/branches/fs/fs/vfs/vnode.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
Whitix/branches/fs/fs/vfs/vnode.c
r697 r746 300 300 for (i=0; i<PAGE_SIZE/blockSize; i++) 301 301 { 302 res=vNode->vNodeOps->blockMap(vNode,(offset/blockSize)+i );303 304 if (res == -1)302 res=vNode->vNodeOps->blockMap(vNode,(offset/blockSize)+i, 0); 303 304 if (res < 0) 305 305 /* Quite unlikely, but I think this is the best way to deal with it */ 306 306 ZeroMemory(page+(i*blockSize), blockSize); 307 307 else{ 308 buff=BlockRead(vNode->superBlock->sDevice, res);308 buff=BlockRead(vNode->superBlock->sDevice, res); 309 309 if (!buff) 310 310 {