super_block.s_rd_only

Mike Howard (mike@clove1.clove.com)
Wed, 08 Apr 1998 15:52:45 -0400


The field: s_rd_only in the super_block structure appears to be unused except where it is set to
zero in read_super() at super.c:535 and do_mount_root() at super.c:949. [Line numbers are taken
from RedHat 2.0.32-3 kernel source].

It looks like the real way to tell if a file system is mounted read only is to test
super_block.s_flags & MS_READONLY.

I'm working on a file system so would like to know (a) if this is correct and (b) if I need to
worry about s_rd_only or if it will be deleted from the source tree `one of these days'.

Thanks in adv,
Mike Howard <mike@clove.com>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu