projects
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55ed37c
)
fat: print end clust number when a file occupies only one cluster
author
Donggeun Kim
<dg77.kim@samsung.com>
Mon, 27 Dec 2010 04:26:45 +0000
(13:26 +0900)
committer
Donggeun Kim
<dg77.kim@samsung.com>
Mon, 27 Dec 2010 04:26:45 +0000
(13:26 +0900)
Signed-off-by: Donggeun Kim <dg77.kim@samsung.com>
fs/fat/fat_write.c
patch
|
blob
|
history
diff --git
a/fs/fat/fat_write.c
b/fs/fat/fat_write.c
index
1176dfb
..
e2537b1
100644
(file)
--- a/
fs/fat/fat_write.c
+++ b/
fs/fat/fat_write.c
@@
-784,6
+784,13
@@
static void print_fat_range (fsdata *mydata, dir_entry *dentptr)
printf("%16s : ", s_name);
printf("%5d - ", start);
+ end = get_fatent_value(mydata, start);
+ if ((end >= 0xffffff8) || (end >= 0xfff8)) {
+ printf("%5d ", start);
+ printf("(size : %d)\n", FAT2CPU32(dentptr->size));
+ return;
+ }
+
while (1) {
find_fragmented_area(mydata, &start, &middle, &end);
if (middle == 0) {