Revision: 5848
          http://jnode.svn.sourceforge.net/jnode/?rev=5848&view=rev
Author:   lsantha
Date:     2011-08-16 20:49:41 +0000 (Tue, 16 Aug 2011)

Log Message:
-----------
Fixed API registration bug in IDEDiskDriver.

Modified Paths:
--------------
    trunk/fs/src/driver/org/jnode/driver/block/ide/disk/IDEDiskDriver.java

Added Paths:
-----------
    
trunk/fs/src/driver/org/jnode/driver/block/ide/disk/IDEDeviceBlockAlignmentSupport.java

Added: 
trunk/fs/src/driver/org/jnode/driver/block/ide/disk/IDEDeviceBlockAlignmentSupport.java
===================================================================
--- 
trunk/fs/src/driver/org/jnode/driver/block/ide/disk/IDEDeviceBlockAlignmentSupport.java
                             (rev 0)
+++ 
trunk/fs/src/driver/org/jnode/driver/block/ide/disk/IDEDeviceBlockAlignmentSupport.java
     2011-08-16 20:49:41 UTC (rev 5848)
@@ -0,0 +1,17 @@
+package org.jnode.driver.block.ide.disk;
+
+import org.jnode.driver.block.PartitionableBlockAlignmentSupport;
+import org.jnode.driver.bus.ide.IDEDeviceAPI;
+import org.jnode.partitions.PartitionTableEntry;
+
+/**
+ * @author Levente S\u00e1ntha
+ */
+public class IDEDeviceBlockAlignmentSupport<PTE extends PartitionTableEntry>
+    extends PartitionableBlockAlignmentSupport<PTE>
+    implements IDEDeviceAPI<PTE> {
+
+    public IDEDeviceBlockAlignmentSupport(IDEDeviceAPI<PTE> parentApi, int 
alignment) {
+        super(parentApi, alignment);
+    }
+}

Modified: trunk/fs/src/driver/org/jnode/driver/block/ide/disk/IDEDiskDriver.java
===================================================================
--- trunk/fs/src/driver/org/jnode/driver/block/ide/disk/IDEDiskDriver.java      
2011-08-16 20:43:33 UTC (rev 5847)
+++ trunk/fs/src/driver/org/jnode/driver/block/ide/disk/IDEDiskDriver.java      
2011-08-16 20:49:41 UTC (rev 5848)
@@ -92,8 +92,9 @@
         final IDEDevice dev = (IDEDevice) getDevice();
         diskBus = new IDEDiskBus(dev);
         /* Register the IDEDevice API */
-        // FIXME - something is wrong with the typing here I think.  
-        dev.registerAPI(PartitionableBlockDeviceAPI.class, new 
PartitionableBlockAlignmentSupport(this, SECTOR_SIZE));
+        dev.registerAPI(IDEDeviceAPI.class,
+            new IDEDeviceBlockAlignmentSupport<IBMPartitionTableEntry>(this, 
SECTOR_SIZE));
+
         /* Get basic configuration */
         final IDEDriveDescriptor descr = dev.getDescriptor();
         //lba = descr.supportsLBA();


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

------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
Jnode-svn-commits mailing list
Jnode-svn-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jnode-svn-commits

Reply via email to