Changeset 2725 in MondoRescue for branches/2.2.9/mindi-busybox/e2fsprogs/old_e2fsprogs/tune2fs.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/tune2fs.c
r1765 r2725 9 9 * Copyright 1995, 1996, 1997, 1998, 1999, 2000 by Theodore Ts'o. 10 10 * 11 * %Begin-Header% 12 * This file may be redistributed under the terms of the GNU Public 13 * License. 14 * %End-Header% 11 * Licensed under GPLv2, see file LICENSE in this source tree. 15 12 */ 16 13 … … 396 393 #endif 397 394 if (ts.tm_mday == 0) { 398 bb_error_msg_and_die(" Cannot parse date/time specifier: %s", str);395 bb_error_msg_and_die("can't parse date/time specifier: %s", str); 399 396 } 400 397 return mktime(&ts); … … 558 555 } 559 556 560 #ifdef CONFIG_FINDFS561 static ATTRIBUTE_NORETURN void do_findfs(int argc, char **argv)562 {563 if ((argc != 2) ||564 (strncmp(argv[1], "LABEL=", 6) && strncmp(argv[1], "UUID=", 5)))565 bb_show_usage();566 device_name = x_blkid_get_devname(argv[1]);567 puts(device_name);568 exit(0);569 }570 #else571 #define do_findfs(x, y)572 #endif573 574 557 static void tune2fs_clean_up(void) 575 558 { … … 578 561 } 579 562 580 int tune2fs_main(int argc, char **argv) ;563 int tune2fs_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 581 564 int tune2fs_main(int argc, char **argv) 582 565 { … … 589 572 atexit(tune2fs_clean_up); 590 573 591 if (ENABLE_FINDFS && (applet_name[0] == 'f')) /* findfs */ 592 do_findfs(argc, argv); /* no return */ 593 else if (ENABLE_E2LABEL && (applet_name[0] == 'e')) /* e2label */ 574 if (ENABLE_E2LABEL && (applet_name[0] == 'e')) /* e2label */ 594 575 parse_e2label_options(argc, argv); 595 576 else … … 610 591 retval = ext2fs_check_if_mounted(device_name, &mount_flags); 611 592 if (retval) 612 bb_error_msg_and_die("can not determine if %s is mounted", device_name);593 bb_error_msg_and_die("can't determine if %s is mounted", device_name); 613 594 /* Normally we only need to write out the superblock */ 614 595 fs->flags |= EXT2_FLAG_SUPER_ONLY;
Note:
See TracChangeset
for help on using the changeset viewer.