aboutsummaryrefslogtreecommitdiff
path: root/util-linux/fdisk.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/fdisk.c')
-rw-r--r--util-linux/fdisk.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/util-linux/fdisk.c b/util-linux/fdisk.c
index 0fb2e3e17..c50ceead1 100644
--- a/util-linux/fdisk.c
+++ b/util-linux/fdisk.c
@@ -185,8 +185,11 @@ struct hd_geometry {
185 185
186#define HDIO_GETGEO 0x0301 /* get device geometry */ 186#define HDIO_GETGEO 0x0301 /* get device geometry */
187 187
188/* TODO: #if ENABLE_FEATURE_FDISK_WRITABLE */ 188/* TODO: just #if ENABLE_FEATURE_FDISK_WRITABLE */
189/* (currently fdisk_sun/sgi.c do not have proper WRITABLE #ifs) */ 189/* (currently fdisk_sun/sgi.c do not have proper WRITABLE #ifs) */
190#if ENABLE_FEATURE_FDISK_WRITABLE \
191 || ENABLE_FEATURE_SGI_LABEL \
192 || ENABLE_FEATURE_SUN_LABEL
190static const char msg_building_new_label[] ALIGN1 = 193static const char msg_building_new_label[] ALIGN1 =
191"Building a new %s. Changes will remain in memory only,\n" 194"Building a new %s. Changes will remain in memory only,\n"
192"until you decide to write them. After that the previous content\n" 195"until you decide to write them. After that the previous content\n"
@@ -194,7 +197,7 @@ static const char msg_building_new_label[] ALIGN1 =
194 197
195static const char msg_part_already_defined[] ALIGN1 = 198static const char msg_part_already_defined[] ALIGN1 =
196"Partition %u is already defined, delete it before re-adding\n"; 199"Partition %u is already defined, delete it before re-adding\n";
197/* #endif */ 200#endif
198 201
199 202
200struct partition { 203struct partition {
@@ -303,7 +306,7 @@ static sector_t get_nr_sects(const struct partition *p);
303 306
304/* DOS partition types */ 307/* DOS partition types */
305 308
306static const char *const i386_sys_types[] = { 309static const char *const i386_sys_types[] ALIGN_PTR = {
307 "\x00" "Empty", 310 "\x00" "Empty",
308 "\x01" "FAT12", 311 "\x01" "FAT12",
309 "\x04" "FAT16 <32M", 312 "\x04" "FAT16 <32M",
@@ -2667,7 +2670,7 @@ reread_partition_table(int leave)
2667 /* Users with slow external USB disks on a 320MHz ARM system (year 2011) 2670 /* Users with slow external USB disks on a 320MHz ARM system (year 2011)
2668 * report that sleep is needed, otherwise BLKRRPART may fail with -EIO: 2671 * report that sleep is needed, otherwise BLKRRPART may fail with -EIO:
2669 */ 2672 */
2670 sleep(1); 2673 sleep1();
2671 i = ioctl_or_perror(dev_fd, BLKRRPART, NULL, 2674 i = ioctl_or_perror(dev_fd, BLKRRPART, NULL,
2672 "WARNING: rereading partition table " 2675 "WARNING: rereading partition table "
2673 "failed, kernel still uses old table"); 2676 "failed, kernel still uses old table");