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
19using namespace HFSPlus;
20
21#if 0
22status_t
23HFSPlus::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
37static status_t
38hfs_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
54file_system_module_info gAmigaFFSFileSystemModule = {
55	"file_systems/hfs_plus/v1",
56	kPartitionTypeHFSPlus,
57	NULL,
58	hfs_plus_get_file_system
59};
60
61