Skip to content

Commit 9332685

Browse files
Venkateswararao Jujjuri (JV)ericvh
authored andcommitted
[fs/9p] Ignore acl mount option when CONFIG_9P_FS_POSIX_ACL is not defined.
If the kernel is not compiled with CONFIG_9P_FS_POSIX_ACL and the mount option is specified to enable ACLs current code fails the mount. This patch brings the behavior inline with other filesystems like ext3 by proceeding with the mount and log a warning to syslog. Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com> Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
1 parent d344b0f commit 9332685

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎fs/9p/v9fs.c‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,8 @@ static int v9fs_parse_options(struct v9fs_session_info *v9ses, char *opts)
198198
v9ses->flags |= V9FS_ACCESS_CLIENT;
199199
#else
200200
P9_DPRINTK(P9_DEBUG_ERROR,
201-
"access=client option not supported\n");
202-
kfree(s);
203-
ret = -EINVAL;
204-
goto free_and_return;
201+
"Not defined CONFIG_9P_FS_POSIX_ACL. "
202+
"Ignoring access=client option\n");
205203
#endif
206204
} else {
207205
v9ses->flags |= V9FS_ACCESS_SINGLE;

0 commit comments

Comments
 (0)