Ignore:
Timestamp:
May 6, 2015, 1:10:17 PM (5 years ago)
Author:
Bruno Cornec
Message:
  • Rename mr_parted2fdisk to mr-parted2fdisk for consistency with all other new mr-* commands
  • Adds functions mr_center_string and mr_popup_and_get_string with dynamic allocation to solve a memory allocation issue reported on the ML
  • Fix mr_boot_type to detect correctly a UEFI based system
File:
1 moved

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi/mr-parted2fdisk

    r3376 r3377  
    33# $Id$
    44#
    5 # mr_parted2fdisk: fdisk like interface for parted
     5# mr-parted2fdisk: fdisk like interface for parted
    66# [developed for mindi/mondo http://www.mondorescue.org]
    77#
     
    2727=head1 NAME
    2828
    29 mr_parted2fdisk is a fdisk like command using parted internally for analysing GPT labelled disks
     29mr-parted2fdisk is a fdisk like command using parted internally for analysing GPT labelled disks
    3030
    3131=head1 DESCRIPTION
    3232
    33 mr_parted2fdisk behaves like the fdisk command, but dialog internally with parted in order to manipulate partition tables, which allow it to support GPT partition format as well as MBR, contrary to fdisk. It aims at providing compatible external interface with fdisk. Developed initialy for ia64 Linux, it is also useful now on x86 systems using GPT partition format (for large HDDs).
     33mr-parted2fdisk behaves like the fdisk command, but dialog internally with parted in order to manipulate partition tables, which allow it to support GPT partition format as well as MBR, contrary to fdisk. It aims at providing compatible external interface with fdisk. Developed initialy for ia64 Linux, it is also useful now on x86 systems using GPT partition format (for large HDDs).
    3434
    3535=head1 SYNOPSIS
    3636
    37 mr_parted2fdisk -s partition
    38 
    39 mr_parted2fdisk -l [device]
    40 
    41 mr_parted2fdisk [-n] device
     37mr-parted2fdisk -s partition
     38
     39mr-parted2fdisk -l [device]
     40
     41mr-parted2fdisk [-n] device
    4242
    4343=head1 OPTIONS
     
    5656
    5757Fake mode. Doesn't pass the commands just simulate.
     58
     59=item B<-v>
     60
     61Verbose mode. Used to help debugging issues.
    5862
    5963=item B<no option>
     
    102106
    103107# Log
    104 my $flog = "/var/log/mr_parted2fdisk.log";
     108my $flog = "/var/log/mr-parted2fdisk.log";
    105109open(FLOG, "> $flog") || die "Unable to open $flog";
    106110
     
    133137my $device;
    134138my $endmax = "";
    135 my $appname = "mr_parted2fdisk";
     139my $appname = "mr-parted2fdisk";
    136140my ($mrver,$mrrev) = mr_version_init();
    137141
Note: See TracChangeset for help on using the changeset viewer.