super.c (773bc4f3b6898634a80a41c72a1f34cb89992dcd) | super.c (802d31775404ee335ca1e97a82e1e706a4c843be) |
---|---|
1/* 2 * super.c - NILFS module and super block management. 3 * 4 * Copyright (C) 2005-2008 Nippon Telegraph and Telephone Corporation. 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 590 unchanged lines hidden (view full) --- 599 .fh_to_dentry = nilfs_fh_to_dentry, 600 .fh_to_parent = nilfs_fh_to_parent, 601 .get_parent = nilfs_get_parent, 602}; 603 604enum { 605 Opt_err_cont, Opt_err_panic, Opt_err_ro, 606 Opt_barrier, Opt_nobarrier, Opt_snapshot, Opt_order, Opt_norecovery, | 1/* 2 * super.c - NILFS module and super block management. 3 * 4 * Copyright (C) 2005-2008 Nippon Telegraph and Telephone Corporation. 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 590 unchanged lines hidden (view full) --- 599 .fh_to_dentry = nilfs_fh_to_dentry, 600 .fh_to_parent = nilfs_fh_to_parent, 601 .get_parent = nilfs_get_parent, 602}; 603 604enum { 605 Opt_err_cont, Opt_err_panic, Opt_err_ro, 606 Opt_barrier, Opt_nobarrier, Opt_snapshot, Opt_order, Opt_norecovery, |
607 Opt_discard, Opt_err, | 607 Opt_discard, Opt_nodiscard, Opt_err, |
608}; 609 610static match_table_t tokens = { 611 {Opt_err_cont, "errors=continue"}, 612 {Opt_err_panic, "errors=panic"}, 613 {Opt_err_ro, "errors=remount-ro"}, 614 {Opt_barrier, "barrier"}, 615 {Opt_nobarrier, "nobarrier"}, 616 {Opt_snapshot, "cp=%u"}, 617 {Opt_order, "order=%s"}, 618 {Opt_norecovery, "norecovery"}, 619 {Opt_discard, "discard"}, | 608}; 609 610static match_table_t tokens = { 611 {Opt_err_cont, "errors=continue"}, 612 {Opt_err_panic, "errors=panic"}, 613 {Opt_err_ro, "errors=remount-ro"}, 614 {Opt_barrier, "barrier"}, 615 {Opt_nobarrier, "nobarrier"}, 616 {Opt_snapshot, "cp=%u"}, 617 {Opt_order, "order=%s"}, 618 {Opt_norecovery, "norecovery"}, 619 {Opt_discard, "discard"}, |
620 {Opt_nodiscard, "nodiscard"}, |
|
620 {Opt_err, NULL} 621}; 622 623static int parse_options(char *options, struct super_block *sb) 624{ 625 struct nilfs_sb_info *sbi = NILFS_SB(sb); 626 char *p; 627 substring_t args[MAX_OPT_ARGS]; --- 43 unchanged lines hidden (view full) --- 671 nilfs_set_opt(sbi, SNAPSHOT); 672 break; 673 case Opt_norecovery: 674 nilfs_set_opt(sbi, NORECOVERY); 675 break; 676 case Opt_discard: 677 nilfs_set_opt(sbi, DISCARD); 678 break; | 621 {Opt_err, NULL} 622}; 623 624static int parse_options(char *options, struct super_block *sb) 625{ 626 struct nilfs_sb_info *sbi = NILFS_SB(sb); 627 char *p; 628 substring_t args[MAX_OPT_ARGS]; --- 43 unchanged lines hidden (view full) --- 672 nilfs_set_opt(sbi, SNAPSHOT); 673 break; 674 case Opt_norecovery: 675 nilfs_set_opt(sbi, NORECOVERY); 676 break; 677 case Opt_discard: 678 nilfs_set_opt(sbi, DISCARD); 679 break; |
680 case Opt_nodiscard: 681 nilfs_clear_opt(sbi, DISCARD); 682 break; |
|
679 default: 680 printk(KERN_ERR 681 "NILFS: Unrecognized mount option \"%s\"\n", p); 682 return 0; 683 } 684 } 685 return 1; 686} --- 605 unchanged lines hidden --- | 683 default: 684 printk(KERN_ERR 685 "NILFS: Unrecognized mount option \"%s\"\n", p); 686 return 0; 687 } 688 } 689 return 1; 690} --- 605 unchanged lines hidden --- |