OSDN Git Service

Retry to mount FS in read-only mode if device is write-protected.
authorresver <resver@60bc1c72-a15a-11de-b98f-4500b42dc123>
Sun, 27 Nov 2011 10:07:11 +0000 (10:07 +0000)
committerresver <resver@60bc1c72-a15a-11de-b98f-4500b42dc123>
Sun, 27 Nov 2011 10:07:11 +0000 (10:07 +0000)
commite102e8ff678c3a91925c000b3e56c55f195e81a6
tree0efc028f65694f44375e9316d52fc9c5baf23b20
parent40b122a534914729b5365f9cd24f31f2306905bc
Retry to mount FS in read-only mode if device is write-protected.

This behavior is enabled by "ro_fallback" option. When an attempt to mount in RW mode fails and "ro_fallback" option is present, we try to mount in RO mode. If this succeeds, we set ro_fallback flag so that the caller could add "ro" option for FUSE.

git-svn-id: http://exfat.googlecode.com/svn/trunk@236 60bc1c72-a15a-11de-b98f-4500b42dc123
fuse/main.c
libexfat/exfat.h
libexfat/mount.c