Rev 3550 | Rev 3571 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3550 | Rev 3551 | ||
---|---|---|---|
Line 358... | Line 358... | ||
358 | { |
358 | { |
359 | dev_handle_t dev_handle = nodep->idx->dev_handle; |
359 | dev_handle_t dev_handle = nodep->idx->dev_handle; |
360 | fat_cluster_t lcl; |
360 | fat_cluster_t lcl; |
361 | uint8_t fatno; |
361 | uint8_t fatno; |
362 | 362 | ||
363 | if (fat_clusters_get(bs, nodep->idx->dev_handle, nodep->firstc) == 0) { |
363 | if (fat_cluster_walk(bs, nodep->idx->dev_handle, nodep->firstc, &lcl, |
- | 364 | NULL, (uint16_t) -1) == 0) { |
|
364 | /* No clusters allocated to the node yet. */ |
365 | /* No clusters allocated to the node yet. */ |
365 | nodep->firstc = host2uint16_t_le(mcl); |
366 | nodep->firstc = host2uint16_t_le(mcl); |
366 | nodep->dirty = true; /* need to sync node */ |
367 | nodep->dirty = true; /* need to sync node */ |
367 | return; |
368 | return; |
368 | } |
369 | } |