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. ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct _______________________________________________ Jnode-svn-commits mailing list Jnode-svn-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jnode-svn-commits