mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[GH-ISSUE #2024] Cannot work with NFS #1017
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#1017
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 @zhan9san on GitHub (Aug 15, 2022).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/2024
Version of s3fs being used (s3fs --version)
V1.91
Version of fuse being used (pkg-config --modversion fuse, rpm -qi fuse, dpkg -s fuse)
2.9.2
Kernel information (uname -r)
3.10.0-1127.el7.x86_64
GNU/Linux Distribution, if applicable (cat /etc/os-release)
/etc/fstab entry, if applicable
Details about issue
All things work well with s3fs only. But if I export the mount point via nfs, I cannot cp/mv a file from local drive to nfs mount point.
How to reproduce
On NFS server
/mnt/test/mnt/testinto/etc/exports,/mnt/test/backup/tests 10.*.*.*(rw,sync,fsid=11,anonuid=0,anongid=0)systemctl start nfsOn NFS client
mkdir /mnt/s3fstestmount -t nfs [nfs-server-hostname]:/mnt/test /mnt/s3fstest/a. Copy a file from local drive to s3fs moun point
b. Touch a new file
c. Move a new file
d. Create a file thru
>It works
e. Create a file thru
vimIt works
Summary
Permission is correct because I can create a file thru
>andvim.But it's weird that cp, mv, touch don't work with NFS. And the NFS version would fallback to v3.
Could you give me some suggestions?
@ggtakec commented on GitHub (Aug 15, 2022):
Thanks for your report.
I think this issue is the same as #1934, #1957 and #1961, related code fixes are currently in #1964 and #2016.
Please wait fixing codes.
@ggtakec commented on GitHub (Feb 12, 2023):
@zhan9san
Added
update_parent_dir_statoption to update parent directory stat information when file operations are performed.With this, I think that you can catch file and directory updates when used with NFS.
See #2016 for details.
Try using master's code with the
update_parent_dir_statoption.This issue will be closed, but if you still have problems please reopen it or post a new issue.