Commit 2e28c49e authored by Al Viro's avatar Al Viro

fuse: switch to use errorfc() et.al.

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent d53d0f74
...@@ -475,14 +475,14 @@ static int fuse_parse_param(struct fs_context *fc, struct fs_parameter *param) ...@@ -475,14 +475,14 @@ static int fuse_parse_param(struct fs_context *fc, struct fs_parameter *param)
switch (opt) { switch (opt) {
case OPT_SOURCE: case OPT_SOURCE:
if (fc->source) if (fc->source)
return invalf(fc, "fuse: Multiple sources specified"); return invalfc(fc, "Multiple sources specified");
fc->source = param->string; fc->source = param->string;
param->string = NULL; param->string = NULL;
break; break;
case OPT_SUBTYPE: case OPT_SUBTYPE:
if (ctx->subtype) if (ctx->subtype)
return invalf(fc, "fuse: Multiple subtypes specified"); return invalfc(fc, "Multiple subtypes specified");
ctx->subtype = param->string; ctx->subtype = param->string;
param->string = NULL; param->string = NULL;
return 0; return 0;
...@@ -494,7 +494,7 @@ static int fuse_parse_param(struct fs_context *fc, struct fs_parameter *param) ...@@ -494,7 +494,7 @@ static int fuse_parse_param(struct fs_context *fc, struct fs_parameter *param)
case OPT_ROOTMODE: case OPT_ROOTMODE:
if (!fuse_valid_type(result.uint_32)) if (!fuse_valid_type(result.uint_32))
return invalf(fc, "fuse: Invalid rootmode"); return invalfc(fc, "Invalid rootmode");
ctx->rootmode = result.uint_32; ctx->rootmode = result.uint_32;
ctx->rootmode_present = 1; ctx->rootmode_present = 1;
break; break;
...@@ -502,14 +502,14 @@ static int fuse_parse_param(struct fs_context *fc, struct fs_parameter *param) ...@@ -502,14 +502,14 @@ static int fuse_parse_param(struct fs_context *fc, struct fs_parameter *param)
case OPT_USER_ID: case OPT_USER_ID:
ctx->user_id = make_kuid(fc->user_ns, result.uint_32); ctx->user_id = make_kuid(fc->user_ns, result.uint_32);
if (!uid_valid(ctx->user_id)) if (!uid_valid(ctx->user_id))
return invalf(fc, "fuse: Invalid user_id"); return invalfc(fc, "Invalid user_id");
ctx->user_id_present = 1; ctx->user_id_present = 1;
break; break;
case OPT_GROUP_ID: case OPT_GROUP_ID:
ctx->group_id = make_kgid(fc->user_ns, result.uint_32); ctx->group_id = make_kgid(fc->user_ns, result.uint_32);
if (!gid_valid(ctx->group_id)) if (!gid_valid(ctx->group_id))
return invalf(fc, "fuse: Invalid group_id"); return invalfc(fc, "Invalid group_id");
ctx->group_id_present = 1; ctx->group_id_present = 1;
break; break;
...@@ -527,7 +527,7 @@ static int fuse_parse_param(struct fs_context *fc, struct fs_parameter *param) ...@@ -527,7 +527,7 @@ static int fuse_parse_param(struct fs_context *fc, struct fs_parameter *param)
case OPT_BLKSIZE: case OPT_BLKSIZE:
if (!ctx->is_bdev) if (!ctx->is_bdev)
return invalf(fc, "fuse: blksize only supported for fuseblk"); return invalfc(fc, "blksize only supported for fuseblk");
ctx->blksize = result.uint_32; ctx->blksize = result.uint_32;
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment