diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-11-18 22:04:09 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-11-18 22:04:09 +0000 |
commit | 89f0b3486dfea233e6000f9af95b39a3ea7fd96e (patch) | |
tree | fc0d65e0d33b5b526b0d44d4c4da8143be3b53b1 /util-linux/mkfs_minix.c | |
parent | 61126ab30a90b74e45a79ccb97074ab71afa6054 (diff) | |
download | busybox-w32-89f0b3486dfea233e6000f9af95b39a3ea7fd96e.tar.gz busybox-w32-89f0b3486dfea233e6000f9af95b39a3ea7fd96e.tar.bz2 busybox-w32-89f0b3486dfea233e6000f9af95b39a3ea7fd96e.zip |
rodata cleanup. "unable to" == "cannot". -300 bytes
Diffstat (limited to 'util-linux/mkfs_minix.c')
-rw-r--r-- | util-linux/mkfs_minix.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/util-linux/mkfs_minix.c b/util-linux/mkfs_minix.c index b154f4ab9..5cdbfead9 100644 --- a/util-linux/mkfs_minix.c +++ b/util-linux/mkfs_minix.c | |||
@@ -312,17 +312,17 @@ static void write_tables(void) | |||
312 | if (lseek(DEV, 0, SEEK_SET)) | 312 | if (lseek(DEV, 0, SEEK_SET)) |
313 | bb_error_msg_and_die("seek to boot block failed in write_tables"); | 313 | bb_error_msg_and_die("seek to boot block failed in write_tables"); |
314 | if (512 != write(DEV, boot_block_buffer, 512)) | 314 | if (512 != write(DEV, boot_block_buffer, 512)) |
315 | bb_error_msg_and_die("unable to clear boot sector"); | 315 | bb_error_msg_and_die("cannot clear boot sector"); |
316 | if (BLOCK_SIZE != lseek(DEV, BLOCK_SIZE, SEEK_SET)) | 316 | if (BLOCK_SIZE != lseek(DEV, BLOCK_SIZE, SEEK_SET)) |
317 | bb_error_msg_and_die("seek failed in write_tables"); | 317 | bb_error_msg_and_die("seek failed in write_tables"); |
318 | if (BLOCK_SIZE != write(DEV, super_block_buffer, BLOCK_SIZE)) | 318 | if (BLOCK_SIZE != write(DEV, super_block_buffer, BLOCK_SIZE)) |
319 | bb_error_msg_and_die("unable to write super-block"); | 319 | bb_error_msg_and_die("cannot write super-block"); |
320 | if (IMAPS * BLOCK_SIZE != write(DEV, inode_map, IMAPS * BLOCK_SIZE)) | 320 | if (IMAPS * BLOCK_SIZE != write(DEV, inode_map, IMAPS * BLOCK_SIZE)) |
321 | bb_error_msg_and_die("unable to write inode map"); | 321 | bb_error_msg_and_die("cannot write inode map"); |
322 | if (ZMAPS * BLOCK_SIZE != write(DEV, zone_map, ZMAPS * BLOCK_SIZE)) | 322 | if (ZMAPS * BLOCK_SIZE != write(DEV, zone_map, ZMAPS * BLOCK_SIZE)) |
323 | bb_error_msg_and_die("unable to write zone map"); | 323 | bb_error_msg_and_die("cannot write zone map"); |
324 | if (INODE_BUFFER_SIZE != write(DEV, inode_buffer, INODE_BUFFER_SIZE)) | 324 | if (INODE_BUFFER_SIZE != write(DEV, inode_buffer, INODE_BUFFER_SIZE)) |
325 | bb_error_msg_and_die("unable to write inodes"); | 325 | bb_error_msg_and_die("cannot write inodes"); |
326 | 326 | ||
327 | } | 327 | } |
328 | 328 | ||
@@ -570,7 +570,7 @@ static void setup_tables(void) | |||
570 | * /sbin/mkfs.minix -i 200 test.fs | 570 | * /sbin/mkfs.minix -i 200 test.fs |
571 | * */ | 571 | * */ |
572 | if (i >= 999) { | 572 | if (i >= 999) { |
573 | bb_error_msg_and_die("unable to allocate buffers for maps"); | 573 | bb_error_msg_and_die("cannot allocate buffers for maps"); |
574 | } | 574 | } |
575 | FIRSTZONE = NORM_FIRSTZONE; | 575 | FIRSTZONE = NORM_FIRSTZONE; |
576 | inode_map = xmalloc(IMAPS * BLOCK_SIZE); | 576 | inode_map = xmalloc(IMAPS * BLOCK_SIZE); |
@@ -807,7 +807,7 @@ goodbye: | |||
807 | strcpy(tmp + 2, ".badblocks"); | 807 | strcpy(tmp + 2, ".badblocks"); |
808 | DEV = xopen(device_name, O_RDWR); | 808 | DEV = xopen(device_name, O_RDWR); |
809 | if (fstat(DEV, &statbuf) < 0) | 809 | if (fstat(DEV, &statbuf) < 0) |
810 | bb_error_msg_and_die("unable to stat %s", device_name); | 810 | bb_error_msg_and_die("cannot stat %s", device_name); |
811 | if (!S_ISBLK(statbuf.st_mode)) | 811 | if (!S_ISBLK(statbuf.st_mode)) |
812 | check = 0; | 812 | check = 0; |
813 | else if (statbuf.st_rdev == 0x0300 || statbuf.st_rdev == 0x0340) | 813 | else if (statbuf.st_rdev == 0x0300 || statbuf.st_rdev == 0x0340) |