]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
mount: (deprecated) drop --guess-fstype
authorKarel Zak <kzak@redhat.com>
Mon, 26 Nov 2012 10:57:26 +0000 (11:57 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 26 Nov 2012 10:57:26 +0000 (11:57 +0100)
The option is undocumented and unnecessary.

Signed-off-by: Karel Zak <kzak@redhat.com>
mount-deprecated/mount.c

index ad80218cf0b1f66c66bfd9197819155ada558049..3190d2f8b07188df5b17290634876778f72bdd12 100644 (file)
@@ -2208,7 +2208,6 @@ static struct option longopts[] = {
        { "types", 1, 0, 't' },
        { "bind", 0, 0, 'B' },
        { "move", 0, 0, 'M' },
-       { "guess-fstype", 1, 0, 134 },
        { "rbind", 0, 0, 'R' },
        { "make-shared", 0, 0, 136 },
        { "make-slave", 0, 0, 137 },
@@ -2470,18 +2469,6 @@ main(int argc, char *argv[]) {
                case 0:
                        break;
 
-               case 134:
-                       /* undocumented, may go away again:
-                          call: mount --guess-fstype device
-                          use only for testing purposes -
-                          the guessing is not reliable at all */
-                   {
-                       const char *fstype;
-                       fstype = fsprobe_get_fstype_by_devname(optarg);
-                       printf("%s\n", fstype ? fstype : "unknown");
-                       exit(fstype ? 0 : EX_FAIL);
-                   }
-
                case 136:
                        mounttype = MS_SHARED;
                        break;