xref: /haiku/src/system/boot/loader/file_systems/hfs_plus/hfs_plus.cpp (revision 220d04022750f40f8bac8f01fa551211e28d04f2)
1 /*
2  * Copyright 2005-2013, Axel Dörfler, axeld@pinc-software.de.
3  * Distributed under the terms of the MIT License.
4  */
5 
6 
7 #include "hfs_plus.h"
8 
9 #include <boot/partitions.h>
10 #include <boot/platform.h>
11 
12 #include <string.h>
13 #include <unistd.h>
14 #include <fcntl.h>
15 #include <stdio.h>
16 #include <stdlib.h>
17 
18 
19 using namespace HFSPlus;
20 
21 #if 0
22 status_t
23 HFSPlus::get_root_block(int fDevice, char *buffer, int32 blockSize, off_t partitionSize)
24 {
25 	hfs_volume_header header;
26 	if (read_pos(fDevice, 1024, &header, sizeof(header)) < B_OK)
27 		return B_ERROR;
28 
29 
30 	return B_OK;
31 }
32 #endif
33 
34 //	#pragma mark -
35 
36 
37 static status_t
38 hfs_plus_get_file_system(boot::Partition *partition, ::Directory **_root)
39 {
40 /*	Volume *volume = new(nothrow) Volume(partition);
41 	if (volume == NULL)
42 		return B_NO_MEMORY;
43 
44 	if (volume->InitCheck() < B_OK) {
45 		delete volume;
46 		return B_ERROR;
47 	}
48 
49 	*_root = volume->Root();
50 */	return B_OK;
51 }
52 
53 
54 file_system_module_info gAmigaFFSFileSystemModule = {
55 	"file_systems/hfs_plus/v1",
56 	kPartitionTypeHFSPlus,
57 	NULL,
58 	hfs_plus_get_file_system
59 };
60 
61