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 11 static inline off_t 12 sector_align(off_t offset) 13 { 14 return offset / SECTOR_SIZE * SECTOR_SIZE; 15 } 16 17 18 #endif // _INTEL_DISK_SYSTEM_H 19