From: <ga...@us...> - 2013-02-20 11:55:45
|
Revision: 5966 http://jnode.svn.sourceforge.net/jnode/?rev=5966&view=rev Author: galatnm Date: 2013-02-20 11:55:37 +0000 (Wed, 20 Feb 2013) Log Message: ----------- Don't require a valid boot sector when opening FAT-16 file systems - the IBM partition checks are too strong now. (Luke Quinane) Modified Paths: -------------- trunk/fs/src/fs/org/jnode/fs/fat/FatFileSystem.java trunk/fs/src/fs/org/jnode/fs/fat/FatFileSystemType.java Modified: trunk/fs/src/fs/org/jnode/fs/fat/FatFileSystem.java =================================================================== --- trunk/fs/src/fs/org/jnode/fs/fat/FatFileSystem.java 2013-02-20 11:55:05 UTC (rev 5965) +++ trunk/fs/src/fs/org/jnode/fs/fat/FatFileSystem.java 2013-02-20 11:55:37 UTC (rev 5966) @@ -49,8 +49,8 @@ try { bs = new BootSector(512); bs.read(getApi()); - if (!bs.isaValidBootSector()) throw new FileSystemException( - "Can't mount this partition: Invalid BootSector"); +// if (!bs.isaValidBootSector()) throw new FileSystemException( +// "Can't mount this partition: Invalid BootSector"); // System.out.println(bs); Modified: trunk/fs/src/fs/org/jnode/fs/fat/FatFileSystemType.java =================================================================== --- trunk/fs/src/fs/org/jnode/fs/fat/FatFileSystemType.java 2013-02-20 11:55:05 UTC (rev 5965) +++ trunk/fs/src/fs/org/jnode/fs/fat/FatFileSystemType.java 2013-02-20 11:55:37 UTC (rev 5966) @@ -66,7 +66,6 @@ return false; } } -*/ try { @@ -77,6 +76,7 @@ { return false; } +*/ // FAT-32 is currently handled by the newer jfat package. return (firstSector[38] == 0x29 && This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |