From de7684a309ad20c1b889d048d741cb1dd52245f7 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Mon, 18 Feb 2008 21:08:49 +0000 Subject: support for mount by label (not yet tested) Also adds findfs applet. Closes bug 1143. --- e2fsprogs/old_e2fsprogs/tune2fs.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'e2fsprogs/old_e2fsprogs') diff --git a/e2fsprogs/old_e2fsprogs/tune2fs.c b/e2fsprogs/old_e2fsprogs/tune2fs.c index c5c84d6..b7a1b21 100644 --- a/e2fsprogs/old_e2fsprogs/tune2fs.c +++ b/e2fsprogs/old_e2fsprogs/tune2fs.c @@ -557,20 +557,6 @@ static void parse_tune2fs_options(int argc, char **argv) device_name = x_blkid_get_devname(argv[optind]); } -#ifdef CONFIG_FINDFS -static ATTRIBUTE_NORETURN void do_findfs(int argc, char **argv) -{ - if ((argc != 2) || - (strncmp(argv[1], "LABEL=", 6) && strncmp(argv[1], "UUID=", 5))) - bb_show_usage(); - device_name = x_blkid_get_devname(argv[1]); - puts(device_name); - exit(0); -} -#else -#define do_findfs(x, y) -#endif - static void tune2fs_clean_up(void) { if (ENABLE_FEATURE_CLEAN_UP && device_name) free(device_name); @@ -588,9 +574,7 @@ int tune2fs_main(int argc, char **argv) if (ENABLE_FEATURE_CLEAN_UP) atexit(tune2fs_clean_up); - if (ENABLE_FINDFS && (applet_name[0] == 'f')) /* findfs */ - do_findfs(argc, argv); /* no return */ - else if (ENABLE_E2LABEL && (applet_name[0] == 'e')) /* e2label */ + if (ENABLE_E2LABEL && (applet_name[0] == 'e')) /* e2label */ parse_e2label_options(argc, argv); else parse_tune2fs_options(argc, argv); /* tune2fs */ -- cgit v1.1