Util-Linux package development
 help / color / mirror / Atom feed
* Bug with read only handling in mount
@ 2016-10-04  7:41 Kent Overstreet
  2016-10-04  8:29 ` Karel Zak
  0 siblings, 1 reply; 8+ messages in thread
From: Kent Overstreet @ 2016-10-04  7:41 UTC (permalink / raw)
  To: util-linux

sys-utils/mount.c, mk_exit_code()

If the mount syscall returns EACCESS, the code treats this as meaning that RW
access to the block device wasn't allowed - it switches to RO for all future
mount attempts.

This is incorrect though, because EACCESS could just mean that that particular
filesystem doesn't support RW: iso9600 returns EACCESS if you try to mount RW.

The end result is that if we're trying to mount by trying every filesystem type
(your libblkid doesn't know about your filesystem yet..), and the correct
filesystem was listed after iso9600 in /proc/filesystems, mount will always
mount RO (unless you specify the filesystem type with -t).

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-10-04 11:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-04  7:41 Bug with read only handling in mount Kent Overstreet
2016-10-04  8:29 ` Karel Zak
2016-10-04  9:18   ` Kent Overstreet
2016-10-04 10:02     ` Karel Zak
2016-10-04 10:10       ` Kent Overstreet
2016-10-04 10:33         ` Karel Zak
2016-10-04 10:49       ` Jan Kara
2016-10-04 11:24         ` Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox