- Timestamp:
- 10/14/08 19:35:11 (1 month ago)
- Location:
- Whitix/branches/keobject/fs/fat
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
Whitix/branches/keobject/fs/fat/fat.c
r1096 r1129 293 293 struct FatSbInfo* sbInfo=FatGetSbPriv(vNode->superBlock); 294 294 295 // printf("FatRemoveClusters(%d), %d\n",number,fatVNodeInfo->startCluster);296 297 295 if (sbInfo->fatType != 32 && !vNode->id) 298 296 return -EPERM; -
Whitix/branches/keobject/fs/fat/vnode.c
r1096 r1129 936 936 int FatTruncate(struct VNode* vNode, DWORD size) 937 937 { 938 #if 0 938 939 struct FatSbInfo* sbInfo=FatGetSbPriv(vNode->superBlock); 939 940 DWORD clusterNum=(size+(sbInfo->clusterLength-1))/sbInfo->clusterLength; 940 941 /* Truncate vNode to it's new size, round up to the nearest cluster */ 941 942 942 FatRemoveClusters(vNode, clusterNum);943 FatRemoveClusters(vNode, clusterNum); 943 944 SetVNodeDirty(vNode); 944 945 return 0; 946 } 945 #endif 946 KePrint("FatTruncate: TODO\n"); 947 return 0; 948 }
