Changeset 1129 for Whitix

Show
Ignore:
Timestamp:
10/14/08 19:35:11 (1 month ago)
Author:
mwhitworth
Message:

Comment out existing FatTruncate (it's buggy), and add TODO.

Location:
Whitix/branches/keobject/fs/fat
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • Whitix/branches/keobject/fs/fat/fat.c

    r1096 r1129  
    293293        struct FatSbInfo* sbInfo=FatGetSbPriv(vNode->superBlock); 
    294294 
    295 //      printf("FatRemoveClusters(%d), %d\n",number,fatVNodeInfo->startCluster); 
    296  
    297295        if (sbInfo->fatType != 32 && !vNode->id) 
    298296                return -EPERM; 
  • Whitix/branches/keobject/fs/fat/vnode.c

    r1096 r1129  
    936936int FatTruncate(struct VNode* vNode, DWORD size) 
    937937{ 
     938#if 0 
    938939        struct FatSbInfo* sbInfo=FatGetSbPriv(vNode->superBlock); 
    939940        DWORD clusterNum=(size+(sbInfo->clusterLength-1))/sbInfo->clusterLength; 
    940941        /* Truncate vNode to it's new size, round up to the nearest cluster */ 
    941942 
    942         FatRemoveClusters(vNode,clusterNum); 
     943        FatRemoveClusters(vNode, clusterNum); 
    943944        SetVNodeDirty(vNode); 
    944  
    945         return 0; 
    946 } 
     945#endif 
     946        KePrint("FatTruncate: TODO\n"); 
     947        return 0; 
     948}