We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd99035 commit 851e99eCopy full SHA for 851e99e
fs/tracefs/inode.c
@@ -264,7 +264,6 @@ static int tracefs_parse_options(char *data, struct tracefs_mount_opts *opts)
264
if (!gid_valid(gid))
265
return -EINVAL;
266
opts->gid = gid;
267
- set_gid(tracefs_mount->mnt_root, gid);
268
break;
269
case Opt_mode:
270
if (match_octal(&args[0], &option))
@@ -291,7 +290,9 @@ static int tracefs_apply_options(struct super_block *sb)
291
290
inode->i_mode |= opts->mode;
292
293
inode->i_uid = opts->uid;
294
- inode->i_gid = opts->gid;
+
+ /* Set all the group ids to the mount option */
295
+ set_gid(sb->s_root, opts->gid);
296
297
return 0;
298
}
0 commit comments