1/* 2 * Copyright 2007, Ingo Weinhold, bonefish@users.sf.net. 3 * Distributed under the terms of the MIT License. 4 */ 5#ifndef _INTEL_DISK_SYSTEM_H 6#define _INTEL_DISK_SYSTEM_H 7 8#include "PartitionMap.h" 9 10 11static inline off_t 12sector_align(off_t offset, uint32 blockSize) 13{ 14 return offset / blockSize * blockSize; 15} 16 17 18#endif // _INTEL_DISK_SYSTEM_H 19