On 28/11/06, Debarshi 'Rishi' Ray <[EMAIL PROTECTED]> wrote:
Please find attached a patch to implement the 'warn user before
mklabel and mkfs' feature.

Your feedback is awaited.

Not extremely important, but the functions could be written simpler as just
one return statement:

static int
_partition_warn_loss(void)
{
        return ped_exception_throw (
                PED_EXCEPTION_WARNING,
                PED_EXCEPTION_YES_NO,
                _("The existing file system will be destroyed and "
                  "all data on the partition will be lost. Do "
                  "you want to continue?"),
                NULL) == PED_EXCEPTION_YES);
}

BR Håkon Løvdal
_______________________________________________
parted-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/parted-devel

Reply via email to