Changeset 1937 for Whitix/trunk/fs/isofs/super.c
- Timestamp:
- 02/25/09 19:44:40 (3 years ago)
- Files:
-
- 1 modified
-
Whitix/trunk/fs/isofs/super.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Whitix/trunk/fs/isofs/super.c
r1843 r1937 30 30 { 31 31 vNode->mode=((dirEntry->flags & 2) ? VFS_ATTR_DIR : VFS_ATTR_FILE) | VFS_ATTR_READ; 32 32 33 33 if (dirEntry->flags & 0x80) 34 34 { … … 36 36 cli(); hlt(); 37 37 }else 38 vNode->size =dirEntry->length.native;38 vNode->size = dirEntry->length.native; 39 39 40 40 /* Set times. */ … … 51 51 int err=0; 52 52 53 buffer=BlockRead(vNode->superBlock->sDevice, ISO_VNUM_SECTOR(vNode->id));53 buffer=BlockRead(vNode->superBlock->sDevice, ISO_VNUM_SECTOR(vNode->id)); 54 54 55 55 if (!buffer) … … 70 70 if (!tmpDirEntry) 71 71 { 72 KePrint(KERN_ERROR "ISO: could not allocate directory entry.\n"); 72 73 err=-ENOMEM; 73 74 goto out; … … 78 79 79 80 buffer=BlockRead(vNode->superBlock->sDevice, ISO_VNUM_SECTOR(vNode->id)+1); 81 80 82 if (!buffer) 81 83 { 84 KePrint(KERN_ERROR "ISO: could not read block %u\n", ISO_VNUM_SECTOR(vNode->id)+1); 82 85 err=-EIO; 83 86 goto out; … … 181 184 182 185 if (!priDesc) 183 { 184 KePrint(KERN_ERROR "ISO: No primary descriptor found\n"); 185 goto freeSuper; 186 } 186 goto freeSuper; 187 187 188 188 rootEntry=&priDesc->root.dirEntry;
