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
642ac549
Commit
642ac549
authored
Oct 18, 2005
by
Trond Myklebust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NFSv4: Return delegations in case we're changing ACLs
Signed-off-by:
Trond Myklebust
<
Trond.Myklebust@netapp.com
>
parent
cae7a073
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
fs/nfs/inode.c
fs/nfs/inode.c
+5
-0
fs/nfs/nfs4proc.c
fs/nfs/nfs4proc.c
+1
-0
No files found.
fs/nfs/inode.c
View file @
642ac549
...
@@ -853,6 +853,11 @@ nfs_setattr(struct dentry *dentry, struct iattr *attr)
...
@@ -853,6 +853,11 @@ nfs_setattr(struct dentry *dentry, struct iattr *attr)
filemap_fdatawait
(
inode
->
i_mapping
);
filemap_fdatawait
(
inode
->
i_mapping
);
nfs_wb_all
(
inode
);
nfs_wb_all
(
inode
);
}
}
/*
* Return any delegations if we're going to change ACLs
*/
if
((
attr
->
ia_valid
&
(
ATTR_MODE
|
ATTR_UID
|
ATTR_GID
))
!=
0
)
nfs_inode_return_delegation
(
inode
);
error
=
NFS_PROTO
(
inode
)
->
setattr
(
dentry
,
&
fattr
,
attr
);
error
=
NFS_PROTO
(
inode
)
->
setattr
(
dentry
,
&
fattr
,
attr
);
if
(
error
==
0
)
if
(
error
==
0
)
nfs_refresh_inode
(
inode
,
&
fattr
);
nfs_refresh_inode
(
inode
,
&
fattr
);
...
...
fs/nfs/nfs4proc.c
View file @
642ac549
...
@@ -2405,6 +2405,7 @@ static int nfs4_proc_set_acl(struct inode *inode, const void *buf, size_t buflen
...
@@ -2405,6 +2405,7 @@ static int nfs4_proc_set_acl(struct inode *inode, const void *buf, size_t buflen
if
(
!
nfs4_server_supports_acls
(
server
))
if
(
!
nfs4_server_supports_acls
(
server
))
return
-
EOPNOTSUPP
;
return
-
EOPNOTSUPP
;
nfs_inode_return_delegation
(
inode
);
buf_to_pages
(
buf
,
buflen
,
arg
.
acl_pages
,
&
arg
.
acl_pgbase
);
buf_to_pages
(
buf
,
buflen
,
arg
.
acl_pages
,
&
arg
.
acl_pgbase
);
ret
=
rpc_call_sync
(
NFS_SERVER
(
inode
)
->
client
,
&
msg
,
0
);
ret
=
rpc_call_sync
(
NFS_SERVER
(
inode
)
->
client
,
&
msg
,
0
);
if
(
ret
==
0
)
if
(
ret
==
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