Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
39ef17f1
Commit
39ef17f1
authored
Mar 03, 2012
by
Theodore Ts'o
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ext4: simplify handling of the errors=* mount options
Signed-off-by:
"Theodore Ts'o"
<
tytso@mit.edu
>
parent
c64db50e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
fs/ext4/ext4.h
fs/ext4/ext4.h
+1
-0
fs/ext4/super.c
fs/ext4/super.c
+3
-6
No files found.
fs/ext4/ext4.h
View file @
39ef17f1
...
...
@@ -924,6 +924,7 @@ struct ext4_inode_info {
#define EXT4_MOUNT_ERRORS_CONT 0x00010
/* Continue on errors */
#define EXT4_MOUNT_ERRORS_RO 0x00020
/* Remount fs ro on errors */
#define EXT4_MOUNT_ERRORS_PANIC 0x00040
/* Panic on errors */
#define EXT4_MOUNT_ERRORS_MASK 0x00070
#define EXT4_MOUNT_MINIX_DF 0x00080
/* Mimics the Minix statfs */
#define EXT4_MOUNT_NOLOAD 0x00100
/* Don't use existing journal*/
#define EXT4_MOUNT_DATA_FLAGS 0x00C00
/* Mode for data writes: */
...
...
fs/ext4/super.c
View file @
39ef17f1
...
...
@@ -1565,18 +1565,15 @@ static int parse_options(char *options, struct super_block *sb,
/* *sb_block = match_int(&args[0]); */
break
;
case
Opt_err_panic
:
clear_opt
(
sb
,
ERRORS_CONT
);
clear_opt
(
sb
,
ERRORS_RO
);
clear_opt
(
sb
,
ERRORS_MASK
);
set_opt
(
sb
,
ERRORS_PANIC
);
break
;
case
Opt_err_ro
:
clear_opt
(
sb
,
ERRORS_CONT
);
clear_opt
(
sb
,
ERRORS_PANIC
);
clear_opt
(
sb
,
ERRORS_MASK
);
set_opt
(
sb
,
ERRORS_RO
);
break
;
case
Opt_err_cont
:
clear_opt
(
sb
,
ERRORS_RO
);
clear_opt
(
sb
,
ERRORS_PANIC
);
clear_opt
(
sb
,
ERRORS_MASK
);
set_opt
(
sb
,
ERRORS_CONT
);
break
;
case
Opt_nouid32
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment