Commit 7e92041
hpfs: implement the show_options method
commit 037369b872940cd923835a0a589763180c4a36bc upstream.
The HPFS filesystem used generic_show_options to produce string that is
displayed in /proc/mounts. However, there is a problem that the options
may disappear after remount. If we mount the filesystem with option1
and then remount it with option2, /proc/mounts should show both option1
and option2, however it only shows option2 because the whole option
string is replaced with replace_mount_options in hpfs_remount_fs.
To fix this bug, implement the hpfs_show_options function that prints
options that are currently selected.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 5cb3ec3 commit 7e92041
1 file changed
Lines changed: 32 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
453 | 454 | | |
454 | 455 | | |
455 | 456 | | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | 457 | | |
461 | 458 | | |
462 | 459 | | |
| |||
493 | 490 | | |
494 | 491 | | |
495 | 492 | | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | 493 | | |
500 | 494 | | |
501 | 495 | | |
502 | 496 | | |
503 | 497 | | |
504 | | - | |
505 | 498 | | |
506 | 499 | | |
507 | 500 | | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
508 | 531 | | |
509 | 532 | | |
510 | 533 | | |
| |||
515 | 538 | | |
516 | 539 | | |
517 | 540 | | |
518 | | - | |
| 541 | + | |
519 | 542 | | |
520 | 543 | | |
521 | 544 | | |
| |||
538 | 561 | | |
539 | 562 | | |
540 | 563 | | |
541 | | - | |
542 | | - | |
543 | 564 | | |
544 | 565 | | |
545 | 566 | | |
| |||
0 commit comments