mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[GH-ISSUE #2143] Add support for systemd mount units #1094
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#1094
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 @guss77 on GitHub (Mar 27, 2023).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/2143
Additional Information
Version of s3fs being used (
s3fs --version)1.90
Version of fuse being used (
pkg-config --modversion fuse,rpm -qi fuseordpkg -s fuse)2.9.9
Kernel information (
uname -r)5.19.0-38-generic
GNU/Linux Distribution, if applicable (
cat /etc/os-release)PRETTY_NAME="KDE neon Unstable Edition"
NAME="KDE neon"
VERSION_ID="22.04"
VERSION="Unstable Edition"
VERSION_CODENAME=jammy
ID=neon
ID_LIKE="ubuntu debian"
HOME_URL="https://neon.kde.org/"
SUPPORT_URL="https://neon.kde.org/"
BUG_REPORT_URL="https://bugs.kde.org/"
PRIVACY_POLICY_URL="https://kde.org/privacypolicy/"
UBUNTU_CODENAME=jammy
How to run s3fs, if applicable
I want to use a systemd mount unit to mount the S3 file system. My best attempt so far is as follows:
~/.config/systemd/user/home-odeda-mnt-s3.mount:which does call onto s3fs, but the problem is that systemd understands the
whatas a relative path name and it canonicalize it as%h/my-bucketbefore submitting it tos3fs(for some reason - I'm not sure why), which results in the following log:s3fs syslog messages (
grep s3fs /var/log/syslog,journalctl | grep s3fs, ors3fs outputs)Details about issue
It would be great if s3fs can be configured (using an option?) or auto-detect that it is called in such a weird way and workaround the issue.
One possible solution that I though might make sense is to specify the
Whatfield as an S3 url (s3://my-bucket) - in such a case systemd "understands" that this is a network path and doesn't rewrite it, causing the following s3fs log:But if s3fs can be taught to ignore the
s3://prefix, that would allow this configuration to work.@ggtakec commented on GitHub (Mar 28, 2023):
Duplicate #2139