Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 76c67de4 authored by Rob Landley's avatar Rob Landley Committed by Linus Torvalds
Browse files

[PATCH] Ext2 flags shouldn't report "nogrpid"



If I mount ext2 "rw", I want it to say "rw", not "rw,nogrpid".

I caught this writing an automated regression test script for the busybox
mount command.  The symptom is
  /dev/loop0 on /images/ext2.dir type ext2 (rw,nogrpid)
instead of:
  /dev/loop0 on /images/ext2.dir type ext2 (rw)

The behavior was introduced by git commit
8fc2751b.

Signed-off-by: default avatarRob Landley <rob@landley.net>
Cc: Mark Bellon <mbellon@mvista.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 258f4885
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -211,8 +211,6 @@ static int ext2_show_options(struct seq_file *seq, struct vfsmount *vfs)


	if (sbi->s_mount_opt & EXT2_MOUNT_GRPID)
	if (sbi->s_mount_opt & EXT2_MOUNT_GRPID)
		seq_puts(seq, ",grpid");
		seq_puts(seq, ",grpid");
	else
		seq_puts(seq, ",nogrpid");


#if defined(CONFIG_QUOTA)
#if defined(CONFIG_QUOTA)
	if (sbi->s_mount_opt & EXT2_MOUNT_USRQUOTA)
	if (sbi->s_mount_opt & EXT2_MOUNT_USRQUOTA)