OSDN Git Service
(root)
/
android-x86
/
external-exfat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68524e0
)
Pass "ro" option to FUSE when FS is read-only.
author
relan
<relan@users.noreply.github.com>
Mon, 4 Dec 2017 06:46:58 +0000
(09:46 +0300)
committer
relan
<relan@users.noreply.github.com>
Sat, 10 Mar 2018 15:37:30 +0000
(18:37 +0300)
No matter the reason why FS is read-only (requested by user or device is
write-protected), we should inform FUSE about this.
fuse/main.c
patch
|
blob
|
history
diff --git
a/fuse/main.c
b/fuse/main.c
index
17bd1ff
..
2fd523b
100644
(file)
--- a/
fuse/main.c
+++ b/
fuse/main.c
@@
-590,7
+590,7
@@
int main(int argc, char* argv[])
free(exfat_options);
- fuse_options = add_fuse_options(fuse_options, spec,
(ef.ro == -1)
);
+ fuse_options = add_fuse_options(fuse_options, spec,
ef.ro != 0
);
if (fuse_options == NULL)
{
exfat_unmount(&ef);