Changeset 856
- Timestamp:
- 08/21/08 21:51:05 (3 years ago)
- Files:
-
- 1 modified
-
Whitix/trunk/fs/vfs/vnode.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Whitix/trunk/fs/vfs/vnode.c
r697 r856 265 265 } 266 266 267 /* Check if the flags state that the file opened must be a directory. */267 /* Check if the flags state that the file opened must be a directory. */ 268 268 if (*retVal && (flags & FILE_DIRECTORY) && ((*retVal)->flags & VFS_ATTR_DIR)) 269 269 { … … 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 {
