mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[GH-ISSUE #1259] upload condition #678
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#678
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 @thierryg on GitHub (Mar 29, 2020).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/1259
Version of s3fs being used (s3fs --version)
s3fs --version
Amazon Simple Storage Service File System V1.86 (commit:fe2b269) with OpenSSL
Copyright (C) 2010 Randy Rizun rrizun@gmail.com
License GPL2: GNU GPL version 2 https://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Kernel information (uname -r)
uname -r
4.4.0-1092-aws
GNU/Linux Distribution, if applicable (cat /etc/os-release)
cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.6 LTS"
cat /etc/os-release
NAME="Ubuntu"
VERSION="16.04.6 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.6 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial
s3fs command line used, if applicable
sudo s3fs dazzl-test-records /data/records -o passwd_file=/etc/passwd-s3fs,sync,endpoint=eu-west-1,allow_other,umask=0007,uid=1001,gid=1001
mount |grep s3fs
s3fs on /data/records type fuse.s3fs (rw,nosuid,nodev,relatime,sync,user_id=0,group_id=0,allow_other)
/etc/fstab entry, if applicable
s3fs syslog messages (grep s3fs /var/log/syslog, journalctl | grep s3fs, or s3fs outputs)
Details about the issue :
I have a process that records video to an s3fs mount point.
The packets are recorded progressively with a fwrite () + fflush ().
When looking at the size of the file in the mount point, with the ls -alh command, I see it increase.
If I look on the amazon web console, the file exists but its size is zero.
Its size changes only when the file is closed.
I do not ask that it be updated in real-time but rather from time to time, according to different thresholds.
Do I believe the files are created in a cache so I wonder on what condition the files are uploaded? Is it only on fclose () or on the size of the files or even that of the cache?
Thanks in advance.
Regards
Thierry
@gaul commented on GitHub (Apr 21, 2020):
Currently s3fs uploads a file during either
fsyncorclose. Note thatfflushdoes not callfsync. Agreed that s3fs should have a configurable limit that triggers anfsync.@gaul commented on GitHub (Oct 10, 2020):
Duplicate of #1257?
@gaul commented on GitHub (Jan 21, 2021):
s3fs 1.88 added
-o max_dirty_datathat periodically syncs based on a size threshold. Can you try this and report back?