home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2007 January, February, March & April
/
Chip-Cover-CD-2007-02.iso
/
boot
/
i386
/
root
/
usr
/
share
/
YaST2
/
include
/
partitioning
/
custom_part_testdata.ycp
< prev
next >
Wrap
Text File
|
2006-11-29
|
19KB
|
629 lines
/*
*************************************************************
*
* YaST2 SuSE Labs -o)
* -------------------- /\\
* _\_v
* www.suse.de / www.suse.com
* ----------------------------------------------------------
*
* Name: include/custom_part_testdata.ycp
*
* Author: Michael Hager <mike@suse.de>
*
* Description: Partitioner for experts.
*
*
* Purpose:
* modul of inst_custom_part
* - contains testdata
*
*
*************************************************************
$Id: custom_part_testdata.ycp 24121 2005-07-18 13:33:35Z fehr $
*/
{
textdomain "storage";
define map getRaidTestTargetMap()
``{
return $[
"/dev/hda" : $[
"cyl_count" : 1247,
"cyl_size" : 8224768,
"model" : "QUANTUM FIREBALLlct10 10",
"partitions" : [
$[
"fsid" : 131,
"fstype" : "Linux native",
"mount" : "/boot",
"nr" : 1,
"ori_nr" : 1,
"region" : [ 0, 3 ],
"size_k" : 24096,
"type" : `primary,
"used_fs" : `unknown
],
$[
"fsid" : 130,
"fstype" : "Linux swap",
"mount" : "swap",
"nr" : 2,
"ori_nr" : 2,
"region" : [ 3, 17 ],
"size_k" : 136544,
"type" : `primary
],
$[
"fsid" : 131,
"fstype" : "Linux native",
"mount" : "/",
"nr" : 3,
"ori_nr" : 3,
"region" : [ 20, 1227 ],
"size_k" : 9855264,
"type" : `primary,
"used_fs" : `unknown
]
],
"scrpath" : .hda,
"vendor" : "",
"whole_disk" : true
],
"/dev/hdd" : $[
"cyl_count" : 89355,
"cyl_size" : 516096,
"model" : "IBM-DTLA-307045",
"partitions" : [
$[
// "create" : true,
"format" : false,
"fsid" : 253,
"fstype" : "Linux RAID",
"mount" : "",
"nr" : 1,
"old_fsid" : 131,
"old_fstype" : "Linux native",
"ori_nr" : 1,
"used_by_type" : `UB_MD,
"used_by" : "md0",
"region" : [ 0, 10001 ],
"size_k" : 5040504,
"type" : `primary,
"used_fs" : `unknown
],
$[
//"create" : true,
"format" : false,
"fsid" : 253,
"fstype" : "Linux RAID",
"mount" : "",
"nr" : 2,
"old_fsid" : 131,
"old_fstype" : "Linux native",
"ori_nr" : 2,
"used_by_type" : `UB_MD,
"used_by" : "md0",
"region" : [ 10001, 10000 ],
"size_k" : 5040000,
"type" : `primary,
"used_fs" : `unknown
],
$[
//"create" : true,
"format" : false,
"fsid" : 253,
"fstype" : "Linux RAID",
"mount" : "",
"nr" : 3,
"old_fsid" : 131,
"old_fstype" : "Linux native",
"ori_nr" : 3,
"used_by_type" : `UB_MD,
"used_by" : "md1",
"region" : [ 20001, 10000 ],
"size_k" : 5040000,
"type" : `primary,
"used_fs" : `unknown
],
$[
//"create" : true,
//"format" : true,
"fsid" : 15,
"fstype" : "Extended",
"nr" : 4,
"ori_nr" : 4,
"region" : [ 30001, 59354 ],
"size_k" : 29914416,
"type" : `extended,
"used_fs" : `unknown
],
$[
//"create" : true,
"format" : false,
"fsid" : 253,
"fstype" : "Linux RAID",
"mount" : "",
"nr" : 5,
"old_fsid" : 131,
"old_fstype" : "Linux native",
"ori_nr" : 5,
"used_by_type" : `UB_MD,
"used_by" : "md1",
"region" : [ 30001, 10000 ],
"size_k" : 5040000,
"type" : `logical,
"used_fs" : `unknown
]
],
"scrpath" : .hdd,
"vendor" : "",
"whole_disk" : false
],
"/dev/md" : $[
"cyl_count" : 1,
"cyl_size" : 1048576,
"name" : "MD Raid",
"partitions" : [
$[
"chunk_size" : 4,
"create" : true,
"format" : true,
"fstype" : "Linux RAID",
"mount" : "/home",
"nr" : 0,
"raid_type" : "raid1",
"device" : "/dev/md0",
"size_k" : 1048576,
"type" : `sw_raid,
"used_fs" : `ext2
],
$[
"chunk_size" : 4,
"create" : true,
"format" : true,
"fsid" : 131,
"fstype" : "Linux RAID",
"mount" : "/local",
"nr" : 1,
"device" : "/dev/md1",
"raid_type" : "raid1",
"size_k" : 1048576,
"type" : `sw_raid,
"used_fs" : `ext2
]
],
"whole_disk" : true
]
];
};
define map getOrgTestTargetMap() ``{
return $[
"/dev/hda" : $[
"cyl_count" : 1247,
"cyl_size" : 8224768,
"model" : "QUANTUM FIREBALLlct10 10",
"partitions" : [
$[
"fsid" : 131,
"fstype" : "Linux native",
"mount" : "/boot",
"nr" : 1,
"region" : [ 0, 3 ],
"size_k" : 24096,
"type" : `primary
],
$[
"fsid" : 130,
"fstype" : "Linux swap",
"mount" : "swap",
"nr" : 2,
"region" : [ 3, 17 ],
"size_k" : 136544,
"type" : `primary
],
$[
"fsid" : 131,
"fstype" : "Linux native",
"mount" : "/",
"nr" : 3,
"region" : [ 20, 1227 ],
"size_k" : 9855264,
"type" : `primary
]
],
"scrpath" : .hda,
"vendor" : ""
],
"/dev/hdd" : $[
"cyl_count" : 89355,
"cyl_size" : 516096,
"model" : "IBM-DTLA-307045",
"partitions" : [
$[
"fsid" : 131,
"fstype" : "Linux native",
"mount" : "/suseinst_images",
"nr" : 1,
"region" : [ 0, 89355 ],
"size_k" : 45034920,
"type" : `primary
]
],
"scrpath" : .hdd,
"vendor" : ""
]
];
};
define map getTestTargetMap() ``{
return $[
"/dev/sda":$[
"bus":"SCSI",
"name":"1. SCSI, 8.54 GB, /dev/sda, IBM-DNES-309170W",
"cyl_count":1114,
"cyl_size":2224768,
"vendor":"",
"model": "DNES-309170-X",
"partitions":[
$["fsid":130, "fstype":"Linux swap", "mount":"swap", "nr":4, "ori_nr":4, "region":[280, 129], "size_k":280268,"type":`primary],
$["fsid":11,
"fstype":"Windows",
"nr":1,
"region":[0, 254],
"size_k":551846,
"type":`primary],
$["fsid":130,
"fstype":"Linux swap",
"nr":2,
"region":[255, 16],
"size_k":34762,
"type":`primary],
$[ "fsid": 0,
"fstype":"Apple Extent",
"nr":3,
"region":[255, 16],
"size_k":34762,
"type":`pdisk],
]
],
"/dev/sdb":$[
"bus":"SCSI",
"name":"1. SCSI, 8.54 GB, /dev/sda, IBM-DNES-309170W",
"cyl_count":11141,
"cyl_size":2224768,
//"raid" : true,
"vendor":"IBM DNES-309170-XEW",
"partitions":[
$["fsid":131,
"fstype":"Linux native",
"nr":1,
"format":true,
"region":[1, 254],
"size_k":551846,
"type":`primary],
$["fsid":5,
"fstype":"Extended",
"nr":4,
"region":[272, 1000],
"size_k":2172625,
"type":`extended],
$["fsid":11,
"fstype":"Windows",
"nr":2,
"region":[255, 16],
"size_k":34762,
"type":`primary],
$["fsid":130,
"fstype":"Linux swap",
"nr":9,
"region":[272, 100],
"size_k":217262,
"type":`logical],
$["fsid":130,
"fstype":"Linux",
"nr":6,
"region":[372, 100],
"size_k":217262,
"type":`logical],
$["fsid":131,
"fstype":"Linux",
"nr":7,
"region":[472, 300],
"size_k":651787,
"type":`logical],
$["fsid":131,
"fstype":"Linux native",
"nr":8,
"region":[1273, 9869],
"size_k":21441636,
"type":`logical],
$["fsid":11,
"fstype":"Windows",
"nr":5,
"region":[255, 16],
"size_k":34762,
"type":`logical],
$["fsid":130,
"fstype":"Linux swap",
"nr":10,
"region":[272, 100],
"size_k":217262,
"type":`logical],
$["fsid":130,
"fstype":"Linux",
"nr":11,
"region":[372, 100],
"size_k":217262,
"type":`logical],
$["fsid":131,
"fstype":"Linux",
"nr":12,
"region":[472, 300],
"size_k":651787,
"type":`logical]
]]];
};
//////////////////////////////////////////////////////////////////////
define map getLvmTestTargetMap()
``{
map testtargetMap = $[
"/dev/oracle":$[
"bus":"SCSI",
"name":"oracle",
"cyl_count": 20000,
"cyl_size" : 131072,
"type" : `CT_LVM,
"partitions":[
$[ "fstype":"LV",
"name":"usr",
"size_k":416512,
"mount":"/usr",
"used_fs": `reiser,
"type":`lvm],
$[ "fstype":"LV",
"name":"var",
"mount":"/var",
"size_k":270848,
"type":`lvm],
]
],
"/dev/sda":$[
"bus":"SCSI",
"name":"1. SCSI, 8.54 GB, /dev/sda, IBM-DNES-309170W",
"cyl_count":1114,
"cyl_size":2224768,
"vendor":"",
"model": "DNES-309170-X",
"partitions":[
$["fsid":130, "fstype":"Linux swap", "mount":"swap", "nr":4, "ori_nr":4, "region":[280, 129], "size_k":280268, "type":`primary],
$["fsid":11,
"fstype":"Windows",
"nr":1,
"region":[0, 254],
"size_k":551846,
"type":`primary],
$["fsid":130,
"fstype":"Linux swap",
"nr":2,
"region":[255, 16],
"size_k":34762,
"type":`primary],
$[ "fsid": 0,
"fstype":"Apple Extent",
"nr":3,
"region":[255, 16],
"size_k":34762,
"type":`pdisk]
]
],
"/dev/sdb":$[
"bus":"SCSI",
"name":"1. SCSI, 8.54 GB, /dev/sda, IBM-DNES-309170W",
"cyl_count":11141,
"cyl_size":2224768,
//"raid" : true,
"vendor":"IBM DNES-309170-XEW",
"partitions":[
$["fsid":142,
"fstype":"LVM.",
"nr":1,
"format":true,
"region":[1, 1254],
"size_k":2724471,
"used_by" : "oracle",
"used_by_type" : `UB_LVM,
"type":`primary],
$["fsid":5,
"fstype":"Extended",
"nr":4,
"region":[272, 1000],
"size_k":2172625,
"type":`extended],
$["fsid":11,
"fstype":"Windows",
"nr":2,
"region":[255, 16],
"size_k":34762,
"type":`primary],
$["fsid":130,
"fstype":"Linux swap",
"nr":9,
"region":[272, 100],
"size_k":217262,
"type":`logical],
$["fsid":130,
"fstype":"Linux",
"nr":6,
"region":[372, 100],
"size_k":217262,
"type":`logical],
$["fsid":131,
"fstype":"Linux",
"nr":7,
"region":[472, 300],
"size_k":651787,
"type":`logical],
$["fsid":131,
"fstype":"Linux native",
"nr":8,
"region":[1273, 9869],
"size_k":21441636,
"type":`logical],
$["fsid":11,
"fstype":"Windows",
"nr":5,
"region":[255, 16],
"size_k":34762,
"type":`logical],
$["fsid":130,
"fstype":"Linux swap",
"nr":10,
"region":[272, 100],
"size_k":217262,
"type":`logical],
$["fsid":130,
"fstype":"Linux",
"nr":11,
"region":[372, 100],
"size_k":217262,
"type":`logical],
$["fsid":131,
"fstype":"Linux",
"nr":12,
"region":[472, 300],
"size_k":651787,
"type":`logical]
]]];
return( testtargetMap );
};
define map getLvmTest2TargetMap() ``{
map testtargetMap = $["/dev/sda":
$["bus":"SCSI",
"cyl_count":1111,
"cyl_size":8225280,
"model":"DDRS-39130D",
"name":"1. SCSI, 8.51 GB, /dev/sda, IBM-DDRS-39130D",
"vendor":"IBM",
"partitions":
[$["fsid":131,
"fstype":"Linux native",
"nr":1,
"region":[1, 20],
"size_k":160650,
"type":`primary],
$["fsid":130,
"fstype":"Linux swap",
"nr":2,
"region":[21, 20],
"size_k":160650,
"type":`primary],
$["fsid":5,
"fstype":"Extended",
"nr":3,
"region":[41, 1071],
"size_k":8602807,
"type":`extended],
$["fsid":142,
"fstype":"LVM",
"nr":5,
"region":[41, 131],
"size_k":1052257,
"type":`logical],
$["fsid":142,
"fstype":"LVM",
"nr":6,
"region":[172, 131],
"size_k":1052257,
"type":`logical],
$["fsid":142,
"fstype":"LVM",
"nr":7,
"region":[303, 262],
"size_k":2104515,
"type":`logical],
$["fsid":142,
"fstype":"LVM",
"nr":8,
"region":[565, 262],
"size_k":2104515,
"type":`logical],
$["fsid":142,
"fstype":"LVM",
"nr":9,
"region":[827, 285],
"size_k":2289262,
"type":`logical]],
],
"/dev/sdb":
$["bus":"SCSI",
"cyl_count":263,
"cyl_size":8225280,
"model":"DORS-32160",
"name":"2. SCSI, 2.01 GB, /dev/sdb, IBM-DORS-32160",
"vendor":"IBM",
"partitions":
[$["fsid":142,
"fstype":"LVM",
"nr":1,
"region":[1, 1],
"size_k":8032,
"type":`primary],
$["fsid":131,
"fstype":"LVM",
"nr":2,
"region":[2, 17],
"size_k":136552,
"type":`primary],
$["fsid":142,
"fstype":"LVM",
"nr":3,
"region":[19, 244],
"size_k":1959930,
"type":`primary]],
],
"/dev/sdc":
$["bus":"SCSI",
"cyl_count":275,
"cyl_size":8225280,
"model":"ST32272N",
"name":"3. SCSI, 2.11 GB, /dev/sdc, SEAGATE-ST32272N",
"vendor":"SEAGATE",
"partitions":
[$["fsid":142,
"fstype":"LVM",
"nr":1,
"region":[1, 275],
"size_k":2208937,
"type":`primary]
]
]
];
return( testtargetMap );
};
}