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
nexedi
linux
Commits
005a59ec
Commit
005a59ec
authored
Apr 21, 2009
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deal with missing exports for hostfs
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
51102ee5
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
3 deletions
+28
-3
arch/um/include/shared/os.h
arch/um/include/shared/os.h
+3
-0
arch/um/kernel/ksyms.c
arch/um/kernel/ksyms.c
+3
-0
arch/um/os-Linux/file.c
arch/um/os-Linux/file.c
+15
-0
arch/um/os-Linux/user_syms.c
arch/um/os-Linux/user_syms.c
+4
-0
fs/hostfs/hostfs_user.c
fs/hostfs/hostfs_user.c
+3
-3
No files found.
arch/um/include/shared/os.h
View file @
005a59ec
...
@@ -161,6 +161,9 @@ extern int os_stat_filesystem(char *path, long *bsize_out,
...
@@ -161,6 +161,9 @@ extern int os_stat_filesystem(char *path, long *bsize_out,
long
*
spare_out
);
long
*
spare_out
);
extern
int
os_change_dir
(
char
*
dir
);
extern
int
os_change_dir
(
char
*
dir
);
extern
int
os_fchange_dir
(
int
fd
);
extern
int
os_fchange_dir
(
int
fd
);
extern
unsigned
os_major
(
unsigned
long
long
dev
);
extern
unsigned
os_minor
(
unsigned
long
long
dev
);
extern
unsigned
long
long
os_makedev
(
unsigned
major
,
unsigned
minor
);
/* start_up.c */
/* start_up.c */
extern
void
os_early_checks
(
void
);
extern
void
os_early_checks
(
void
);
...
...
arch/um/kernel/ksyms.c
View file @
005a59ec
...
@@ -58,6 +58,9 @@ EXPORT_SYMBOL(os_accept_connection);
...
@@ -58,6 +58,9 @@ EXPORT_SYMBOL(os_accept_connection);
EXPORT_SYMBOL
(
os_rcv_fd
);
EXPORT_SYMBOL
(
os_rcv_fd
);
EXPORT_SYMBOL
(
run_helper
);
EXPORT_SYMBOL
(
run_helper
);
EXPORT_SYMBOL
(
start_thread
);
EXPORT_SYMBOL
(
start_thread
);
EXPORT_SYMBOL
(
os_major
);
EXPORT_SYMBOL
(
os_minor
);
EXPORT_SYMBOL
(
os_makedev
);
EXPORT_SYMBOL
(
add_sigio_fd
);
EXPORT_SYMBOL
(
add_sigio_fd
);
EXPORT_SYMBOL
(
ignore_sigio_fd
);
EXPORT_SYMBOL
(
ignore_sigio_fd
);
...
...
arch/um/os-Linux/file.c
View file @
005a59ec
...
@@ -561,3 +561,18 @@ int os_lock_file(int fd, int excl)
...
@@ -561,3 +561,18 @@ int os_lock_file(int fd, int excl)
out:
out:
return
err
;
return
err
;
}
}
unsigned
os_major
(
unsigned
long
long
dev
)
{
return
major
(
dev
);
}
unsigned
os_minor
(
unsigned
long
long
dev
)
{
return
minor
(
dev
);
}
unsigned
long
long
os_makedev
(
unsigned
major
,
unsigned
minor
)
{
return
makedev
(
major
,
minor
);
}
arch/um/os-Linux/user_syms.c
View file @
005a59ec
...
@@ -103,6 +103,10 @@ EXPORT_SYMBOL_PROTO(getuid);
...
@@ -103,6 +103,10 @@ EXPORT_SYMBOL_PROTO(getuid);
EXPORT_SYMBOL_PROTO
(
fsync
);
EXPORT_SYMBOL_PROTO
(
fsync
);
EXPORT_SYMBOL_PROTO
(
fdatasync
);
EXPORT_SYMBOL_PROTO
(
fdatasync
);
EXPORT_SYMBOL_PROTO
(
lstat64
);
EXPORT_SYMBOL_PROTO
(
fstat64
);
EXPORT_SYMBOL_PROTO
(
mknod
);
/* Export symbols used by GCC for the stack protector. */
/* Export symbols used by GCC for the stack protector. */
extern
void
__stack_smash_handler
(
void
*
)
__attribute__
((
weak
));
extern
void
__stack_smash_handler
(
void
*
)
__attribute__
((
weak
));
EXPORT_SYMBOL
(
__stack_smash_handler
);
EXPORT_SYMBOL
(
__stack_smash_handler
);
...
...
fs/hostfs/hostfs_user.c
View file @
005a59ec
...
@@ -76,9 +76,9 @@ int file_type(const char *path, int *maj, int *min)
...
@@ -76,9 +76,9 @@ int file_type(const char *path, int *maj, int *min)
* about its definition.
* about its definition.
*/
*/
if
(
maj
!=
NULL
)
if
(
maj
!=
NULL
)
*
maj
=
major
(
buf
.
st_rdev
);
*
maj
=
os_
major
(
buf
.
st_rdev
);
if
(
min
!=
NULL
)
if
(
min
!=
NULL
)
*
min
=
minor
(
buf
.
st_rdev
);
*
min
=
os_
minor
(
buf
.
st_rdev
);
if
(
S_ISDIR
(
buf
.
st_mode
))
if
(
S_ISDIR
(
buf
.
st_mode
))
return
OS_TYPE_DIR
;
return
OS_TYPE_DIR
;
...
@@ -361,7 +361,7 @@ int do_mknod(const char *file, int mode, unsigned int major, unsigned int minor)
...
@@ -361,7 +361,7 @@ int do_mknod(const char *file, int mode, unsigned int major, unsigned int minor)
{
{
int
err
;
int
err
;
err
=
mknod
(
file
,
mode
,
makedev
(
major
,
minor
));
err
=
mknod
(
file
,
mode
,
os_
makedev
(
major
,
minor
));
if
(
err
)
if
(
err
)
return
-
errno
;
return
-
errno
;
return
0
;
return
0
;
...
...
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