Changeset 2725 in MondoRescue for branches/2.2.9/mindi-busybox/e2fsprogs/old_e2fsprogs/util.c
- Timestamp:
- Feb 25, 2011, 9:26:54 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mindi-busybox/e2fsprogs/old_e2fsprogs/util.c
r1765 r2725 5 5 * Copyright 1995, 1996, 1997, 1998, 1999, 2000 by Theodore Ts'o. 6 6 * 7 * %Begin-Header% 8 * This file may be redistributed under the terms of the GNU Public 9 * License. 10 * %End-Header% 7 * Licensed under GPLv2, see file LICENSE in this source tree. 11 8 */ 12 9 … … 38 35 if (force) 39 36 return; 40 if (val == -1)41 bb_perror_msg_and_die("can not stat %s", device);37 if (val == -1) 38 bb_perror_msg_and_die("can't stat '%s'", device); 42 39 if (!S_ISBLK(s.st_mode)) { 43 40 printf("%s is not a block special device.\n", device); … … 83 80 retval = ext2fs_check_if_mounted(device, &mount_flags); 84 81 if (retval) { 85 bb_error_msg("can not determine if %s is mounted", device);82 bb_error_msg("can't determine if %s is mounted", device); 86 83 return; 87 84 } … … 99 96 goto force_check; 100 97 } 101 102 98 } 103 99 … … 220 216 fs->blocksize, io_ptr, &jfs); 221 217 if (retval) 222 bb_error_msg_and_die("can not journal device %s", journal_device);223 if (!quiet)218 bb_error_msg_and_die("can't journal device %s", journal_device); 219 if (!quiet) 224 220 printf("Adding journal to device %s: ", journal_device); 225 221 fflush(stdout); 226 222 retval = ext2fs_add_journal_device(fs, jfs); 227 if (retval)223 if (retval) 228 224 bb_error_msg_and_die("\nFailed to add journal to device %s", journal_device); 229 if (!quiet)225 if (!quiet) 230 226 puts("done"); 231 227 ext2fs_close(jfs); … … 243 239 return; 244 240 } 245 if (!quiet)241 if (!quiet) 246 242 printf("Creating journal (%ld blocks): ", journal_blocks); 247 243 fflush(stdout); 248 244 retval = ext2fs_add_journal_inode(fs, journal_blocks, 249 245 journal_flags); 250 if (retval)251 bb_error_msg_and_die("can not create journal");252 if (!quiet)246 if (retval) 247 bb_error_msg_and_die("can't create journal"); 248 if (!quiet) 253 249 puts("done"); 254 250 } … … 263 259 else 264 260 oldpath = PATH_SET; 265 putenv 261 putenv(oldpath); 266 262 return oldpath; 267 263 }
Note:
See TracChangeset
for help on using the changeset viewer.