headers/bsd: Add sys/queue.h.
[haiku.git] / src / system / boot / loader / file_systems / hfs_plus / hfs_plus.cpp
blobea3d0c26d080e2095301ebb33c5508517cd1bbea
1 /*
2 * Copyright 2005-2013, Axel Dörfler, axeld@pinc-software.de.
3 * Distributed under the terms of the MIT License.
4 */
7 #include "hfs_plus.h"
9 #include <boot/partitions.h>
10 #include <boot/platform.h>
12 #include <string.h>
13 #include <unistd.h>
14 #include <fcntl.h>
15 #include <stdio.h>
16 #include <stdlib.h>
19 using namespace HFSPlus;
21 #if 0
22 status_t
23 HFSPlus::get_root_block(int fDevice, char *buffer, int32 blockSize, off_t partitionSize)
25 hfs_volume_header header;
26 if (read_pos(fDevice, 1024, &header, sizeof(header)) < B_OK)
27 return B_ERROR;
30 return B_OK;
32 #endif
34 // #pragma mark -
37 static status_t
38 hfs_plus_get_file_system(boot::Partition *partition, ::Directory **_root)
40 /* Volume *volume = new(nothrow) Volume(partition);
41 if (volume == NULL)
42 return B_NO_MEMORY;
44 if (volume->InitCheck() < B_OK) {
45 delete volume;
46 return B_ERROR;
49 *_root = volume->Root();
50 */ return B_OK;
54 file_system_module_info gAmigaFFSFileSystemModule = {
55 "file_systems/hfs_plus/v1",
56 kPartitionTypeHFSPlus,
57 NULL,
58 hfs_plus_get_file_system