Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 206345
b: refs/heads/master
c: 773bc4f
h: refs/heads/master
i:
  206343: 0f83054
v: v3
  • Loading branch information
Ryusuke Konishi committed Jul 23, 2010
1 parent 59825f2 commit 3591d4f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 325020477a51ffa849418b3e38189fd266f2ae20
refs/heads/master: 773bc4f3b6898634a80a41c72a1f34cb89992dcd
5 changes: 4 additions & 1 deletion trunk/Documentation/filesystems/nilfs2.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ Mount options
NILFS2 supports the following mount options:
(*) == default

nobarrier Disables barriers.
barrier(*) This enables/disables the use of write barriers. This
nobarrier requires an IO stack which can support barriers, and
if nilfs gets an error on a barrier write, it will
disable again with a warning.
errors=continue Keep going on a filesystem error.
errors=remount-ro(*) Remount the filesystem read-only on an error.
errors=panic Panic and halt the machine if an error occurs.
Expand Down
6 changes: 5 additions & 1 deletion trunk/fs/nilfs2/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -603,14 +603,15 @@ static const struct export_operations nilfs_export_ops = {

enum {
Opt_err_cont, Opt_err_panic, Opt_err_ro,
Opt_nobarrier, Opt_snapshot, Opt_order, Opt_norecovery,
Opt_barrier, Opt_nobarrier, Opt_snapshot, Opt_order, Opt_norecovery,
Opt_discard, Opt_err,
};

static match_table_t tokens = {
{Opt_err_cont, "errors=continue"},
{Opt_err_panic, "errors=panic"},
{Opt_err_ro, "errors=remount-ro"},
{Opt_barrier, "barrier"},
{Opt_nobarrier, "nobarrier"},
{Opt_snapshot, "cp=%u"},
{Opt_order, "order=%s"},
Expand All @@ -636,6 +637,9 @@ static int parse_options(char *options, struct super_block *sb)

token = match_token(p, tokens, args);
switch (token) {
case Opt_barrier:
nilfs_set_opt(sbi, BARRIER);
break;
case Opt_nobarrier:
nilfs_clear_opt(sbi, BARRIER);
break;
Expand Down

0 comments on commit 3591d4f

Please sign in to comment.