Skip to content

Commit

Permalink
[fs/9p] Ignore acl mount option when CONFIG_9P_FS_POSIX_ACL is not de…
Browse files Browse the repository at this point in the history
…fined.

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>
  • Loading branch information
Venkateswararao Jujjuri (JV) authored and Eric Van Hensbergen committed Mar 15, 2011
1 parent d344b0f commit 9332685
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions fs/9p/v9fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,8 @@ static int v9fs_parse_options(struct v9fs_session_info *v9ses, char *opts)
v9ses->flags |= V9FS_ACCESS_CLIENT;
#else
P9_DPRINTK(P9_DEBUG_ERROR,
"access=client option not supported\n");
kfree(s);
ret = -EINVAL;
goto free_and_return;
"Not defined CONFIG_9P_FS_POSIX_ACL. "
"Ignoring access=client option\n");
#endif
} else {
v9ses->flags |= V9FS_ACCESS_SINGLE;
Expand Down

0 comments on commit 9332685

Please sign in to comment.