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 >
Text File  |  2006-11-29  |  19KB  |  629 lines

  1. /*
  2.  *************************************************************
  3.  *
  4.  *     YaST2      SuSE Labs                        -o)
  5.  *     --------------------                        /\\
  6.  *                                                _\_v
  7.  *           www.suse.de / www.suse.com
  8.  * ----------------------------------------------------------
  9.  *
  10.  * Name:          include/custom_part_testdata.ycp
  11.  *
  12.  * Author:        Michael Hager <mike@suse.de>
  13.  *
  14.  * Description:   Partitioner for experts.
  15.  *
  16.  *
  17.  * Purpose:
  18.  *                      modul of inst_custom_part
  19.  *                      - contains testdata
  20.  *
  21.  *
  22.  *************************************************************
  23.  
  24.  $Id: custom_part_testdata.ycp 24121 2005-07-18 13:33:35Z fehr $
  25.  
  26. */
  27. {
  28.   textdomain "storage";
  29.  
  30. define map getRaidTestTargetMap() 
  31.     ``{
  32.     return   $[
  33.         "/dev/hda" : $[
  34.     "cyl_count" : 1247,
  35.     "cyl_size" : 8224768,
  36.     "model" : "QUANTUM FIREBALLlct10 10",
  37.     "partitions" : [
  38.       $[
  39.         "fsid" : 131,
  40.         "fstype" : "Linux native",
  41.         "mount" : "/boot",
  42.         "nr" : 1,
  43.         "ori_nr" : 1,
  44.         "region" : [ 0, 3 ],
  45.     "size_k" : 24096,
  46.         "type" : `primary,
  47.         "used_fs" : `unknown
  48.       ],
  49.       $[
  50.         "fsid" : 130,
  51.         "fstype" : "Linux swap",
  52.         "mount" : "swap",
  53.         "nr" : 2,
  54.         "ori_nr" : 2,
  55.         "region" : [ 3, 17 ],
  56.     "size_k" : 136544,
  57.         "type" : `primary
  58.       ],
  59.       $[
  60.         "fsid" : 131,
  61.         "fstype" : "Linux native",
  62.         "mount" : "/",
  63.         "nr" : 3,
  64.         "ori_nr" : 3,
  65.         "region" : [ 20, 1227 ],
  66.     "size_k" : 9855264,
  67.         "type" : `primary,
  68.         "used_fs" : `unknown
  69.       ]
  70.     ],
  71.     "scrpath" : .hda,
  72.     "vendor" : "",
  73.     "whole_disk" : true
  74.   ],
  75.   "/dev/hdd" : $[
  76.     "cyl_count" : 89355,
  77.     "cyl_size" : 516096,
  78.     "model" : "IBM-DTLA-307045",
  79.     "partitions" : [
  80.    
  81.       $[
  82.     // "create" : true,
  83.         "format" : false,
  84.         "fsid" : 253,
  85.         "fstype" : "Linux RAID",
  86.         "mount" : "",
  87.         "nr" : 1,
  88.         "old_fsid" : 131,
  89.         "old_fstype" : "Linux native",
  90.         "ori_nr" : 1,
  91.         "used_by_type" : `UB_MD,
  92.         "used_by" : "md0",
  93.         "region" : [ 0, 10001 ],
  94.     "size_k" : 5040504,
  95.         "type" : `primary,
  96.         "used_fs" : `unknown
  97.       ],
  98.       $[
  99.         //"create" : true,
  100.         "format" : false,
  101.         "fsid" : 253,
  102.         "fstype" : "Linux RAID",
  103.         "mount" : "",
  104.         "nr" : 2,
  105.         "old_fsid" : 131,
  106.         "old_fstype" : "Linux native",
  107.         "ori_nr" : 2,
  108.         "used_by_type" : `UB_MD,
  109.         "used_by" : "md0",
  110.         "region" : [ 10001, 10000 ],
  111.     "size_k" : 5040000,
  112.         "type" : `primary,
  113.         "used_fs" : `unknown
  114.       ],
  115.       $[
  116.         //"create" : true,
  117.         "format" : false,
  118.         "fsid" : 253,
  119.         "fstype" : "Linux RAID",
  120.         "mount" : "",
  121.         "nr" : 3,
  122.         "old_fsid" : 131,
  123.         "old_fstype" : "Linux native",
  124.         "ori_nr" : 3,
  125.         "used_by_type" : `UB_MD,
  126.         "used_by" : "md1",
  127.         "region" : [ 20001, 10000 ],
  128.     "size_k" : 5040000,
  129.         "type" : `primary,
  130.         "used_fs" : `unknown
  131.       ],
  132.       $[
  133.         //"create" : true,
  134.         //"format" : true,
  135.         "fsid" : 15,
  136.         "fstype" : "Extended",
  137.         "nr" : 4,
  138.         "ori_nr" : 4,
  139.         "region" : [ 30001, 59354 ],
  140.     "size_k" : 29914416,
  141.         "type" : `extended,
  142.         "used_fs" : `unknown
  143.       ],
  144.       $[
  145.         //"create" : true,
  146.         "format" : false,
  147.         "fsid" : 253,
  148.         "fstype" : "Linux RAID",
  149.         "mount" : "",
  150.         "nr" : 5,
  151.         "old_fsid" : 131,
  152.         "old_fstype" : "Linux native",
  153.         "ori_nr" : 5,
  154.         "used_by_type" : `UB_MD,
  155.         "used_by" : "md1",
  156.         "region" : [ 30001, 10000 ],
  157.     "size_k" : 5040000,
  158.         "type" : `logical,
  159.         "used_fs" : `unknown
  160.       ]
  161.     ],
  162.     "scrpath" : .hdd,
  163.     "vendor" : "",
  164.     "whole_disk" : false
  165.   ],
  166.   "/dev/md" : $[
  167.     "cyl_count" : 1,
  168.     "cyl_size" : 1048576,
  169.     "name" : "MD Raid",
  170.     "partitions" : [
  171.       $[
  172.         "chunk_size" : 4,
  173.         "create" : true,
  174.         "format" : true,
  175.         "fstype" : "Linux RAID",
  176.         "mount" : "/home",
  177.         "nr" : 0,
  178.         "raid_type" : "raid1",
  179.     "device" : "/dev/md0",
  180.     "size_k" : 1048576,
  181.         "type" : `sw_raid,
  182.         "used_fs" : `ext2
  183.       ],
  184.       $[
  185.         "chunk_size" : 4,
  186.         "create" : true,
  187.         "format" : true,
  188.         "fsid" : 131,
  189.         "fstype" : "Linux RAID",
  190.         "mount" : "/local",
  191.         "nr" : 1,
  192.     "device" : "/dev/md1",
  193.         "raid_type" : "raid1",
  194.     "size_k" : 1048576,
  195.         "type" : `sw_raid,
  196.         "used_fs" : `ext2
  197.       ]
  198.     ],
  199.     "whole_disk" : true
  200.   ]
  201.       ];
  202.  
  203.   };
  204.   
  205. define map getOrgTestTargetMap() ``{
  206.     return  $[
  207.   "/dev/hda" : $[
  208.     "cyl_count" : 1247,
  209.     "cyl_size" : 8224768,
  210.     "model" : "QUANTUM FIREBALLlct10 10",
  211.     "partitions" : [
  212.       $[
  213.         "fsid" : 131,
  214.         "fstype" : "Linux native",
  215.         "mount" : "/boot",
  216.         "nr" : 1,
  217.         "region" : [ 0, 3 ],
  218.         "size_k" : 24096,
  219.         "type" : `primary
  220.       ],
  221.       $[
  222.         "fsid" : 130,
  223.         "fstype" : "Linux swap",
  224.         "mount" : "swap",
  225.         "nr" : 2,
  226.         "region" : [ 3, 17 ],
  227.         "size_k" : 136544,
  228.         "type" : `primary
  229.       ],
  230.       $[
  231.         "fsid" : 131,
  232.         "fstype" : "Linux native",
  233.         "mount" : "/",
  234.         "nr" : 3,
  235.         "region" : [ 20, 1227 ],
  236.         "size_k" : 9855264,
  237.         "type" : `primary
  238.       ]
  239.     ],
  240.     "scrpath" : .hda,
  241.     "vendor" : ""
  242.   ],
  243.   "/dev/hdd" : $[
  244.     "cyl_count" : 89355,
  245.     "cyl_size" : 516096,
  246.     "model" : "IBM-DTLA-307045",
  247.     "partitions" : [
  248.       $[
  249.         "fsid" : 131,
  250.         "fstype" : "Linux native",
  251.         "mount" : "/suseinst_images",
  252.         "nr" : 1,
  253.         "region" : [ 0, 89355 ],
  254.         "size_k" : 45034920,
  255.         "type" : `primary
  256.       ]
  257.     ],
  258.     "scrpath" : .hdd,
  259.     "vendor" : ""
  260.   ]
  261.     ];
  262.   };
  263.  
  264. define map getTestTargetMap() ``{
  265.        return $[
  266.               "/dev/sda":$[
  267.                "bus":"SCSI",
  268.                "name":"1. SCSI, 8.54 GB, /dev/sda, IBM-DNES-309170W",
  269.                "cyl_count":1114,
  270.            "cyl_size":2224768,
  271.                "vendor":"",
  272.            "model": "DNES-309170-X",
  273.                "partitions":[
  274.                  $["fsid":130, "fstype":"Linux swap", "mount":"swap", "nr":4, "ori_nr":4, "region":[280, 129], "size_k":280268,"type":`primary],
  275.                  $["fsid":11,
  276.                                 "fstype":"Windows",
  277.                                 "nr":1,
  278.                                 "region":[0, 254],
  279.                                 "size_k":551846,
  280.                                 "type":`primary],
  281.                  $["fsid":130,
  282.                                 "fstype":"Linux swap",
  283.                                 "nr":2,
  284.                                 "region":[255, 16],
  285.                                 "size_k":34762,
  286.                                 "type":`primary],
  287.                  $[ "fsid": 0,
  288.                                 "fstype":"Apple Extent",
  289.                                 "nr":3,
  290.                                 "region":[255, 16],
  291.                                 "size_k":34762,
  292.                                 "type":`pdisk],
  293.                                ]
  294.                            ],
  295.               "/dev/sdb":$[
  296.                "bus":"SCSI",
  297.                "name":"1. SCSI, 8.54 GB, /dev/sda, IBM-DNES-309170W",
  298.                "cyl_count":11141,
  299.                "cyl_size":2224768,
  300.            //"raid" : true,
  301.                "vendor":"IBM DNES-309170-XEW",
  302.                "partitions":[
  303.                  $["fsid":131,
  304.                                 "fstype":"Linux native",
  305.                                 "nr":1,
  306.                                 "format":true,
  307.                                 "region":[1, 254],
  308.                                 "size_k":551846,
  309.                                 "type":`primary],
  310.                  $["fsid":5,
  311.                                 "fstype":"Extended",
  312.                                 "nr":4,
  313.                                 "region":[272, 1000],
  314.                                 "size_k":2172625,
  315.                                 "type":`extended],
  316.                  
  317.                                $["fsid":11,
  318.                                 "fstype":"Windows",
  319.                       "nr":2,
  320.                                 "region":[255, 16],
  321.                                 "size_k":34762,
  322.                                 "type":`primary],
  323.                                $["fsid":130,
  324.                                 "fstype":"Linux swap",
  325.                                 "nr":9,
  326.                                 "region":[272, 100],
  327.                                 "size_k":217262,
  328.                                 "type":`logical],
  329.                                $["fsid":130,
  330.                                 "fstype":"Linux",
  331.                                 "nr":6,
  332.                                 "region":[372, 100],
  333.                                 "size_k":217262,
  334.                                 "type":`logical],
  335.                                $["fsid":131,
  336.                                 "fstype":"Linux",
  337.                                 "nr":7,
  338.                                 "region":[472, 300],
  339.                                 "size_k":651787,
  340.                                 "type":`logical],                                                
  341.                                $["fsid":131,
  342.                                 "fstype":"Linux native",
  343.                                 "nr":8,
  344.                                 "region":[1273, 9869],
  345.                                 "size_k":21441636,
  346.                                 "type":`logical],
  347.                  $["fsid":11,
  348.                                 "fstype":"Windows",
  349.                       "nr":5,
  350.                                 "region":[255, 16],
  351.                                 "size_k":34762,
  352.                                 "type":`logical],
  353.                                $["fsid":130,
  354.                                 "fstype":"Linux swap",
  355.                                 "nr":10,
  356.                                 "region":[272, 100],
  357.                                 "size_k":217262,
  358.                                 "type":`logical],
  359.                                $["fsid":130,
  360.                                 "fstype":"Linux",
  361.                                 "nr":11,
  362.                                 "region":[372, 100],
  363.                                 "size_k":217262,
  364.                                 "type":`logical],
  365.                                $["fsid":131,
  366.                                 "fstype":"Linux",
  367.                                 "nr":12,
  368.                                 "region":[472, 300],
  369.                                 "size_k":651787,
  370.                                 "type":`logical]                                                
  371.  
  372.                ]]];
  373.   };
  374.  
  375.  
  376.   //////////////////////////////////////////////////////////////////////
  377.   
  378. define map getLvmTestTargetMap()
  379.    ``{
  380.     
  381.     map testtargetMap = $[
  382.               "/dev/oracle":$[
  383.                "bus":"SCSI",
  384.                "name":"oracle",
  385.                "cyl_count": 20000,
  386.                "cyl_size" : 131072,
  387.            "type" : `CT_LVM,
  388.                "partitions":[
  389.                  $[ "fstype":"LV",
  390.                                 "name":"usr",
  391.                                 "size_k":416512,
  392.                     "mount":"/usr",
  393.                     "used_fs": `reiser,
  394.                                 "type":`lvm],
  395.                  
  396.                  $[ "fstype":"LV",
  397.                                 "name":"var",
  398.                     "mount":"/var",
  399.                                 "size_k":270848,
  400.                                 "type":`lvm],
  401.                  
  402.                                ]
  403.                            ],
  404.  
  405.           
  406.           "/dev/sda":$[
  407.                "bus":"SCSI",
  408.                "name":"1. SCSI, 8.54 GB, /dev/sda, IBM-DNES-309170W",
  409.                "cyl_count":1114,
  410.                   "cyl_size":2224768,
  411.                "vendor":"",
  412.            "model": "DNES-309170-X",
  413.                "partitions":[
  414.                  $["fsid":130, "fstype":"Linux swap", "mount":"swap", "nr":4, "ori_nr":4, "region":[280, 129], "size_k":280268, "type":`primary],
  415.                  $["fsid":11,
  416.                                 "fstype":"Windows",
  417.                                 "nr":1,
  418.                                 "region":[0, 254],
  419.                 "size_k":551846,
  420.                                 "type":`primary],
  421.                  $["fsid":130,
  422.                                 "fstype":"Linux swap",
  423.                                 "nr":2,
  424.                                 "region":[255, 16],
  425.                 "size_k":34762,
  426.                                 "type":`primary],
  427.                  $[ "fsid": 0,
  428.                                 "fstype":"Apple Extent",
  429.                                 "nr":3,
  430.                                 "region":[255, 16],
  431.                 "size_k":34762,
  432.                                 "type":`pdisk]
  433.                                ]
  434.                            ],
  435.               "/dev/sdb":$[
  436.                "bus":"SCSI",
  437.                "name":"1. SCSI, 8.54 GB, /dev/sda, IBM-DNES-309170W",
  438.                "cyl_count":11141,
  439.                "cyl_size":2224768,
  440.            //"raid" : true,
  441.                "vendor":"IBM DNES-309170-XEW",
  442.                "partitions":[
  443.                  $["fsid":142,
  444.                                 "fstype":"LVM.",
  445.                                 "nr":1,
  446.                                 "format":true,
  447.                                 "region":[1, 1254],
  448.                 "size_k":2724471,
  449.                 "used_by" : "oracle",
  450.                 "used_by_type" : `UB_LVM,
  451.                                 "type":`primary],
  452.                  $["fsid":5,
  453.                                 "fstype":"Extended",
  454.                                 "nr":4,
  455.                                 "region":[272, 1000],
  456.                 "size_k":2172625,
  457.                                 "type":`extended],
  458.                  
  459.                                $["fsid":11,
  460.                                 "fstype":"Windows",
  461.                       "nr":2,
  462.                                 "region":[255, 16],
  463.                 "size_k":34762,
  464.                                 "type":`primary],
  465.                                $["fsid":130,
  466.                                 "fstype":"Linux swap",
  467.                                 "nr":9,
  468.                                 "region":[272, 100],
  469.                 "size_k":217262,
  470.                                 "type":`logical],
  471.                                $["fsid":130,
  472.                                 "fstype":"Linux",
  473.                                 "nr":6,
  474.                                 "region":[372, 100],
  475.                 "size_k":217262,
  476.                                 "type":`logical],
  477.                                $["fsid":131,
  478.                                 "fstype":"Linux",
  479.                                 "nr":7,
  480.                                 "region":[472, 300],
  481.                 "size_k":651787,
  482.                                 "type":`logical],                                                
  483.                                $["fsid":131,
  484.                                 "fstype":"Linux native",
  485.                                 "nr":8,
  486.                                 "region":[1273, 9869],
  487.                 "size_k":21441636,
  488.                                 "type":`logical],
  489.                  $["fsid":11,
  490.                                 "fstype":"Windows",
  491.                       "nr":5,
  492.                                 "region":[255, 16],
  493.                 "size_k":34762,
  494.                                 "type":`logical],
  495.                                $["fsid":130,
  496.                                 "fstype":"Linux swap",
  497.                                 "nr":10,
  498.                                 "region":[272, 100],
  499.                 "size_k":217262,
  500.                                 "type":`logical],
  501.                                $["fsid":130,
  502.                                 "fstype":"Linux",
  503.                                 "nr":11,
  504.                                 "region":[372, 100],
  505.                 "size_k":217262,
  506.                                 "type":`logical],
  507.                                $["fsid":131,
  508.                                 "fstype":"Linux",
  509.                                 "nr":12,
  510.                                 "region":[472, 300],
  511.                 "size_k":651787,
  512.                                 "type":`logical]                                                
  513.  
  514.                ]]];
  515.  
  516.     return( testtargetMap );
  517.   };
  518.  
  519. define map getLvmTest2TargetMap() ``{
  520.     map testtargetMap = $["/dev/sda":
  521.                             $["bus":"SCSI", 
  522.                   "cyl_count":1111,
  523.                   "cyl_size":8225280,
  524.                   "model":"DDRS-39130D",
  525.                   "name":"1. SCSI, 8.51 GB, /dev/sda, IBM-DDRS-39130D",
  526.                   "vendor":"IBM",
  527.                   "partitions":
  528.                      [$["fsid":131,
  529.                     "fstype":"Linux native",
  530.                     "nr":1,
  531.                     "region":[1, 20],
  532.                     "size_k":160650,
  533.                     "type":`primary],
  534.                   $["fsid":130,
  535.                     "fstype":"Linux swap",
  536.                     "nr":2,
  537.                     "region":[21, 20],
  538.                     "size_k":160650,
  539.                     "type":`primary],
  540.                   $["fsid":5,
  541.                     "fstype":"Extended",
  542.                     "nr":3,
  543.                     "region":[41, 1071],
  544.                     "size_k":8602807,
  545.                     "type":`extended],
  546.                   $["fsid":142,
  547.                     "fstype":"LVM",
  548.                     "nr":5,
  549.                     "region":[41, 131],
  550.                     "size_k":1052257,
  551.                     "type":`logical],
  552.                   $["fsid":142,
  553.                     "fstype":"LVM",
  554.                     "nr":6,
  555.                     "region":[172, 131],
  556.                     "size_k":1052257,
  557.                     "type":`logical],
  558.                   $["fsid":142,
  559.                     "fstype":"LVM",
  560.                     "nr":7,
  561.                     "region":[303, 262],
  562.                     "size_k":2104515,
  563.                     "type":`logical],
  564.                   $["fsid":142,
  565.                     "fstype":"LVM",
  566.                     "nr":8,
  567.                     "region":[565, 262],
  568.                     "size_k":2104515,
  569.                     "type":`logical],
  570.                   $["fsid":142,
  571.                     "fstype":"LVM",
  572.                     "nr":9,
  573.                     "region":[827, 285],
  574.                     "size_k":2289262,
  575.                     "type":`logical]],
  576.                  ],
  577.                     
  578.                    "/dev/sdb":
  579.                 $["bus":"SCSI",
  580.                   "cyl_count":263,
  581.                   "cyl_size":8225280,
  582.                   "model":"DORS-32160",
  583.                   "name":"2. SCSI, 2.01 GB, /dev/sdb, IBM-DORS-32160",
  584.                   "vendor":"IBM",
  585.                   "partitions":
  586.                      [$["fsid":142,
  587.                     "fstype":"LVM",
  588.                     "nr":1,
  589.                     "region":[1, 1],
  590.                     "size_k":8032,
  591.                     "type":`primary],
  592.                     $["fsid":131,
  593.                     "fstype":"LVM",
  594.                     "nr":2,
  595.                     "region":[2, 17],
  596.                     "size_k":136552,
  597.                     "type":`primary],
  598.                     $["fsid":142,
  599.                     "fstype":"LVM",
  600.                     "nr":3,
  601.                     "region":[19, 244],
  602.                     "size_k":1959930,
  603.                     "type":`primary]],
  604.                  ], 
  605.                 "/dev/sdc":
  606.                  $["bus":"SCSI",
  607.                    "cyl_count":275,
  608.                    "cyl_size":8225280,
  609.                    "model":"ST32272N",
  610.                    "name":"3. SCSI, 2.11 GB, /dev/sdc, SEAGATE-ST32272N",
  611.                    "vendor":"SEAGATE",
  612.                    "partitions":
  613.                       [$["fsid":142,
  614.                      "fstype":"LVM",
  615.                      "nr":1,
  616.                      "region":[1, 275],
  617.                      "size_k":2208937,
  618.                      "type":`primary]
  619.                   ]
  620.                   ]
  621.         ];
  622.     return( testtargetMap );
  623.     };
  624.  
  625. }
  626.  
  627.  
  628.  
  629.