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
9d188d03
Commit
9d188d03
authored
Jul 30, 2002
by
Petr Vandrovec
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert ncpfs to C99 initializers. By Rusty Trivial Russell.
parent
6a1caddf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
37 deletions
+37
-37
fs/ncpfs/dir.c
fs/ncpfs/dir.c
+19
-19
fs/ncpfs/file.c
fs/ncpfs/file.c
+8
-8
fs/ncpfs/inode.c
fs/ncpfs/inode.c
+10
-10
No files found.
fs/ncpfs/dir.c
View file @
9d188d03
...
@@ -51,22 +51,22 @@ extern int ncp_symlink(struct inode *, struct dentry *, const char *);
...
@@ -51,22 +51,22 @@ extern int ncp_symlink(struct inode *, struct dentry *, const char *);
struct
file_operations
ncp_dir_operations
=
struct
file_operations
ncp_dir_operations
=
{
{
read:
generic_read_dir
,
.
read
=
generic_read_dir
,
readdir:
ncp_readdir
,
.
readdir
=
ncp_readdir
,
ioctl:
ncp_ioctl
,
.
ioctl
=
ncp_ioctl
,
};
};
struct
inode_operations
ncp_dir_inode_operations
=
struct
inode_operations
ncp_dir_inode_operations
=
{
{
create:
ncp_create
,
.
create
=
ncp_create
,
lookup:
ncp_lookup
,
.
lookup
=
ncp_lookup
,
unlink:
ncp_unlink
,
.
unlink
=
ncp_unlink
,
symlink:
ncp_symlink
,
.
symlink
=
ncp_symlink
,
mkdir:
ncp_mkdir
,
.
mkdir
=
ncp_mkdir
,
rmdir:
ncp_rmdir
,
.
rmdir
=
ncp_rmdir
,
mknod:
ncp_mknod
,
.
mknod
=
ncp_mknod
,
rename:
ncp_rename
,
.
rename
=
ncp_rename
,
setattr:
ncp_notify_change
,
.
setattr
=
ncp_notify_change
,
};
};
/*
/*
...
@@ -79,17 +79,17 @@ static int ncp_delete_dentry(struct dentry *);
...
@@ -79,17 +79,17 @@ static int ncp_delete_dentry(struct dentry *);
static
struct
dentry_operations
ncp_dentry_operations
=
static
struct
dentry_operations
ncp_dentry_operations
=
{
{
d_revalidate:
ncp_lookup_validate
,
.
d_revalidate
=
ncp_lookup_validate
,
d_hash:
ncp_hash_dentry
,
.
d_hash
=
ncp_hash_dentry
,
d_compare:
ncp_compare_dentry
,
.
d_compare
=
ncp_compare_dentry
,
d_delete:
ncp_delete_dentry
,
.
d_delete
=
ncp_delete_dentry
,
};
};
struct
dentry_operations
ncp_root_dentry_operations
=
struct
dentry_operations
ncp_root_dentry_operations
=
{
{
d_hash:
ncp_hash_dentry
,
.
d_hash
=
ncp_hash_dentry
,
d_compare:
ncp_compare_dentry
,
.
d_compare
=
ncp_compare_dentry
,
d_delete:
ncp_delete_dentry
,
.
d_delete
=
ncp_delete_dentry
,
};
};
...
...
fs/ncpfs/file.c
View file @
9d188d03
...
@@ -296,16 +296,16 @@ static int ncp_release(struct inode *inode, struct file *file) {
...
@@ -296,16 +296,16 @@ static int ncp_release(struct inode *inode, struct file *file) {
struct
file_operations
ncp_file_operations
=
struct
file_operations
ncp_file_operations
=
{
{
llseek:
remote_llseek
,
.
llseek
=
remote_llseek
,
read:
ncp_file_read
,
.
read
=
ncp_file_read
,
write:
ncp_file_write
,
.
write
=
ncp_file_write
,
ioctl:
ncp_ioctl
,
.
ioctl
=
ncp_ioctl
,
mmap:
ncp_mmap
,
.
mmap
=
ncp_mmap
,
release:
ncp_release
,
.
release
=
ncp_release
,
fsync:
ncp_fsync
,
.
fsync
=
ncp_fsync
,
};
};
struct
inode_operations
ncp_file_inode_operations
=
struct
inode_operations
ncp_file_inode_operations
=
{
{
setattr:
ncp_notify_change
,
.
setattr
=
ncp_notify_change
,
};
};
fs/ncpfs/inode.c
View file @
9d188d03
...
@@ -83,12 +83,12 @@ static void destroy_inodecache(void)
...
@@ -83,12 +83,12 @@ static void destroy_inodecache(void)
static
struct
super_operations
ncp_sops
=
static
struct
super_operations
ncp_sops
=
{
{
alloc_inode:
ncp_alloc_inode
,
.
alloc_inode
=
ncp_alloc_inode
,
destroy_inode:
ncp_destroy_inode
,
.
destroy_inode
=
ncp_destroy_inode
,
drop_inode:
generic_delete_inode
,
.
drop_inode
=
generic_delete_inode
,
delete_inode:
ncp_delete_inode
,
.
delete_inode
=
ncp_delete_inode
,
put_super:
ncp_put_super
,
.
put_super
=
ncp_put_super
,
statfs:
ncp_statfs
,
.
statfs
=
ncp_statfs
,
};
};
extern
struct
dentry_operations
ncp_root_dentry_operations
;
extern
struct
dentry_operations
ncp_root_dentry_operations
;
...
@@ -792,10 +792,10 @@ static struct super_block *ncp_get_sb(struct file_system_type *fs_type,
...
@@ -792,10 +792,10 @@ static struct super_block *ncp_get_sb(struct file_system_type *fs_type,
}
}
static
struct
file_system_type
ncp_fs_type
=
{
static
struct
file_system_type
ncp_fs_type
=
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
name:
"ncpfs"
,
.
name
=
"ncpfs"
,
get_sb:
ncp_get_sb
,
.
get_sb
=
ncp_get_sb
,
kill_sb:
kill_anon_super
,
.
kill_sb
=
kill_anon_super
,
};
};
static
int
__init
init_ncp_fs
(
void
)
static
int
__init
init_ncp_fs
(
void
)
...
...
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