]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
blkid: remove -w option from man page and usage() output
authorKarel Zak <kzak@redhat.com>
Wed, 25 Jan 2012 11:26:49 +0000 (12:26 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 25 Jan 2012 11:34:02 +0000 (12:34 +0100)
The option does not have any effect, the original functionality was
removed from e2fsprogs in year 2003 by

 commit 50b380b4d4ab668bad45033e3a8aaf93c7f42844
 git://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git

So.. don't propagate the option to users in year 2012 :-)

Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/blkid.8
misc-utils/blkid.c

index c8794a3b9efb1844dcb0adf4756327036303b4c3..31805c6116dacf9fac0babe6773df069f06227b8 100644 (file)
@@ -19,8 +19,6 @@ blkid \- locate/print block device attributes
 .RB [ \-dghlv ]
 .RB [ \-c
 .IR file ]
-.RB [ \-w
-.IR file ]
 .RB [ \-o
 .IR format ]
 .in +6
@@ -238,17 +236,6 @@ Look up the device that uses this \fIuuid\fR.  For more details see the \fB-L\fR
 .B \-v
 Display version number and exit.
 .TP
-.BI \-w " writecachefile"
-Write the device cache to
-.I writecachefile
-instead of writing it to the default cache file
-.IR /etc/blkid.tab .
-If you don't want to save the cache at all, specify
-.IR /dev/null.
-If not specified, it will be the same file as that given with the
-.B \-c
-option.
-.TP
 .I device
 Display tokens from only the specified device.  It is possible to
 give multiple
index 0ff89d66f5f7b1299cc4a88023f988ac9ed6e101..2976bca02683ebba50746716c4382a12f7e7d922 100644 (file)
@@ -62,7 +62,7 @@ static void usage(int error)
                "Usage:\n"
                " %1$s -L <label> | -U <uuid>\n\n"
                " %1$s [-c <file>] [-ghlLv] [-o <format>] [-s <tag>] \n"
-               "       [-t <token>] [-w <file>] [<dev> ...]\n\n"
+               "       [-t <token>] [<dev> ...]\n\n"
                " %1$s -p [-s <tag>] [-O <offset>] [-S <size>] \n"
                "       [-o <format>] <dev> ...\n\n"
                " %1$s -i [-s <tag>] [-o <format>] <dev> ...\n\n"
@@ -80,7 +80,6 @@ static void usage(int error)
                " -L <label>  convert LABEL to device name\n"
                " -U <uuid>   convert UUID to device name\n"
                " -v          print version and exit\n"
-               " -w <file>   write cache to different file (/dev/null = no write)\n"
                " <dev>       specify device(s) to probe (default: all devices)\n\n"
                "Low-level probing options:\n"
                " -p          low-level superblocks probing (bypass cache)\n"
@@ -673,7 +672,6 @@ int main(int argc, char **argv)
        char *show[128] = { NULL, };
        char *search_type = NULL, *search_value = NULL;
        char *read = NULL;
-       char *write = NULL;
        int fltr_usage = 0;
        char **fltr_type = NULL;
        int fltr_flag = BLKID_FLTR_ONLYIN;
@@ -695,8 +693,6 @@ int main(int argc, char **argv)
                                read = NULL;
                        else
                                read = optarg;
-                       if (!write)
-                               write = read;
                        break;
                case 'd':
                        raw_chars = 1;
@@ -803,10 +799,7 @@ int main(int argc, char **argv)
                        version = 1;
                        break;
                case 'w':
-                       if (optarg && !*optarg)
-                               write = NULL;
-                       else
-                               write = optarg;
+                       /* ignore - backward compatibility */
                        break;
                case 'h':
                        err = 0;