]> err.no Git - util-linux/commit
mount: rewrite is_readonly()
authorKarel Zak <kzak@redhat.com>
Mon, 20 Sep 2010 11:10:36 +0000 (13:10 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 20 Sep 2010 12:37:24 +0000 (14:37 +0200)
commit1b85dcd9cabd478859e46bcfc9f7847acec98db6
tree29c6631f26e0a81b1fe659d0ac64f37ad59181f8
parent59f8c787e7cdc9714603e2b2e70e702d5071923f
mount: rewrite is_readonly()

This new implementation is more optimistic and always calls access(2).
The fallback solution (modify atime by futimens(2)) should be used
very rarely.

Signed-off-by: Karel Zak <kzak@redhat.com>
mount/mount.c