Revision: 5903
          http://jnode.svn.sourceforge.net/jnode/?rev=5903&view=rev
Author:   galatnm
Date:     2012-08-09 14:04:32 +0000 (Thu, 09 Aug 2012)
Log Message:
-----------
Detect GPT partitions with 8KB block sizes (patch from L. Quinane)

Modified Paths:
--------------
    trunk/fs/src/fs/org/jnode/partitions/gpt/GptPartitionTable.java

Modified: trunk/fs/src/fs/org/jnode/partitions/gpt/GptPartitionTable.java
===================================================================
--- trunk/fs/src/fs/org/jnode/partitions/gpt/GptPartitionTable.java     
2012-08-09 14:01:43 UTC (rev 5902)
+++ trunk/fs/src/fs/org/jnode/partitions/gpt/GptPartitionTable.java     
2012-08-09 14:04:32 UTC (rev 5903)
@@ -85,7 +85,7 @@
      * @return the detected block size or {@code -1} if no GPT partition is 
found.
      */
     private static int detectBlockSize(byte[] first16KiB) {
-        int[] detectionSizes = new int[] { 0x200, 0x1000 };
+        int[] detectionSizes = new int[] { 0x200, 0x1000, 0x2000 };
 
         for (int blockSize : detectionSizes) {
             if (first16KiB.length < blockSize + 8) {
@@ -125,4 +125,4 @@
     public PartitionTableType getType() {
         return tableType;
     }
-}
+}
\ No newline at end of file

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Jnode-svn-commits mailing list
Jnode-svn-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jnode-svn-commits

Reply via email to