Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added direct_io option #173

Merged
merged 1 commit into from
Oct 19, 2019
Merged

Added direct_io option #173

merged 1 commit into from
Oct 19, 2019

Conversation

sunwire
Copy link
Contributor

@sunwire sunwire commented Jun 15, 2019

This option disables the use of page cache in kernel.
This is useful for example if the file size is not known before reading it.
For example if you mount /proc dir from a remote host without the direct_io
option, the read always will return zero bytes instead of actual data.

[root@local ~]# sshfs root@remotehost:/proc /remote/
[root@local ~]# cat /remote/uptime
[root@local ~]# fusermount -u /remote
[root@local ~]# sshfs -o direct_io root@remotehost:/proc /remote/
[root@local ~]# cat /remote/uptime
2280959.53 2221494.84
[root@local ~]# fusermount -u /remote

@Nikratio Nikratio merged commit e1a9050 into libfuse:master Oct 19, 2019
@Nikratio
Copy link
Contributor

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants