Revision: 5934
http://jnode.svn.sourceforge.net/jnode/?rev=5934&view=rev
Author: galatnm
Date: 2012-10-24 06:47:54 +0000 (Wed, 24 Oct 2012)
Log Message:
-----------
Skip over invalid FAT directory entries.
Modified Paths:
--------------
trunk/fs/src/fs/org/jnode/fs/jfat/FatDirEntry.java
Modified: trunk/fs/src/fs/org/jnode/fs/jfat/FatDirEntry.java
===================================================================
--- trunk/fs/src/fs/org/jnode/fs/jfat/FatDirEntry.java 2012-09-23 18:01:11 UTC (rev 5933)
+++ trunk/fs/src/fs/org/jnode/fs/jfat/FatDirEntry.java 2012-10-24 06:47:54 UTC (rev 5934)
@@ -32,6 +32,7 @@
protected static final int EOD = 0x00;
protected static final int FREE = 0xE5;
+ protected static final int INVALID = 0xFF;
protected static final int KANJI = 0x05;
protected static final int NO_INDEX = -1;
@@ -73,7 +74,8 @@
case FREE:
case EOD:
return new FatDirEntry(fs, entry, index, flag);
-
+ case INVALID:
+ throw new IOException("Invalid entry for index: " + index);
default:
if (attr.isLong())
return new FatLongDirEntry(fs, entry, index);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|