Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
linux
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Detlev Casanova
linux
Commits
39ef17f1
Commit
39ef17f1
authored
13 years ago
by
Theodore Ts'o
Browse files
Options
Downloads
Patches
Plain Diff
ext4: simplify handling of the errors=* mount options
Signed-off-by:
"Theodore Ts'o"
<
tytso@mit.edu
>
parent
c64db50e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
fs/ext4/ext4.h
+1
-0
1 addition, 0 deletions
fs/ext4/ext4.h
fs/ext4/super.c
+3
-6
3 additions, 6 deletions
fs/ext4/super.c
with
4 additions
and
6 deletions
fs/ext4/ext4.h
+
1
−
0
View file @
39ef17f1
...
@@ -924,6 +924,7 @@ struct ext4_inode_info {
...
@@ -924,6 +924,7 @@ struct ext4_inode_info {
#define EXT4_MOUNT_ERRORS_CONT 0x00010
/* Continue on errors */
#define EXT4_MOUNT_ERRORS_CONT 0x00010
/* Continue on errors */
#define EXT4_MOUNT_ERRORS_RO 0x00020
/* Remount fs ro 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_PANIC 0x00040
/* Panic on errors */
#define EXT4_MOUNT_ERRORS_MASK 0x00070
#define EXT4_MOUNT_MINIX_DF 0x00080
/* Mimics the Minix statfs */
#define EXT4_MOUNT_MINIX_DF 0x00080
/* Mimics the Minix statfs */
#define EXT4_MOUNT_NOLOAD 0x00100
/* Don't use existing journal*/
#define EXT4_MOUNT_NOLOAD 0x00100
/* Don't use existing journal*/
#define EXT4_MOUNT_DATA_FLAGS 0x00C00
/* Mode for data writes: */
#define EXT4_MOUNT_DATA_FLAGS 0x00C00
/* Mode for data writes: */
...
...
This diff is collapsed.
Click to expand it.
fs/ext4/super.c
+
3
−
6
View file @
39ef17f1
...
@@ -1565,18 +1565,15 @@ static int parse_options(char *options, struct super_block *sb,
...
@@ -1565,18 +1565,15 @@ static int parse_options(char *options, struct super_block *sb,
/* *sb_block = match_int(&args[0]); */
/* *sb_block = match_int(&args[0]); */
break
;
break
;
case
Opt_err_panic
:
case
Opt_err_panic
:
clear_opt
(
sb
,
ERRORS_CONT
);
clear_opt
(
sb
,
ERRORS_MASK
);
clear_opt
(
sb
,
ERRORS_RO
);
set_opt
(
sb
,
ERRORS_PANIC
);
set_opt
(
sb
,
ERRORS_PANIC
);
break
;
break
;
case
Opt_err_ro
:
case
Opt_err_ro
:
clear_opt
(
sb
,
ERRORS_CONT
);
clear_opt
(
sb
,
ERRORS_MASK
);
clear_opt
(
sb
,
ERRORS_PANIC
);
set_opt
(
sb
,
ERRORS_RO
);
set_opt
(
sb
,
ERRORS_RO
);
break
;
break
;
case
Opt_err_cont
:
case
Opt_err_cont
:
clear_opt
(
sb
,
ERRORS_RO
);
clear_opt
(
sb
,
ERRORS_MASK
);
clear_opt
(
sb
,
ERRORS_PANIC
);
set_opt
(
sb
,
ERRORS_CONT
);
set_opt
(
sb
,
ERRORS_CONT
);
break
;
break
;
case
Opt_nouid32
:
case
Opt_nouid32
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment