mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 21:35:58 +03:00
[GH-ISSUE #2139] Add support for systemd mount units #1089
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#1089
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/2139
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-5ubuntu3
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.@guss77 commented on GitHub (Mar 28, 2023):
Terribly sorry about the duplicates - every time I posted, I got a 500 error page, so I thought it didn't submit properly.
@knorr3 commented on GitHub (May 2, 2023):
I am using s3fs in combination with systemd mount units without any problems.
What is this
%hdoing in your configuration?My config looks like this
You also need to add
_netdevto yourOptions(as shown here https://github.com/s3fs-fuse/s3fs-fuse#examples)@guss77 commented on GitHub (May 2, 2023):
From
man systemd.unit:That was indeed the problem - with
_netdev, everything works. I must have missed that part in the README, Reading about it inman mountdoesn't really explain why this is needed, butman systemd.mounthas this to say: