mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[GH-ISSUE #1590] 升级s3fs报错 #832
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#832
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 @zhangyn1 on GitHub (Mar 2, 2021).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/1590
@gaul commented on GitHub (Mar 3, 2021):
Which operating system do you run on? Did you run
autogen.shandconfigure? It appears your system hasfallocatebut not theFALLOC_FL_PUNCH_HOLEandFALLOC_FL_KEEP_SIZEdefines.@ggtakec maybe the autoconf logic is incomplete?
@Navi2016 commented on GitHub (Apr 1, 2021):
Hi,
Having the same issue on CentOS 6.10 Kernel 2.6.32-754.35.1.el6.x86_64. glibc 2.12-1.212.el6_10.3
I did run autogen.sh and configure, followed this manual: (see step 5)
https://geektnt.com/how-to-instal-s3fs-fuse-on-centos-6-8.html
They ran fine. Make install ends with:
My system has fallocate installed.
Update 1:
bottom of this page:
https://stackoverflow.com/questions/9995093/how-to-make-holes-in-file-to-erase-data-by-c-in-linux
Reads:
The FALLOC_FL_* flags are defined in glibc headers only since version 2.18.
So it appears my glibc version is too old!
Update 2:
I fixed this by adding:
to the top of src/fdcache_entity.h
Seems to compile and work now..
@gaul commented on GitHub (Apr 1, 2021):
@ggtakec Can you add some autoconf magic for this?
@ggtakec commented on GitHub (Apr 21, 2021):
Sorry for my late reply.
I issued PR #1628 for this bug.
Changed to define these undefined symbols in the file when there is no fallocate function or before Linux 2.6.38.