/*
libparted - a library for manipulating disk partitions
- Copyright (C) 2001, 2002, 2005, 2007 Free Software Foundation, Inc.
+ Copyright (C) 2001, 2002, 2005, 2007-2008 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
ped_exception_throw (
PED_EXCEPTION_ERROR,
PED_EXCEPTION_CANCEL,
- _("Only logical partitions (boot files) have a name."));
+ _("failed to set dvh partition name to %s:\n"
+ "Only logical partitions (boot files) have a name."),
+ name);
#endif
}
}
goto error_destroy_disk;
}
-#if 1
- /* This undocumented _feature_, is next to useless, at least with
- a dvh partition table, since it makes the "mkpart" command
+ /* The undocumented feature that mkpart sometimes takes a
+ partition name is next to useless, at least with a dvh
+ partition table, since it makes the "mkpart" command
fail unconditionally for a primary partition. E.g.,
mkpart primary any-name xfs 4096s 5000s
requires the name, yet always fails, saying that only
&& part_type != PED_PARTITION_LOGICAL))
part_name = command_line_get_word (_("Partition name?"),
"", NULL, 1);
-#endif
peek_word = command_line_peek_word ();
if (part_type == PED_PARTITION_EXTENDED