~ubuntu-branches/ubuntu/precise/partman-base/precise-updates

« back to all changes in this revision

Viewing changes to parted_server.c

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-07-02 14:54:45 UTC
  • Revision ID: package-import@ubuntu.com-20120702145445-icgr9dwk5r3y2efx
Tags: 153ubuntu5
Permit non-cylinder alignment again on GPT (closes: #674894,
LP: #1006894).

Show diffs side-by-side

added added

removed removed

Lines of Context:
609
609
                        ped_disk_set_flag(disk, PED_DISK_CYLINDER_ALIGNMENT,
610
610
                                          devices[index].alignment ==
611
611
                                                ALIGNMENT_CYLINDER);
612
 
                else
 
612
                else if (0 != strcmp(disk->type->name, "gpt"))
613
613
                        /* If the PED_DISK_CYLINDER_ALIGNMENT flag isn't
614
 
                           available, then (confusingly) we should assume
615
 
                           that *only* cylinder alignment is available. */
 
614
                           available, then there are two alternatives:
 
615
                           either the disk label format is too old to know
 
616
                           about modern alignment (#579948), or it's too new
 
617
                           to care about cylinder alignment (#674894).  The
 
618
                           only format currently known to fall into the
 
619
                           latter category is GPT; for the others, we should
 
620
                           assume that *only* cylinder alignment is
 
621
                           available. */
616
622
                        devices[index].alignment = ALIGNMENT_CYLINDER;
617
623
        }
618
624
}