diff options
author | David Sterba <dsterba@suse.cz> | 2012-07-17 12:30:16 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2012-10-02 13:02:36 +0200 |
commit | 366b9ca593d3029b44d5b65d295bef248bba041b (patch) | |
tree | cf2d2e5c05585bc882b85e291358a4c28a592ed0 /mkfs.c | |
parent | 89fe5b5f666c247aa3173745fb87c710f3a71a4a (diff) |
btrfs-progs: mkfs: rename nodiscard option to K
The original patch named the option -T, mkfs.xfs uses -K let's keep it
same.
Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'mkfs.c')
-rw-r--r-- | mkfs.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -348,7 +348,7 @@ static void print_usage(void) fprintf(stderr, "\t -n --nodesize size of btree nodes\n"); fprintf(stderr, "\t -s --sectorsize min block allocation\n"); fprintf(stderr, "\t -r --rootdir the source directory\n"); - fprintf(stderr, "\t -T --nodiscard do not perform whole device TRIM\n"); + fprintf(stderr, "\t -K --nodiscard do not perform whole device TRIM\n"); fprintf(stderr, "%s\n", BTRFS_BUILD_VERSION); exit(1); } @@ -410,7 +410,7 @@ static struct option long_options[] = { { "data", 1, NULL, 'd' }, { "version", 0, NULL, 'V' }, { "rootdir", 1, NULL, 'r' }, - { "nodiscard", 0, NULL, 'T' }, + { "nodiscard", 0, NULL, 'K' }, { 0, 0, 0, 0} }; @@ -1237,7 +1237,7 @@ int main(int ac, char **av) while(1) { int c; - c = getopt_long(ac, av, "A:b:l:n:s:m:d:L:r:VMT", long_options, + c = getopt_long(ac, av, "A:b:l:n:s:m:d:L:r:VMK", long_options, &option_index); if (c < 0) break; @@ -1283,7 +1283,7 @@ int main(int ac, char **av) source_dir = optarg; source_dir_set = 1; break; - case 'T': + case 'K': nodiscard=1; break; default: |