diff options
author | Jan Kara <jack@suse.cz> | 2018-02-22 08:33:04 -0500 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2018-02-27 04:25:33 -0500 |
commit | f0c4a81711cb773b60cb8f90173e6491e67bf74f (patch) | |
tree | cf23611f2dab1dfbd3e03803c162d9048c1f0768 /fs/udf | |
parent | 6ccd5194a0f42b0f01a3f9d0c6de536940d04bad (diff) |
udf: Remove never implemented mount options
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/udf')
-rw-r--r-- | fs/udf/super.c | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/fs/udf/super.c b/fs/udf/super.c index 31d8ce13fa18..2d4929fa884d 100644 --- a/fs/udf/super.c +++ b/fs/udf/super.c | |||
@@ -222,10 +222,6 @@ struct udf_options { | |||
222 | unsigned int session; | 222 | unsigned int session; |
223 | unsigned int lastblock; | 223 | unsigned int lastblock; |
224 | unsigned int anchor; | 224 | unsigned int anchor; |
225 | unsigned int volume; | ||
226 | unsigned short partition; | ||
227 | unsigned int fileset; | ||
228 | unsigned int rootdir; | ||
229 | unsigned int flags; | 225 | unsigned int flags; |
230 | umode_t umask; | 226 | umode_t umask; |
231 | kgid_t gid; | 227 | kgid_t gid; |
@@ -366,10 +362,6 @@ static int udf_show_options(struct seq_file *seq, struct dentry *root) | |||
366 | seq_printf(seq, ",lastblock=%u", sbi->s_last_block); | 362 | seq_printf(seq, ",lastblock=%u", sbi->s_last_block); |
367 | if (sbi->s_anchor != 0) | 363 | if (sbi->s_anchor != 0) |
368 | seq_printf(seq, ",anchor=%u", sbi->s_anchor); | 364 | seq_printf(seq, ",anchor=%u", sbi->s_anchor); |
369 | /* | ||
370 | * volume, partition, fileset and rootdir seem to be ignored | ||
371 | * currently | ||
372 | */ | ||
373 | if (UDF_QUERY_FLAG(sb, UDF_FLAG_UTF8)) | 365 | if (UDF_QUERY_FLAG(sb, UDF_FLAG_UTF8)) |
374 | seq_puts(seq, ",utf8"); | 366 | seq_puts(seq, ",utf8"); |
375 | if (UDF_QUERY_FLAG(sb, UDF_FLAG_NLS_MAP) && sbi->s_nls_map) | 367 | if (UDF_QUERY_FLAG(sb, UDF_FLAG_NLS_MAP) && sbi->s_nls_map) |
@@ -482,13 +474,9 @@ static int udf_parse_options(char *options, struct udf_options *uopt, | |||
482 | int option; | 474 | int option; |
483 | 475 | ||
484 | uopt->novrs = 0; | 476 | uopt->novrs = 0; |
485 | uopt->partition = 0xFFFF; | ||
486 | uopt->session = 0xFFFFFFFF; | 477 | uopt->session = 0xFFFFFFFF; |
487 | uopt->lastblock = 0; | 478 | uopt->lastblock = 0; |
488 | uopt->anchor = 0; | 479 | uopt->anchor = 0; |
489 | uopt->volume = 0xFFFFFFFF; | ||
490 | uopt->rootdir = 0xFFFFFFFF; | ||
491 | uopt->fileset = 0xFFFFFFFF; | ||
492 | uopt->nls_map = NULL; | 480 | uopt->nls_map = NULL; |
493 | 481 | ||
494 | if (!options) | 482 | if (!options) |
@@ -577,24 +565,10 @@ static int udf_parse_options(char *options, struct udf_options *uopt, | |||
577 | uopt->anchor = option; | 565 | uopt->anchor = option; |
578 | break; | 566 | break; |
579 | case Opt_volume: | 567 | case Opt_volume: |
580 | if (match_int(args, &option)) | ||
581 | return 0; | ||
582 | uopt->volume = option; | ||
583 | break; | ||
584 | case Opt_partition: | 568 | case Opt_partition: |
585 | if (match_int(args, &option)) | ||
586 | return 0; | ||
587 | uopt->partition = option; | ||
588 | break; | ||
589 | case Opt_fileset: | 569 | case Opt_fileset: |
590 | if (match_int(args, &option)) | ||
591 | return 0; | ||
592 | uopt->fileset = option; | ||
593 | break; | ||
594 | case Opt_rootdir: | 570 | case Opt_rootdir: |
595 | if (match_int(args, &option)) | 571 | /* Ignored (never implemented properly) */ |
596 | return 0; | ||
597 | uopt->rootdir = option; | ||
598 | break; | 572 | break; |
599 | case Opt_utf8: | 573 | case Opt_utf8: |
600 | uopt->flags |= (1 << UDF_FLAG_UTF8); | 574 | uopt->flags |= (1 << UDF_FLAG_UTF8); |