Do not return error if searched cluster is before FAT cache head
Clusters are keep unsorted, so this is expected behaviour
Change-Id: I9e2feebd7726ab520238c16e4d58f0d2765cf58b
diff --git a/fatcache.c b/fatcache.c
index 2842f83..155a547 100644
--- a/fatcache.c
+++ b/fatcache.c
@@ -203,10 +203,7 @@
fsck_warn("Not find the cluster after cluster %d\n",clus);
return (struct fatcache*)0;
}
- if(clus < fat->head){
- fsck_warn("out of range,clus: %d ,fat->head:%d\n",clus,fat->head);
- return (struct fatcache*)0;
- }
+
while(cache){
if(clus >= cache->head && clus <= cache->head + cache->length -2 ){
*cl = clus + 1;