diff options
author | Jan Kara <jack@suse.cz> | 2009-06-17 19:26:25 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-18 16:03:45 -0400 |
commit | 52b680c81238ea14693ab893d5d32a4d1c0a987d (patch) | |
tree | 9c3ec57c06faf001b60529d088c189f4bcb77fac /fs/isofs/isofs.h | |
parent | ef43618a47179b41e7203a624f2c7445e7da488c (diff) |
isofs: let mode and dmode mount options override rock ridge mode setting
So far, permissions set via 'mode' and/or 'dmode' mount options were
effective only if the medium had no rock ridge extensions (or was mounted
without them). Add 'overriderockmode' mount option to indicate that these
options should override permissions set in rock ridge extensions. Maybe
this should be default but the current behavior is there since mount
options were created so I think we should not change how they behave.
Cc: <Hans-Joachim.Baader@cjt.de>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/isofs/isofs.h')
-rw-r--r-- | fs/isofs/isofs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/isofs/isofs.h b/fs/isofs/isofs.h index ccbf72faf27a..9679fbcbfc03 100644 --- a/fs/isofs/isofs.h +++ b/fs/isofs/isofs.h | |||
@@ -50,6 +50,7 @@ struct isofs_sb_info { | |||
50 | unsigned char s_nocompress; | 50 | unsigned char s_nocompress; |
51 | unsigned char s_hide; | 51 | unsigned char s_hide; |
52 | unsigned char s_showassoc; | 52 | unsigned char s_showassoc; |
53 | unsigned char s_overriderockperm; | ||
53 | 54 | ||
54 | mode_t s_fmode; | 55 | mode_t s_fmode; |
55 | mode_t s_dmode; | 56 | mode_t s_dmode; |
@@ -58,6 +59,8 @@ struct isofs_sb_info { | |||
58 | struct nls_table *s_nls_iocharset; /* Native language support table */ | 59 | struct nls_table *s_nls_iocharset; /* Native language support table */ |
59 | }; | 60 | }; |
60 | 61 | ||
62 | #define ISOFS_INVALID_MODE ((mode_t) -1) | ||
63 | |||
61 | static inline struct isofs_sb_info *ISOFS_SB(struct super_block *sb) | 64 | static inline struct isofs_sb_info *ISOFS_SB(struct super_block *sb) |
62 | { | 65 | { |
63 | return sb->s_fs_info; | 66 | return sb->s_fs_info; |