19be2e8bdSTyler Dauwalder #include "MetadataPartition.h" 29be2e8bdSTyler Dauwalder 39be2e8bdSTyler Dauwalder #define B_NOT_IMPLEMENTED B_ERROR 49be2e8bdSTyler Dauwalder 59be2e8bdSTyler Dauwalder using namespace Udf; 69be2e8bdSTyler Dauwalder 79be2e8bdSTyler Dauwalder /*! \brief Creates a new MetadataPartition object. 89be2e8bdSTyler Dauwalder */ 99be2e8bdSTyler Dauwalder MetadataPartition::MetadataPartition(Partition &parentPartition, 109be2e8bdSTyler Dauwalder uint32 metadataFileLocation, 119be2e8bdSTyler Dauwalder uint32 metadataMirrorFileLocation, 129be2e8bdSTyler Dauwalder uint32 metadataBitmapFileLocation, 139be2e8bdSTyler Dauwalder uint32 allocationUnitSize, 149be2e8bdSTyler Dauwalder uint16 alignmentUnitSize, 159be2e8bdSTyler Dauwalder bool metadataIsDuplicated) 169be2e8bdSTyler Dauwalder : fParentPartition(parentPartition) 179be2e8bdSTyler Dauwalder , fAllocationUnitSize(allocationUnitSize) 189be2e8bdSTyler Dauwalder , fAlignmentUnitSize(alignmentUnitSize) 199be2e8bdSTyler Dauwalder , fMetadataIsDuplicated(metadataIsDuplicated) 209be2e8bdSTyler Dauwalder , fInitStatus(B_NO_INIT) 219be2e8bdSTyler Dauwalder { 229be2e8bdSTyler Dauwalder } 239be2e8bdSTyler Dauwalder 249be2e8bdSTyler Dauwalder /*! \brief Destroys the MetadataPartition object. 259be2e8bdSTyler Dauwalder */ 269be2e8bdSTyler Dauwalder MetadataPartition::~MetadataPartition() 279be2e8bdSTyler Dauwalder { 289be2e8bdSTyler Dauwalder } 299be2e8bdSTyler Dauwalder 309be2e8bdSTyler Dauwalder /*! \brief Maps the given logical block to a physical block on disc. 319be2e8bdSTyler Dauwalder */ 329be2e8bdSTyler Dauwalder status_t 33*a1b5a724STyler Dauwalder MetadataPartition::MapBlock(uint32 logicalBlock, off_t &physicalBlock) 349be2e8bdSTyler Dauwalder { 359be2e8bdSTyler Dauwalder return B_NOT_IMPLEMENTED; 369be2e8bdSTyler Dauwalder } 379be2e8bdSTyler Dauwalder 389be2e8bdSTyler Dauwalder /*! Returns the initialization status of the object. 399be2e8bdSTyler Dauwalder */ 409be2e8bdSTyler Dauwalder status_t 419be2e8bdSTyler Dauwalder MetadataPartition::InitCheck() 429be2e8bdSTyler Dauwalder { 439be2e8bdSTyler Dauwalder return fInitStatus; 449be2e8bdSTyler Dauwalder } 45