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
1cc86697
Commit
1cc86697
authored
Feb 06, 2002
by
Alexander Viro
Committed by
Linus Torvalds
Feb 06, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] (7/9) more ->get_sb() stuff
More ->get_sb() patches: autofs
parent
08e7ca9b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
6 deletions
+15
-6
fs/autofs/autofs_i.h
fs/autofs/autofs_i.h
+1
-1
fs/autofs/init.c
fs/autofs/init.c
+11
-1
fs/autofs/inode.c
fs/autofs/inode.c
+3
-4
No files found.
fs/autofs/autofs_i.h
View file @
1cc86697
...
@@ -145,7 +145,7 @@ extern struct file_operations autofs_dir_operations;
...
@@ -145,7 +145,7 @@ extern struct file_operations autofs_dir_operations;
/* Initializing function */
/* Initializing function */
struct
super_block
*
autofs_read_super
(
struct
super_block
*
,
void
*
,
int
);
int
autofs_fill_super
(
struct
super_block
*
,
void
*
,
int
);
/* Queue management functions */
/* Queue management functions */
...
...
fs/autofs/init.c
View file @
1cc86697
...
@@ -14,7 +14,17 @@
...
@@ -14,7 +14,17 @@
#include <linux/init.h>
#include <linux/init.h>
#include "autofs_i.h"
#include "autofs_i.h"
static
DECLARE_FSTYPE
(
autofs_fs_type
,
"autofs"
,
autofs_read_super
,
0
);
static
struct
super_block
*
autofs_get_sb
(
struct
file_system_type
*
fs_type
,
int
flags
,
char
*
dev_name
,
void
*
data
)
{
return
get_sb_nodev
(
fs_type
,
flags
,
data
,
autofs_fill_super
);
}
static
struct
file_system_type
autofs_fs_type
=
{
owner:
THIS_MODULE
,
name:
"autofs"
,
get_sb:
autofs_get_sb
,
};
static
int
__init
init_autofs_fs
(
void
)
static
int
__init
init_autofs_fs
(
void
)
{
{
...
...
fs/autofs/inode.c
View file @
1cc86697
...
@@ -111,8 +111,7 @@ static int parse_options(char *options, int *pipefd, uid_t *uid, gid_t *gid, pid
...
@@ -111,8 +111,7 @@ static int parse_options(char *options, int *pipefd, uid_t *uid, gid_t *gid, pid
return
(
*
pipefd
<
0
);
return
(
*
pipefd
<
0
);
}
}
struct
super_block
*
autofs_read_super
(
struct
super_block
*
s
,
void
*
data
,
int
autofs_fill_super
(
struct
super_block
*
s
,
void
*
data
,
int
silent
)
int
silent
)
{
{
struct
inode
*
root_inode
;
struct
inode
*
root_inode
;
struct
dentry
*
root
;
struct
dentry
*
root
;
...
@@ -175,7 +174,7 @@ struct super_block *autofs_read_super(struct super_block *s, void *data,
...
@@ -175,7 +174,7 @@ struct super_block *autofs_read_super(struct super_block *s, void *data,
* Success! Install the root dentry now to indicate completion.
* Success! Install the root dentry now to indicate completion.
*/
*/
s
->
s_root
=
root
;
s
->
s_root
=
root
;
return
s
;
return
0
;
fail_fput:
fail_fput:
printk
(
"autofs: pipe file descriptor does not contain proper ops
\n
"
);
printk
(
"autofs: pipe file descriptor does not contain proper ops
\n
"
);
...
@@ -189,7 +188,7 @@ struct super_block *autofs_read_super(struct super_block *s, void *data,
...
@@ -189,7 +188,7 @@ struct super_block *autofs_read_super(struct super_block *s, void *data,
fail_free:
fail_free:
kfree
(
sbi
);
kfree
(
sbi
);
fail_unlock:
fail_unlock:
return
NUL
L
;
return
-
EINVA
L
;
}
}
static
int
autofs_statfs
(
struct
super_block
*
sb
,
struct
statfs
*
buf
)
static
int
autofs_statfs
(
struct
super_block
*
sb
,
struct
statfs
*
buf
)
...
...
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