You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(97) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(127) |
Feb
(34) |
Mar
(16) |
Apr
(26) |
May
(55) |
Jun
(107) |
Jul
(36) |
Aug
(72) |
Sep
(90) |
Oct
(41) |
Nov
(27) |
Dec
(13) |
2008 |
Jan
(37) |
Feb
(39) |
Mar
(98) |
Apr
(115) |
May
(134) |
Jun
(120) |
Jul
(86) |
Aug
(149) |
Sep
(68) |
Oct
(66) |
Nov
(104) |
Dec
(49) |
2009 |
Jan
(131) |
Feb
(132) |
Mar
(125) |
Apr
(172) |
May
(161) |
Jun
(43) |
Jul
(47) |
Aug
(38) |
Sep
(18) |
Oct
(6) |
Nov
(1) |
Dec
(15) |
2010 |
Jan
(21) |
Feb
(8) |
Mar
(10) |
Apr
(4) |
May
(9) |
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
(4) |
2011 |
Jan
(23) |
Feb
(10) |
Mar
(13) |
Apr
(3) |
May
|
Jun
(19) |
Jul
(11) |
Aug
(22) |
Sep
|
Oct
(4) |
Nov
(2) |
Dec
(12) |
2012 |
Jan
(3) |
Feb
(4) |
Mar
(7) |
Apr
(3) |
May
|
Jun
(1) |
Jul
(1) |
Aug
(30) |
Sep
(3) |
Oct
(2) |
Nov
|
Dec
(8) |
2013 |
Jan
(3) |
Feb
(40) |
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(12) |
Dec
|
2021 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
1
|
2
|
3
|
4
|
5
|
6
|
7
|
8
|
9
|
10
|
11
|
12
|
13
|
14
|
15
|
16
|
17
|
18
|
19
|
20
|
21
|
22
|
23
|
24
|
25
|
26
|
27
|
28
|
29
|
30
(2) |
|
|
|
From: <ga...@us...> - 2011-11-30 20:49:04
|
Revision: 5869 http://jnode.svn.sourceforge.net/jnode/?rev=5869&view=rev Author: galatnm Date: 2011-11-30 20:48:58 +0000 (Wed, 30 Nov 2011) Log Message: ----------- Fix HFS+ catalog key from luke. Modified Paths: -------------- trunk/fs/src/fs/org/jnode/fs/hfsplus/catalog/CatalogKey.java Modified: trunk/fs/src/fs/org/jnode/fs/hfsplus/catalog/CatalogKey.java =================================================================== --- trunk/fs/src/fs/org/jnode/fs/hfsplus/catalog/CatalogKey.java 2011-11-30 20:48:12 UTC (rev 5868) +++ trunk/fs/src/fs/org/jnode/fs/hfsplus/catalog/CatalogKey.java 2011-11-30 20:48:58 UTC (rev 5869) @@ -44,11 +44,12 @@ * @param src * @param offset */ + public CatalogKey(final byte[] src, final int offset) { int currentOffset = offset; byte[] ck = new byte[2]; System.arraycopy(src, currentOffset, ck, 0, 2); - keyLength = BigEndian.getInt16(ck, 0); + keyLength = BigEndian.getInt16(ck, 0) + 2; // Key length doesn't seem to include itself in the size currentOffset += 2; ck = new byte[4]; System.arraycopy(src, currentOffset, ck, 0, 4); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ga...@us...> - 2011-11-30 20:48:18
|
Revision: 5868 http://jnode.svn.sourceforge.net/jnode/?rev=5868&view=rev Author: galatnm Date: 2011-11-30 20:48:12 +0000 (Wed, 30 Nov 2011) Log Message: ----------- Clean up HFS+ Modified Paths: -------------- trunk/fs/src/fs/org/jnode/fs/hfsplus/catalog/Catalog.java trunk/fs/src/fs/org/jnode/fs/hfsplus/catalog/CatalogLeafNode.java Modified: trunk/fs/src/fs/org/jnode/fs/hfsplus/catalog/Catalog.java =================================================================== --- trunk/fs/src/fs/org/jnode/fs/hfsplus/catalog/Catalog.java 2011-10-25 14:21:29 UTC (rev 5867) +++ trunk/fs/src/fs/org/jnode/fs/hfsplus/catalog/Catalog.java 2011-11-30 20:48:12 UTC (rev 5868) @@ -249,9 +249,10 @@ int nodeSize = getBTHeaderRecord().getNodeSize(); ByteBuffer nodeData = ByteBuffer.allocate(nodeSize); fs.getApi().read(catalogHeaderNodeOffset + (currentNodeNumber * nodeSize), nodeData); - NodeDescriptor nd = new NodeDescriptor(nodeData.array(), 0); + byte[] datas = nodeData.array(); + NodeDescriptor nd = new NodeDescriptor(datas, 0); if (nd.isIndexNode()) { - CatalogIndexNode node = new CatalogIndexNode(nodeData.array(), nodeSize); + CatalogIndexNode node = new CatalogIndexNode(datas, nodeSize); IndexRecord[] records = (IndexRecord[]) node.findAll(parentID); List<LeafRecord> lfList = new LinkedList<LeafRecord>(); for (IndexRecord rec : records) { @@ -291,7 +292,7 @@ CatalogKey cKey = new CatalogKey(parentID, nodeName); while (nd.isIndexNode()) { CatalogIndexNode node = new CatalogIndexNode(nodeData.array(), nodeSize); - IndexRecord record = (IndexRecord) node.find(cKey); + IndexRecord record = node.find(cKey); currentNodeNumber = record.getIndex(); currentOffset = catalogHeaderNodeOffset + record.getIndex() * nodeSize; nodeData = ByteBuffer.allocate(nodeSize); @@ -301,7 +302,7 @@ LeafRecord lr = null; if (nd.isLeafNode()) { CatalogLeafNode node = new CatalogLeafNode(nodeData.array(), nodeSize); - lr = (LeafRecord) node.find(parentID); + lr = node.find(parentID); } return lr; } Modified: trunk/fs/src/fs/org/jnode/fs/hfsplus/catalog/CatalogLeafNode.java =================================================================== --- trunk/fs/src/fs/org/jnode/fs/hfsplus/catalog/CatalogLeafNode.java 2011-10-25 14:21:29 UTC (rev 5867) +++ trunk/fs/src/fs/org/jnode/fs/hfsplus/catalog/CatalogLeafNode.java 2011-11-30 20:48:12 UTC (rev 5868) @@ -3,77 +3,78 @@ import java.util.LinkedList; import java.util.List; +import org.apache.log4j.Logger; import org.jnode.fs.hfsplus.tree.AbstractNode; -import org.jnode.fs.hfsplus.tree.Key; import org.jnode.fs.hfsplus.tree.LeafRecord; import org.jnode.fs.hfsplus.tree.NodeDescriptor; -import org.jnode.fs.hfsplus.tree.NodeRecord; public class CatalogLeafNode extends AbstractNode<LeafRecord> { - /** - * Create a new node. - * - * @param descriptor - * @param nodeSize - */ - public CatalogLeafNode(NodeDescriptor descriptor, final int nodeSize) { - super(descriptor, nodeSize); - } - /** - * Create node from existing data. - * - * @param nodeData - * @param nodeSize - */ - public CatalogLeafNode(final byte[] nodeData, final int nodeSize) { - super(nodeData, nodeSize); + private final Logger log = Logger.getLogger(getClass()); - } + /** + * Create a new node. + * + * @param descriptor + * @param nodeSize + */ + public CatalogLeafNode(NodeDescriptor descriptor, final int nodeSize) { + super(descriptor, nodeSize); + } - @Override - protected void loadRecords(byte[] nodeData) { - CatalogKey key; - int offset; - for (int i = 0; i < this.descriptor.getNumRecords(); i++) { - offset = offsets.get(i); - key = new CatalogKey(nodeData, offset); - int recordSize = offsets.get(i + 1) - offset; - records.add(new LeafRecord(key, nodeData, offset, recordSize)); - } - } + /** + * Create node from existing data. + * + * @param nodeData + * @param nodeSize + */ + public CatalogLeafNode(final byte[] nodeData, final int nodeSize) { + super(nodeData, nodeSize); - /** - * @param parentId - * @return a NodeRecord or {@code null} - */ - public final LeafRecord find(final CatalogNodeId parentId) { - for (LeafRecord record : records) { - Key key = record.getKey(); - if (key instanceof CatalogKey) { - if (((CatalogKey) key).getParentId().getId() == parentId.getId()) { - return record; - } - } - } - return null; - } + } - /** - * @param parentId - * @return an array of NodeRecords - */ - public final LeafRecord[] findAll(final CatalogNodeId parentId) { - List<NodeRecord> list = new LinkedList<NodeRecord>(); - for (int index = 0; index < this.getNodeDescriptor().getNumRecords(); index++) { - NodeRecord record = this.getNodeRecord(index); - Key key = record.getKey(); - if (key instanceof CatalogKey && - ((CatalogKey) key).getParentId().getId() == parentId.getId()) { - list.add(record); - } - } - return list.toArray(new LeafRecord[list.size()]); - } + @Override + protected void loadRecords(byte[] nodeData) { + CatalogKey key; + int offset; + for (int i = 0; i < this.descriptor.getNumRecords(); i++) { + offset = offsets.get(i); + key = new CatalogKey(nodeData, offset); + int recordSize = offsets.get(i + 1) - offset; + records.add(new LeafRecord(key, nodeData, offset, recordSize)); + } + } + /** + * @param parentId + * @return a NodeRecord or {@code null} + */ + public final LeafRecord find(final CatalogNodeId parentId) { + for (LeafRecord record : records) { + log.debug("Record : " + record.toString() + " Parent ID : " + parentId.getId()); + CatalogKey key = (CatalogKey) record.getKey(); + if (key.getParentId().getId() == parentId.getId()) { + return record; + } + } + return null; + } + + /** + * @param parentId + * @return an array of NodeRecords + */ + public final LeafRecord[] findAll(final CatalogNodeId parentId) { + List<LeafRecord> list = new LinkedList<LeafRecord>(); + for (int index = 0; index < this.getNodeDescriptor().getNumRecords(); index++) { + LeafRecord record = this.getNodeRecord(index); + log.debug("Record : " + record.toString() + " Parent ID : " + parentId.getId()); + CatalogKey key = (CatalogKey) record.getKey(); + if (key.getParentId().getId() == parentId.getId()) { + list.add(record); + } + } + return list.toArray(new LeafRecord[list.size()]); + } + } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |