/*
 *************************************************************
 *
 *     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 13363 2004-01-21 15:50:42Z 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
        ],
        "type" : `primary,
        "used_fs" : `unknown
      ],
      $[
        "fsid" : 130,
        "fstype" : "Linux swap",
        "mount" : "swap",
        "nr" : 2,
        "ori_nr" : 2,
        "region" : [
          3,
          17
        ],
        "type" : `primary
      ],
      $[
        "fsid" : 131,
        "fstype" : "Linux native",
        "mount" : "/",
        "nr" : 3,
        "ori_nr" : 3,
        "region" : [
          20,
          1227
        ],
        "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,
        "raid_name" : "/dev/md0",
        "region" : [
          0,
          10001
        ],
        "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,
        "raid_name" : "/dev/md0",
        "region" : [
          10001,
          10000
        ],
        "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,
        "raid_name" : "/dev/md1",
        "region" : [
          20001,
          10000
        ],
        "type" : `primary,
        "used_fs" : `unknown
      ],
      $[
        //"create" : true,
        //"format" : true,
        "fsid" : 15,
        "fstype" : "Extended",
        "nr" : 4,
        "ori_nr" : 4,
        "region" : [
          30001,
          59354
        ],
        "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,
        "raid_name" : "/dev/md1",
        "region" : [
          30001,
          10000
        ],
        "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,
        "fsid" : 131,
        "fstype" : "Linux RAID",
        "mount" : "/home",
        "nr" : 0,
        "ori_nr" : 0,
        "parity_algorithm" : "left-asymmetric",
        "persistent_superblock" : true,
        "raid_type" : "raid1",
	"device" : "/dev/md0",
        "region" : [
          0,
          1
        ],
        "type" : `sw_raid,
        "used_fs" : `ext2
      ],
      $[
        "chunk_size" : "4",
        //"create" : true,
        //"format" : true,
        "fsid" : 131,
        "fstype" : "Linux RAID",
        "mount" : "/local",
        "nr" : 1,
        "ori_nr" : 1,
        "parity_algorithm" : "left-asymmetric",
        "persistent_superblock" : true,
	"device" : "/dev/md1",
        "raid_type" : "raid1",
        "region" : [
          0,
          1
        ],
        "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
        ],
        "type" : `primary
      ],
      $[
        "fsid" : 130,
        "fstype" : "Linux swap",
        "mount" : "swap",
        "nr" : 2,
        "region" : [
          3,
          17
        ],
        "type" : `primary
      ],
      $[
        "fsid" : 131,
        "fstype" : "Linux native",
        "mount" : "/",
        "nr" : 3,
        "region" : [
          20,
          1227
        ],
        "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
        ],
        "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":[
			     $["delete":false, "fsid":130, "fstype":"Linux swap", "mount":"swap", "nr":4, "ori_nr":4, "region":[280, 129], "type":`primary],
			     $["delete":true,  "fsid":130, "fstype":"Linux swap",   "mount":"swap", "nr":4, "ori_nr":4, "region":[194, 65], "type":`logical],
			     $["fsid":11,
                                "fstype":"Windows",
                                "nr":1,
                                "region":[0, 254],
                                "type":`primary],
			     $["fsid":130,
                                "fstype":"Linux swap",
                                "nr":2,
                                "region":[255, 16],
                                "type":`primary],
			     $[ "fsid": 0,
                                "fstype":"Apple Extent",
                                "nr":3,
                                "region":[255, 16],
                                "type":`pdisk],
			     $["delete":true,
				 "fsid":131,
                                "fstype":"Linux native",
                                "nr":4,
                                "region":[271, 844],
			      "type":`primary]

                               ]
                           ],
              "/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],
                                "type":`primary],
			     $["fsid":5,
                                "fstype":"Extended",
                                "nr":4,
                                "region":[272, 1000],
                                "type":`extended],
			     
                               $["fsid":11,
                                "fstype":"Windows",
			          "nr":2,
                                "region":[255, 16],
                                "type":`primary],
                               $["fsid":130,
                                "fstype":"Linux swap",
                                "nr":9,
                                "region":[272, 100],
                                "type":`logical],
                               $["fsid":130,
                                "fstype":"Linux",
                                "nr":6,
                                "region":[372, 100],
                                "type":`logical],
                               $["fsid":131,
                                "fstype":"Linux",
                                "nr":7,
                                "region":[472, 300],
                                "type":`logical],                                                
                               $["fsid":131,
                                "fstype":"Linux native",
                                "nr":8,
                                "region":[1273, 9869],
                                "type":`logical],
			     $["fsid":11,
                                "fstype":"Windows",
			          "nr":5,
                                "region":[255, 16],
                                "type":`logical],
                               $["fsid":130,
                                "fstype":"Linux swap",
                                "nr":10,
                                "region":[272, 100],
                                "type":`logical],
                               $["fsid":130,
                                "fstype":"Linux",
                                "nr":11,
                                "region":[372, 100],
                                "type":`logical],
                               $["fsid":131,
                                "fstype":"Linux",
                                "nr":12,
                                "region":[472, 300],
                                "type":`logical]                                                

               ]]];
  };


  //////////////////////////////////////////////////////////////////////
  
define map getLvmTestTargetMap()
   ``{
	
    map testtargetMap = $[
              "/dev/oracle":$[
               "bus":"SCSI",
               "name":"oracle",
               "cyl_count": 20000,
               "cyl_size" : 131072,
	       "is_lvm_vg" : true,
               "partitions":[
			     $[ "fsid":142,
                                "fstype":"LV",
                                "nr":"usr",
                                "region":[0, 3254],
			        "mount":"/usr",
			        "used_fs": `reiser,
                                "type":`lvm],
			     
			     $["fsid":142,
                                "fstype":"LV",
                                "nr":"var",
			      "mount":"/var",
                                "region":[0, 2116],
                                "type":`primary],
			     
                               ]
                           ],

	      
	      "/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":[
			     $["delete":false, "fsid":130, "fstype":"Linux swap", "mount":"swap", "nr":4, "ori_nr":4, "region":[280, 129], "type":`primary],
			     $["delete":true,  "fsid":130, "fstype":"Linux swap",   "mount":"swap", "nr":4, "ori_nr":4, "region":[194, 65], "type":`logical],
			     $["fsid":11,
                                "fstype":"Windows",
                                "nr":1,
                                "region":[0, 254],
                                "type":`primary],
			     $["fsid":130,
                                "fstype":"Linux swap",
                                "nr":2,
                                "region":[255, 16],
                                "type":`primary],
			     $[ "fsid": 0,
                                "fstype":"Apple Extent",
                                "nr":3,
                                "region":[255, 16],
                                "type":`pdisk],
			     $["delete":true,
				 "fsid":131,
                                "fstype":"Linux native",
                                "nr":4,
                                "region":[271, 844],
			      "type":`primary]

                               ]
                           ],
              "/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],
			        "lvm_group":"oracle",
                                "type":`primary],
			     $["fsid":5,
                                "fstype":"Extended",
                                "nr":4,
                                "region":[272, 1000],
                                "type":`extended],
			     
                               $["fsid":11,
                                "fstype":"Windows",
			          "nr":2,
                                "region":[255, 16],
                                "type":`primary],
                               $["fsid":130,
                                "fstype":"Linux swap",
                                "nr":9,
                                "region":[272, 100],
                                "type":`logical],
                               $["fsid":130,
                                "fstype":"Linux",
                                "nr":6,
                                "region":[372, 100],
                                "type":`logical],
                               $["fsid":131,
                                "fstype":"Linux",
                                "nr":7,
                                "region":[472, 300],
                                "type":`logical],                                                
                               $["fsid":131,
                                "fstype":"Linux native",
                                "nr":8,
                                "region":[1273, 9869],
                                "type":`logical],
			     $["fsid":11,
                                "fstype":"Windows",
			          "nr":5,
                                "region":[255, 16],
                                "type":`logical],
                               $["fsid":130,
                                "fstype":"Linux swap",
                                "nr":10,
                                "region":[272, 100],
                                "type":`logical],
                               $["fsid":130,
                                "fstype":"Linux",
                                "nr":11,
                                "region":[372, 100],
                                "type":`logical],
                               $["fsid":131,
                                "fstype":"Linux",
                                "nr":12,
                                "region":[472, 300],
                                "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],
				    "type":`primary],
				  $["fsid":130,
				    "fstype":"Linux swap",
				    "nr":2,
				    "region":[21, 20],
				    "type":`primary],
				  $["fsid":5,
				    "fstype":"Extended",
				    "nr":3,
				    "region":[41, 1071],
				    "type":`extended],
				  $["fsid":142,
				    "fstype":"LVM",
				    "nr":5,
				    "region":[41, 131],
				    "type":`logical],
				  $["fsid":142,
				    "fstype":"LVM",
				    "nr":6,
				    "region":[172, 131],
				    "type":`logical],
				  $["fsid":142,
				    "fstype":"LVM",
				    "nr":7,
				    "region":[303, 262],
				    "type":`logical],
				  $["fsid":142,
				    "fstype":"LVM",
				    "nr":8,
				    "region":[565, 262],
				    "type":`logical],
				  $["fsid":142,
				    "fstype":"LVM",
				    "nr":9,
				    "region":[827, 285],
				    "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],
				    "type":`primary],
				    $["fsid":131,
				    "fstype":"LVM",
				    "nr":2,
				    "region":[2, 17],
				    "type":`primary],
				    $["fsid":142,
				    "fstype":"LVM",
				    "nr":3,
				    "region":[19, 244],
				    "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],
				     "type":`primary]
				  ]
			      ]
		];
    return( testtargetMap );
    };

}



