[parted-devel] mklabel & mkfs warning
Håkon Løvdal
hlovdal at gmail.com
Wed Nov 29 10:47:41 CET 2006
On 28/11/06, Debarshi 'Rishi' Ray <debarshi.ray at gmail.com> 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
More information about the parted-devel
mailing list