00001 /* 00002 * Copyright (C) 2006, Jose Renato Santos. 00003 * 00004 * This file may be distributed under the terms of the Q Public License 00005 * as defined by Trolltech AS of Norway and appearing in the file 00006 * LICENSE.QPL included in the packaging of this file. 00007 * 00008 * THIS FILE IS PROVIDED AS IS WITH NO WARRANTY OF ANY KIND, INCLUDING 00009 * THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR 00010 * PURPOSE. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, 00011 * INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING 00012 * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, 00013 * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION 00014 * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 00015 * 00016 */ 00017 00018 /////////////////////////////////////////////////////////////////////////////// 00019 // config.h : Global structures used by storage server 00020 /////////////////////////////////////////////////////////////////////////////// 00021 00022 #ifndef __CONFIG_H_ 00023 #define __CONFIG_H_ 00024 00025 #include <vsitypesint.h> 00026 00027 struct DiskConfig 00028 { 00029 char* Name; 00030 u64 Size; 00031 u16 SectorSize; 00032 }; 00033 00034 struct StorageConfig 00035 { 00036 u32 nDisks; 00037 u32 FragSize; 00038 u32 BufferSize; 00039 u32 MaxReqSize; 00040 u32 MaxReq; 00041 u16 RouterPort; 00042 DiskConfig* Disk; 00043 }; 00044 00045 00046 #endif // __CONFIG_H_