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
8d61ab5a
Commit
8d61ab5a
authored
Jun 16, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge nuts.ninka.net:/home/davem/src/BK/network-2.5
into nuts.ninka.net:/home/davem/src/BK/net-2.5
parents
0ed2b492
1bc211f1
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
3 deletions
+7
-3
Makefile
Makefile
+1
-1
drivers/md/dm-ioctl.c
drivers/md/dm-ioctl.c
+2
-1
fs/namei.c
fs/namei.c
+4
-0
fs/nfs/inode.c
fs/nfs/inode.c
+0
-1
No files found.
Makefile
View file @
8d61ab5a
VERSION
=
2
VERSION
=
2
PATCHLEVEL
=
5
PATCHLEVEL
=
5
SUBLEVEL
=
7
1
SUBLEVEL
=
7
2
EXTRAVERSION
=
EXTRAVERSION
=
# *DOCUMENTATION*
# *DOCUMENTATION*
...
...
drivers/md/dm-ioctl.c
View file @
8d61ab5a
...
@@ -297,13 +297,14 @@ int dm_hash_rename(const char *old, const char *new)
...
@@ -297,13 +297,14 @@ int dm_hash_rename(const char *old, const char *new)
/*
/*
* rename and move the name cell.
* rename and move the name cell.
*/
*/
unregister_with_devfs
(
hc
);
list_del
(
&
hc
->
name_list
);
list_del
(
&
hc
->
name_list
);
old_name
=
hc
->
name
;
old_name
=
hc
->
name
;
hc
->
name
=
new_name
;
hc
->
name
=
new_name
;
list_add
(
&
hc
->
name_list
,
_name_buckets
+
hash_str
(
new_name
));
list_add
(
&
hc
->
name_list
,
_name_buckets
+
hash_str
(
new_name
));
/* rename the device node in devfs */
/* rename the device node in devfs */
unregister_with_devfs
(
hc
);
register_with_devfs
(
hc
);
register_with_devfs
(
hc
);
up_write
(
&
_hash_lock
);
up_write
(
&
_hash_lock
);
...
...
fs/namei.c
View file @
8d61ab5a
...
@@ -985,6 +985,8 @@ static inline int check_sticky(struct inode *dir, struct inode *inode)
...
@@ -985,6 +985,8 @@ static inline int check_sticky(struct inode *dir, struct inode *inode)
* 7. If we were asked to remove a directory and victim isn't one - ENOTDIR.
* 7. If we were asked to remove a directory and victim isn't one - ENOTDIR.
* 8. If we were asked to remove a non-directory and victim isn't one - EISDIR.
* 8. If we were asked to remove a non-directory and victim isn't one - EISDIR.
* 9. We can't remove a root or mountpoint.
* 9. We can't remove a root or mountpoint.
* 10. We don't allow removal of NFS sillyrenamed files; it's handled by
* nfs_async_unlink().
*/
*/
static
inline
int
may_delete
(
struct
inode
*
dir
,
struct
dentry
*
victim
,
int
isdir
)
static
inline
int
may_delete
(
struct
inode
*
dir
,
struct
dentry
*
victim
,
int
isdir
)
{
{
...
@@ -1008,6 +1010,8 @@ static inline int may_delete(struct inode *dir,struct dentry *victim, int isdir)
...
@@ -1008,6 +1010,8 @@ static inline int may_delete(struct inode *dir,struct dentry *victim, int isdir)
return
-
EISDIR
;
return
-
EISDIR
;
if
(
IS_DEADDIR
(
dir
))
if
(
IS_DEADDIR
(
dir
))
return
-
ENOENT
;
return
-
ENOENT
;
if
(
victim
->
d_flags
&
DCACHE_NFSFS_RENAMED
)
return
-
EBUSY
;
return
0
;
return
0
;
}
}
...
...
fs/nfs/inode.c
View file @
8d61ab5a
...
@@ -715,7 +715,6 @@ __nfs_fhget(struct super_block *sb, struct nfs_fh *fh, struct nfs_fattr *fattr)
...
@@ -715,7 +715,6 @@ __nfs_fhget(struct super_block *sb, struct nfs_fh *fh, struct nfs_fattr *fattr)
if
(
fattr
->
valid
&
NFS_ATTR_FATTR_V4
)
if
(
fattr
->
valid
&
NFS_ATTR_FATTR_V4
)
nfsi
->
change_attr
=
fattr
->
change_attr
;
nfsi
->
change_attr
=
fattr
->
change_attr
;
inode
->
i_size
=
nfs_size_to_loff_t
(
fattr
->
size
);
inode
->
i_size
=
nfs_size_to_loff_t
(
fattr
->
size
);
inode
->
i_mode
=
fattr
->
mode
;
inode
->
i_nlink
=
fattr
->
nlink
;
inode
->
i_nlink
=
fattr
->
nlink
;
inode
->
i_uid
=
fattr
->
uid
;
inode
->
i_uid
=
fattr
->
uid
;
inode
->
i_gid
=
fattr
->
gid
;
inode
->
i_gid
=
fattr
->
gid
;
...
...
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