Whamcloud - gitweb
unix_io: check for read-only devices when opening R/W
authorEric Sandeen <sandeen@redhat.com>
Fri, 10 Oct 2008 22:17:43 +0000 (17:17 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 13 Oct 2008 03:12:22 +0000 (23:12 -0400)
commit7ed7a4b6ed8b2fce891874a0eafdc8f77c3ffc34
tree4ba26ae89a474343bac85b1e3db010e5232b6a81
parenta25f0e73a7db95d6930f2af67d758be07737d044
unix_io: check for read-only devices when opening R/W

When we open a device on linux, test whether it is writable
right away, rather than trying to proceed and clean up when
writes start failing.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/unix_io.c