mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[GH-ISSUE #2149] [NFS support], can not upload file content. #1097
Labels
No labels
bug
bug
dataloss
duplicate
enhancement
feature request
help wanted
invalid
need info
performance
pull-request
question
question
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/s3fs-fuse#1097
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @VVoidV on GitHub (Apr 13, 2023).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/2149
When I export s3fs dir by NFS, file content (size < 5 GB) is not uploaded.
reproduce:
mount s3fs
s3fs -f -o debug,update_parent_dir_stat,noforget,parallel_count=16,dbglevel=debug,use_path_request_style,allow_other,del_cache,connect_timeout=300,readwrite_timeout=120,url=http://100.127.40.130 nfs-0410 /exports/originexport /exports/origin by NFS
modify /etc/exports, add this line below, then run
exportfs -avmount -o vers=3 localhost:/exports/origin /mntecho 123 > /mnt/testfilecat /mnt/testfilethe content of testfile is emtpy.
cause
It seems NFS does not call flush before release, so the data in cache is not uploaded.
I just add s3fs_flush in s3fs_release, the content of file will be uploaded successfully.
Additional Information
Version of s3fs being used (
s3fs --version)Amazon Simple Storage Service File System V1.91 (commit:9c74014) with OpenSSL
Version of fuse being used (
pkg-config --modversion fuse,rpm -qi fuseordpkg -s fuse)fuse-libs-2.9.2-11.el7.x86_64
Kernel information (
uname -r)7.10.0-957.el7.x86_64
GNU/Linux Distribution, if applicable (
cat /etc/os-release)NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
How to run s3fs, if applicable
[x] command line
[] /etc/fstab
s3fs syslog messages (
grep s3fs /var/log/syslog,journalctl | grep s3fs, ors3fs outputs)Details about issue
fuse ops:
@ggtakec commented on GitHub (Apr 16, 2023):
@VVoidV Thank you for your report.
s3fs expects
s3fs_flushto be called befores3fs_relaseis called, so it is correct that the file was not uploaded according to this report.I created PR #2150 to fix this issue.
If you can build the #2150 code, please test it.
Thanks in advance for your assistance.