~ubuntu-branches/debian/sid/lvm2/sid

« back to all changes in this revision

Viewing changes to lib/raid/raid.c

  • Committer: Package Import Robot
  • Author(s): Bastian Blank
  • Date: 2013-03-03 12:33:47 UTC
  • mfrom: (1.1.15)
  • Revision ID: package-import@ubuntu.com-20130303123347-smfwei6dodkdth55
Tags: 2.02.98-1
New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
379
379
        return segtype;
380
380
}
381
381
 
 
382
static struct segment_type *_init_raid10_segtype(struct cmd_context *cmd)
 
383
{
 
384
        struct segment_type *segtype;
 
385
 
 
386
        segtype = _init_raid_segtype(cmd, "raid10");
 
387
        if (!segtype)
 
388
                return NULL;
 
389
 
 
390
        segtype->flags |= SEG_AREAS_MIRRORED;
 
391
        segtype->parity_devs = 0;
 
392
 
 
393
        return segtype;
 
394
}
 
395
 
382
396
static struct segment_type *_init_raid4_segtype(struct cmd_context *cmd)
383
397
{
384
398
        return _init_raid_segtype(cmd, "raid4");
441
455
        unsigned i = 0;
442
456
        struct segment_type *(*raid_segtype_fn[])(struct cmd_context *) =  {
443
457
                _init_raid1_segtype,
 
458
                _init_raid10_segtype,
444
459
                _init_raid4_segtype,
445
460
                _init_raid5_segtype,
446
461
                _init_raid5_la_segtype,