00001 /* 00002 libparted - a library for manipulating disk partitions 00003 Copyright (C) 2001 Free Software Foundation, Inc. 00004 00005 This program is free software; you can redistribute it and/or modify 00006 it under the terms of the GNU General Public License as published by 00007 the Free Software Foundation; either version 2 of the License, or 00008 (at your option) any later version. 00009 00010 This program is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 GNU General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License 00016 along with this program; if not, write to the Free Software 00017 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA 00018 */ 00019 00020 #ifndef PED_LINUX_H_INCLUDED 00021 #define PED_LINUX_H_INCLUDED 00022 00023 #include <parted/parted.h> 00024 #include <parted/device.h> 00025 00026 #if defined __s390__ || defined __s390x__ 00027 # include <parted/fdasd.h> 00028 #endif 00029 00030 #define LINUX_SPECIFIC(dev) ((LinuxSpecific*) (dev)->arch_specific) 00031 00032 typedef struct _LinuxSpecific LinuxSpecific; 00033 00034 struct _LinuxSpecific { 00035 int fd; 00036 #if defined(__s390__) || defined(__s390x__) 00037 unsigned int real_sector_size; 00038 /* IBM internal dasd structure (i guess ;), required. */ 00039 struct fdasd_anchor *anchor; 00040 #endif 00041 }; 00042 00043 extern PedArchitecture ped_linux_arch; 00044 00045 #endif /* PED_LINUX_H_INCLUDED */ 00046
1.5.2