~ubuntu-branches/ubuntu/trusty/util-linux/trusty-proposed

« back to all changes in this revision

Viewing changes to fdisk/fdiskaixlabel.c

  • Committer: Package Import Robot
  • Author(s): LaMont Jones
  • Date: 2011-11-03 15:38:23 UTC
  • mto: (4.5.5 sid) (1.6.4)
  • mto: This revision was merged to the branch mainline in revision 85.
  • Revision ID: package-import@ubuntu.com-20111103153823-10sx16jprzxlhkqf
ImportĀ upstreamĀ versionĀ 2.20.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
aix_nolabel( void )
43
43
{
44
44
    aixlabel->magic = 0;
45
 
    aix_label = 0;
46
45
    partitions = 4;
47
46
    zeroize_mbr_buffer();
48
47
    return;
53
52
{
54
53
    if (aixlabel->magic != AIX_LABEL_MAGIC &&
55
54
        aixlabel->magic != AIX_LABEL_MAGIC_SWAPPED) {
56
 
        aix_label = 0;
57
55
        other_endian = 0;
58
56
        return 0;
59
57
    }
60
58
    other_endian = (aixlabel->magic == AIX_LABEL_MAGIC_SWAPPED);
61
59
    update_units();
62
 
    aix_label = 1;
 
60
    disklabel = AIX_LABEL;
63
61
    partitions= 1016;
64
62
    volumes = 15;
65
63
    aix_info();
66
64
    aix_nolabel();              /* %% */
67
 
    aix_label = 1;              /* %% */
68
65
    return 1;
69
66
}