2 * Copyright 2005-2013, Axel Dörfler, axeld@pinc-software.de.
3 * Distributed under the terms of the MIT License.
9 #include <boot/partitions.h>
10 #include <boot/platform.h>
19 using namespace HFSPlus
;
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
)
38 hfs_plus_get_file_system(boot::Partition
*partition
, ::Directory
**_root
)
40 /* Volume *volume = new(nothrow) Volume(partition);
44 if (volume->InitCheck() < B_OK) {
49 *_root = volume->Root();
54 file_system_module_info gAmigaFFSFileSystemModule
= {
55 "file_systems/hfs_plus/v1",
56 kPartitionTypeHFSPlus
,
58 hfs_plus_get_file_system