/* $Id$ */
/** @file
* fsw_hfs.h - HFS file system driver header.
*/
/*
* Copyright (C) 2010 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*
* The contents of this file may alternatively be used under the terms
* of the Common Development and Distribution License Version 1.0
* (CDDL) only, as it comes in the "COPYING.CDDL" file of the
* VirtualBox OSE distribution, in which case the provisions of the
* CDDL are applicable instead of those of the GPL.
*
* You may elect to license modified versions of this file under the
* terms and conditions of either the GPL or the CDDL or both.
*/
#ifndef _FSW_HFS_H_
#define _FSW_HFS_H_
#include "fsw_core.h"
#define IN_RING0
#if !defined(ARCH_BITS) || !defined(HC_ARCH_BITS)
# error "please add right bitness"
#endif
//! Block size for HFS volumes.
//! Block number where the HFS superblock resides.
#ifdef _MSC_VER
* declarations
*/
#endif
struct hfs_dirrec {
};
#pragma pack(1)
struct fsw_hfs_key
{
union
{
};
};
#pragma pack()
typedef enum {
/* Regular HFS */
FSW_HFS_PLAIN = 0,
/* HFS+ */
/* HFS+ embedded to HFS */
} fsw_hfs_kind;
/**
* HFS: Dnode structure with HFS-specific data.
*/
struct fsw_hfs_dnode
{
struct fsw_dnode g; //!< Generic dnode structure
};
/**
* HFS: In-memory B-tree structure.
*/
struct fsw_hfs_btree
{
};
/**
* HFS: In-memory volume structure with HFS-specific data.
*/
struct fsw_hfs_volume
{
struct fsw_volume g; //!< Generic volume structure
int case_sensitive;
};
/* Endianess swappers. */
{
return RT_BE2H_U16(x);
}
{
return RT_H2BE_U16(x);
}
{
return RT_H2BE_U32(x);
}
{
return RT_BE2H_U32(x);
}
{
return RT_BE2H_U64(x);
}
#endif