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
a760b03d
Commit
a760b03d
authored
Jul 26, 2011
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
affs: propagate umode_t
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
a5e7ed32
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
fs/affs/affs.h
fs/affs/affs.h
+1
-1
fs/affs/amigaffs.c
fs/affs/amigaffs.c
+3
-3
No files found.
fs/affs/affs.h
View file @
a760b03d
...
...
@@ -136,7 +136,7 @@ extern int affs_remove_header(struct dentry *dentry);
extern
u32
affs_checksum_block
(
struct
super_block
*
sb
,
struct
buffer_head
*
bh
);
extern
void
affs_fix_checksum
(
struct
super_block
*
sb
,
struct
buffer_head
*
bh
);
extern
void
secs_to_datestamp
(
time_t
secs
,
struct
affs_date
*
ds
);
extern
mode_t
prot_to_mode
(
u32
prot
);
extern
u
mode_t
prot_to_mode
(
u32
prot
);
extern
void
mode_to_prot
(
struct
inode
*
inode
);
extern
void
affs_error
(
struct
super_block
*
sb
,
const
char
*
function
,
const
char
*
fmt
,
...);
extern
void
affs_warning
(
struct
super_block
*
sb
,
const
char
*
function
,
const
char
*
fmt
,
...);
...
...
fs/affs/amigaffs.c
View file @
a760b03d
...
...
@@ -390,10 +390,10 @@ secs_to_datestamp(time_t secs, struct affs_date *ds)
ds
->
ticks
=
cpu_to_be32
(
secs
*
50
);
}
mode_t
u
mode_t
prot_to_mode
(
u32
prot
)
{
in
t
mode
=
0
;
umode_
t
mode
=
0
;
if
(
!
(
prot
&
FIBF_NOWRITE
))
mode
|=
S_IWUSR
;
...
...
@@ -421,7 +421,7 @@ void
mode_to_prot
(
struct
inode
*
inode
)
{
u32
prot
=
AFFS_I
(
inode
)
->
i_protect
;
mode_t
mode
=
inode
->
i_mode
;
u
mode_t
mode
=
inode
->
i_mode
;
if
(
!
(
mode
&
S_IXUSR
))
prot
|=
FIBF_NOEXECUTE
;
...
...
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